CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEmployeeDocumentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('employee_documents', function (Blueprint $table) {
$table->id();
$table->foreignId('employee_id')->constrained('employee_registrations')->cascadeOnDelete();
$table->string('employee_name');
$table->bigInteger('employee_mobile_no')->nullable();
$table->string('document_name');
$table->boolean('document_type');
$table->integer('no_of_copies')->nullable();
$table->tinyInteger('status')->default('1');
$table->string('created_by')->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('employee_documents');
}
}