<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up()
    {
        Schema::create('frontend_sections', function (Blueprint $table) {
            $table->unsignedBigInteger('id')->autoIncrement();
            $table->string('uid', 32)->nullable()->index('frontend_sections_uid_index');
            $table->string('section_key', 190)->nullable();
            $table->text('section_value')->nullable();
            $table->tinyInteger('status')->default(1)->comment('Active: 1, Inactive: 2');
            $table->timestamps();
        });
    }

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