<?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('app_banner_settings', function (Blueprint $table) {
            $table->id();
            $table->string('title', 180)->default('');
            $table->text('description')->nullable();
            $table->boolean('show_app_store_button')->default(true);
            $table->boolean('show_play_store_button')->default(true);
            $table->string('app_store_link', 500)->nullable();
            $table->string('play_store_link', 500)->nullable();
            $table->timestamps();
        });
    }

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