<?php

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

return new class extends Migration {
    public function up()
    {
        Schema::create('labslogin', function (Blueprint $table) {
            $table->id();
            $table->string('first_name');
            $table->string('last_name')->nullable();
            $table->string('lab_name');
            $table->date('date_of_birth');
            $table->enum('sex', ['Male', 'Female', 'Other']);
            $table->string('address');
            $table->string('phone')->unique();
            $table->string('aadhar_card_num', 4);
            $table->string('email')->unique();
            $table->string('password');
            $table->string('photo')->nullable();
            $table->string('signature')->nullable();
            $table->string('cin')->unique(); // Corporate Identification Number
            $table->string('gstin')->unique(); // Goods and Services Tax Identification Number
            $table->string('pan_card')->nullable(); // PAN Card image upload
            $table->timestamps();
        });
    }

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