<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('import_galagedara_factory', function (Blueprint $table) {
            $table->id();
            $table->integer('serial_no')->nullable();
            $table->string('emp_no', 50)->nullable();
            $table->string('epf_no', 50)->nullable();
            $table->string('id_name')->nullable();
            $table->string('calling_name', 100)->nullable();
            $table->string('initials_with_surname', 100)->nullable();
            $table->string('initials', 50)->nullable();
            $table->string('surname', 100)->nullable();
            $table->string('sex', 20)->nullable();
            $table->string('designation', 100)->nullable();
            $table->string('department', 100)->nullable();
            $table->string('nic_no', 50)->nullable();
            $table->string('status_of_appointment', 100)->nullable();
            $table->string('date_joined', 50)->nullable();
            $table->string('date_of_birth', 50)->nullable();
            $table->string('retirement_age', 10)->nullable();
            $table->text('permanent_address')->nullable();
            $table->string('telephone_number', 100)->nullable();
            $table->string('bank_acc_name')->nullable();
            $table->string('bank_name_code', 100)->nullable();
            $table->string('bank_branch_name_code', 100)->nullable();
            $table->string('bank_acc_no', 100)->nullable();
            $table->string('b_card', 20)->nullable();
            $table->string('date_of_resignation', 50)->nullable();
            $table->boolean('imported')->default(false);
            $table->timestamps();
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('import_galagedara_factory');
    }
};
