<?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('promoters', function (Blueprint $table) {
            $table->id();
            $table->foreignId('user_id')->constrained()->cascadeOnDelete();
            $table->string('applicant_name');
            $table->string('designation')->nullable();
            $table->string('building')->nullable();
            $table->string('street')->nullable();
            $table->string('city')->nullable();
            $table->string('state')->nullable();
            $table->string('postal_code')->nullable();
            $table->string('country')->nullable();
            $table->string('email');
            $table->string('phone')->nullable();
            $table->string('photo_path')->nullable();
            $table->string('id_proof_path')->nullable();
            $table->string('institute_name')->nullable();
            $table->string('firm_type')->nullable();
            $table->string('official_building')->nullable();
            $table->string('official_street')->nullable();
            $table->string('official_city')->nullable();
            $table->string('official_state')->nullable();
            $table->string('official_postal_code')->nullable();
            $table->string('official_country')->nullable();
            $table->string('official_email')->nullable();
            $table->string('official_phone')->nullable();
            $table->string('operational_area')->nullable();
            $table->string('experience')->nullable();
            $table->string('second_contact_name')->nullable();
            $table->string('second_contact_email')->nullable();
            $table->string('second_contact_phone')->nullable();
            $table->timestamps();
        });
    }

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