<?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('asset_settings', function (Blueprint $table) {
            $table->id();
            $table->string('symbol')->unique();
            $table->string('name');
            $table->string('category');
            $table->decimal('payout_percent', 5, 2)->default(85.00);
            $table->boolean('is_open')->default(true);
            $table->string('closed_message')->default('This market is currently closed.');
            $table->timestamps();
        });
    }

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