CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEmployeeProfilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('employee_profiles', function (Blueprint $table) {
$table->id();
$table->foreignId('employee_id')->constrained('employee_registrations')->cascadeOnDelete();
$table->string('name')->nullable();
$table->string('user_id')->nullable();
$table->bigInteger('mobile')->nullable();
$table->bigInteger('alt_mobile')->nullable();
$table->string('blood_group')->nullable();
$table->text('present_address')->nullable();
$table->text('permanent_address')->nullable();
$table->string('photo')->nullable();
$table->string('pf_no')->nullable();
$table->string('uan_no')->nullable();
$table->string('esi_no')->nullable();
$table->string('bank_ac_type')->nullable();
$table->string('bank_ac_no')->nullable();
$table->string('bank_ifsc')->nullable();
$table->string('bank_code')->nullable();
$table->string('bank_name')->nullable();
$table->tinyInteger('status')->default('0');
$table->string('created_by')->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('employee_profiles');
}
}