<?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('permanent_employees', function (Blueprint $table) {
            $table->id();
            $table->string('full_name');
            $table->string('father_name');
            $table->string('national_card_number')->unique();
            $table->string('phone_number');
            $table->string('relative_phone_number')->nullable();
            $table->decimal('monthly_salary', 12, 2);
            $table->date('joining_date');
            $table->string('image_path')->nullable();
            $table->string('national_card_path')->nullable();
            $table->string('health_card_path')->nullable();
            $table->string('labor_card_path')->nullable();
            $table->string('contract_path')->nullable();
            $table->timestamps();
        });
    }

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