<?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('hero_banners', function (Blueprint $table) {
$table->id();
$table->json('title');
$table->json('subtitle')->nullable();
$table->json('button1_text')->nullable();
$table->string('button1_url', 500)->nullable();
$table->json('button2_text')->nullable();
$table->string('button2_url', 500)->nullable();
$table->string('background_image', 500);
$table->integer('sort_order')->default(0);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
public function down(): void { Schema::dropIfExists('hero_banners'); }
};