feat: 切换 schema dump 基线并增强返点结算与管理校验

This commit is contained in:
2026-06-08 17:41:41 +08:00
parent 2d32f006c5
commit 8d5d7f5b17
130 changed files with 5746 additions and 6723 deletions

View File

@@ -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');
}
};