<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('travel_agencies', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->text('legal_name')->nullable();
            $table->text('address')->nullable();
            $table->foreignId('province_id')->nullable();
            $table->text('email')->nullable();
            $table->text('phone')->nullable();
            $table->text('contact_person')->nullable();
            $table->text('contact_person_phone')->nullable();
            $table->boolean('status')->default(true);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('travel_agencies');
    }
};
