<?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('company_settings', function (Blueprint $table) {
            $table->id();
            $table->string('company_name')->default('ABC YARN HOUSE');
            $table->string('tagline')->nullable();
            $table->text('address')->nullable();
            $table->string('phone')->nullable();
            $table->string('email')->nullable();
            $table->string('website')->nullable();
            $table->string('logo_path')->nullable();
            $table->string('tax_id')->nullable();
            $table->string('currency', 10)->default('৳');
            $table->string('currency_code', 5)->default('BDT');
            $table->string('timezone', 50)->default('Asia/Dhaka');
            $table->string('date_format', 20)->default('Y-m-d');
            $table->string('fiscal_year_start', 5)->default('01-01');
            $table->timestamps();
        });
    }

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