CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('employee_profiles', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained('users')->cascadeOnDelete();
$table->string('employee_name');
$table->string('employee_id')->nullable();
$table->bigInteger('primary_mobile')->unique()->nullable();
$table->string('Alternate_mobile')->unique()->nullable();
$table->string('blood_group')->nullable();
$table->date('present_address')->nullable();
$table->string('permanent_address')->nullable();
$table->tinyInteger('status')->default('1');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('employee_profiles');
}
};