处理默认值

main
liutk 2024-05-20 16:39:33 +08:00
parent 3c19d5e4e5
commit 023ee3d862
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ return new class extends Migration
$table->string('away')->comment('客场');
$table->string('away_logo')->comment('客场logo');
$table->timestamp('game_at')->comment('比赛时间');
$table->unsignedTinyInteger('state')->comment('状态0未发布1已发布2已公布');
$table->unsignedTinyInteger('state')->default(0)->comment('状态0未发布1已发布2已公布');
$table->unsignedInteger('mark')->comment('分数');
$table->enum('score', Score::options())->nullable()->comment('比赛结果');
$table->timestamps();