<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('taxs', function (Blueprint $table) {
            $table->id();
            $table->string('tax_code');
            $table->string('tax_no')->unique();
            $table->string('npwpd');
            $table->string('wp_name');
            $table->string('business_name');
            $table->text('address');
            $table->date('start_validity');
            $table->date('end_validity');
            $table->decimal('tax_value', 12, 2);
            $table->string('subdistrict');
            $table->string('village');
            $table->timestamps();
        });
    }

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