<?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('trigger_prices', function (Blueprint $table) {
            $table->id();
            $table->decimal('price', 20, 8)->comment('触发价格');
            $table->string('type', 50)->default('usdt_lak')->comment('用途标识，如 usdt_lak');
            $table->dateTime('created_at')->nullable();
            $table->dateTime('updated_at')->nullable();
        });
    }

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