- (Phase 8) 后台各维度管理与配置 - (Phase 9) 全自动静默挂机修仙升级 - (Phase 9) 四大维度风云排行榜页面 - (Phase 10) 全站留言板与悄悄话私信功能 - 运行 Pint 代码格式化
43 lines
1.8 KiB
PHP
43 lines
1.8 KiB
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('rooms', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('room_name', 10)->unique()->comment('房间标识/名称');
|
|
$table->string('room_auto', 10)->nullable()->comment('房间别名/自动属性');
|
|
$table->string('room_owner', 10)->nullable()->comment('房主');
|
|
$table->string('room_des', 250)->nullable()->comment('房间描述');
|
|
$table->string('room_top', 100)->nullable()->comment('置顶信息');
|
|
$table->string('room_title', 250)->nullable()->comment('房间标题');
|
|
$table->tinyInteger('room_keep')->default(0)->comment('是否保留');
|
|
$table->dateTime('room_time')->nullable()->comment('建立/最后时间');
|
|
$table->tinyInteger('room_tt')->default(0)->comment('相关开关');
|
|
$table->tinyInteger('room_html')->default(0)->comment('是否允许HTML');
|
|
$table->integer('room_exp')->default(0)->comment('所需经验');
|
|
$table->dateTime('build_time')->nullable()->comment('建立时间');
|
|
$table->tinyInteger('permit_level')->default(1)->comment('允许进入的最低等级');
|
|
$table->tinyInteger('door_open')->default(1)->comment('大门是否开启 (1开 0关)');
|
|
$table->integer('ooooo')->nullable()->comment('未知/扩展属性o5');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('rooms');
|
|
}
|
|
};
|