feat: 切换 schema dump 基线并增强返点结算与管理校验
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('players', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('site_code', 64);
|
||||
$table->string('site_player_id', 128);
|
||||
$table->string('username', 128)->nullable();
|
||||
$table->string('nickname', 128)->nullable();
|
||||
$table->string('default_currency', 16)->default('NPR');
|
||||
$table->unsignedTinyInteger('status')->default(0)->comment('0=active,1=frozen,2=blocked');
|
||||
$table->timestamp('last_login_at')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['site_code', 'site_player_id'], 'uk_players_site_player');
|
||||
$table->index('status', 'idx_players_status');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('players');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user