<?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('tbl_category', function (Blueprint $table) {
            $table->increments('category_id');
            $table->string('category_name', 150);
            $table->string('slug', 150)->nullable()->unique();
            $table->string('category_banner', 255)->nullable();
            $table->string('meta_title', 255)->nullable();
            $table->mediumText('meta_keyword')->nullable();
            $table->mediumText('meta_description')->nullable();
            $table->integer('display_order')->default(0);
            $table->string('type', 50)->default('general');
        });
    }
    public function down(): void { Schema::dropIfExists('tbl_category'); }
};
