Files
chatroom/database/migrations/2026_02_26_040522_create_actions_table.php
lkddi 50fc804402 feat: 实现挂机修仙、排行榜、大厅重构与全站留言板系统
- (Phase 8) 后台各维度管理与配置
- (Phase 9) 全自动静默挂机修仙升级
- (Phase 9) 四大维度风云排行榜页面
- (Phase 10) 全站留言板与悄悄话私信功能
- 运行 Pint 代码格式化
2026-02-26 13:35:38 +08:00

33 lines
949 B
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('actions', function (Blueprint $table) {
$table->id();
$table->string('act_name', 50)->unique()->comment('动作名称');
$table->string('alias', 50)->nullable()->comment('动作别名');
$table->string('toall', 200)->nullable()->comment('对所有人表现');
$table->string('toself', 200)->nullable()->comment('对自己的表现');
$table->string('toother', 200)->nullable()->comment('对其他人的表现');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('actions');
}
};