File: //proc/2147229/cwd/database/migrations/2024_11_08_154246_create_withdraw_accounts_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('withdraw_accounts', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('user_id')->comment('用户 ID');
$table->string('type')->comment('类型');
$table->string('account_name')->comment('帐户名');
$table->string('account_address')->comment('帐户地址');
$table->string('account_network')->comment('帐户网络');
$table->text('remark')->nullable()->comment('备注');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('withdraw_accounts');
}
};