feat: 实现挂机修仙、排行榜、大厅重构与全站留言板系统
- (Phase 8) 后台各维度管理与配置 - (Phase 9) 全自动静默挂机修仙升级 - (Phase 9) 四大维度风云排行榜页面 - (Phase 10) 全站留言板与悄悄话私信功能 - 运行 Pint 代码格式化
This commit is contained in:
@@ -13,10 +13,67 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->string('username', 50)->unique()->comment('用户名');
|
||||
$table->string('password')->comment('密码 (MD5 or Bcrypt)');
|
||||
$table->string('email', 250)->nullable()->comment('邮箱');
|
||||
$table->tinyInteger('sex')->default(0)->comment('性别 (0保密 1男 2女)');
|
||||
$table->tinyInteger('user_level')->default(1)->comment('用户等级');
|
||||
$table->dateTime('log_time')->nullable()->comment('登录时间');
|
||||
$table->integer('visit_num')->default(0)->comment('访问次数');
|
||||
$table->dateTime('in_time')->nullable()->comment('进房时间');
|
||||
$table->tinyInteger('out_info')->default(0)->comment('退出信息');
|
||||
$table->dateTime('out_time')->nullable()->comment('退出时间');
|
||||
$table->integer('exp_num')->default(0)->index()->comment('经验值');
|
||||
$table->tinyInteger('f_size')->nullable()->comment('字体大小');
|
||||
$table->tinyInteger('l_height')->nullable()->comment('行高');
|
||||
$table->tinyInteger('n_color')->nullable()->comment('名称颜色');
|
||||
$table->integer('s_color')->nullable()->comment('发言颜色');
|
||||
$table->string('remand', 250)->nullable()->comment('密码提示问题');
|
||||
$table->string('answer', 250)->nullable()->comment('密码提示答案');
|
||||
$table->string('bgcolor', 50)->nullable()->comment('背景颜色');
|
||||
$table->string('temppass', 20)->nullable()->comment('临时密码');
|
||||
$table->string('oicq', 30)->nullable()->comment('QQ号');
|
||||
$table->tinyInteger('saved')->nullable()->comment('是否保存');
|
||||
$table->string('first_ip', 50)->nullable()->comment('首次IP');
|
||||
$table->string('last_ip', 50)->nullable()->comment('最后IP');
|
||||
$table->string('aihaos', 250)->nullable()->comment('爱好');
|
||||
$table->string('friends', 250)->nullable()->comment('好友列表');
|
||||
$table->integer('headface')->nullable()->comment('头像');
|
||||
$table->integer('room_id')->default(0)->index()->comment('所在房间');
|
||||
$table->tinyInteger('auto_update')->nullable()->comment('自动刷新');
|
||||
$table->string('ppass', 50)->nullable()->comment('二级密码');
|
||||
$table->integer('jjb')->default(0)->comment('交友币/金币');
|
||||
$table->string('love', 50)->nullable()->comment('伴侣');
|
||||
$table->string('gzdw', 50)->nullable()->comment('工作单位');
|
||||
$table->integer('photo')->nullable()->comment('照片 (对应原表中文列名照片)');
|
||||
$table->integer('hj')->default(0)->comment('呼叫状态');
|
||||
$table->string('djname', 50)->nullable()->comment('等级名称');
|
||||
$table->string('usersf', 50)->nullable()->comment('用户身份');
|
||||
$table->integer('yh')->nullable()->comment('隐身状态');
|
||||
$table->text('userpassword')->nullable()->comment('备用密码');
|
||||
$table->string('huiyuan', 50)->nullable()->comment('会员组别');
|
||||
$table->dateTime('hy_time')->nullable()->comment('会员到期时间');
|
||||
$table->string('tuijian', 50)->nullable()->comment('推荐人');
|
||||
$table->string('tuijian_ip', 50)->nullable()->comment('推荐IP');
|
||||
$table->string('xiaohai', 50)->nullable()->comment('小孩');
|
||||
$table->string('qingren', 50)->nullable()->comment('情人');
|
||||
$table->string('zhufang', 50)->nullable()->comment('住房');
|
||||
$table->string('zuoqiimg', 50)->nullable()->comment('坐骑图片');
|
||||
$table->string('zuoqi', 50)->nullable()->comment('坐骑名称');
|
||||
$table->integer('guanli')->nullable()->comment('管理员标记');
|
||||
$table->integer('meili')->nullable()->comment('魅力值');
|
||||
$table->integer('teshu')->nullable()->comment('特殊权限');
|
||||
$table->dateTime('xr_time')->nullable()->comment('仙人时间');
|
||||
$table->dateTime('yx_time')->nullable()->comment('英雄时间');
|
||||
$table->integer('q1')->nullable();
|
||||
$table->integer('q2')->nullable();
|
||||
$table->integer('q3')->nullable();
|
||||
$table->string('hua', 255)->nullable()->comment('鲜花');
|
||||
$table->dateTime('sj')->nullable()->comment('注册/更新时间');
|
||||
$table->string('pig', 255)->nullable()->comment('宠物');
|
||||
$table->text('qianming')->nullable()->comment('个性签名');
|
||||
$table->dateTime('q3_time')->nullable();
|
||||
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?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');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('audit_logs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->dateTime('occ_time')->nullable()->index()->comment('发生时间');
|
||||
$table->text('occ_env')->nullable()->comment('发生环境/详情');
|
||||
$table->tinyInteger('stype')->default(0)->comment('类别标识');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('audit_logs');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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('guestbooks', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('who', 50)->index()->comment('留言人');
|
||||
$table->string('towho', 50)->nullable()->index()->comment('给谁留言');
|
||||
$table->tinyInteger('secret')->default(0)->comment('是否悄悄话 (1是 0否)');
|
||||
$table->string('ip', 50)->nullable()->comment('留言者IP');
|
||||
$table->string('email', 250)->nullable()->comment('留言者邮箱');
|
||||
$table->string('web', 250)->nullable()->comment('留言者网站');
|
||||
$table->string('addr', 250)->nullable()->comment('留言者地址');
|
||||
$table->dateTime('post_time')->nullable()->index()->comment('留言时间');
|
||||
$table->string('text_title', 250)->nullable()->comment('留言标题');
|
||||
$table->text('text_body')->nullable()->comment('留言内容');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('guestbooks');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('ip_locks', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('ip', 20)->unique()->comment('封锁的IP');
|
||||
$table->dateTime('end_time')->nullable()->comment('封禁结束时间');
|
||||
$table->tinyInteger('act_level')->unsigned()->default(1)->comment('封禁级别');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('ip_locks');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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('messages', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('room_id')->index()->comment('房间ID');
|
||||
$table->string('from_user', 50)->index()->comment('发送者');
|
||||
$table->string('to_user', 50)->nullable()->index()->comment('接收者');
|
||||
$table->text('content')->comment('消息内容');
|
||||
$table->tinyInteger('is_secret')->default(0)->comment('是否私聊');
|
||||
$table->string('font_color', 50)->nullable()->comment('字体颜色');
|
||||
$table->string('action', 50)->nullable()->comment('动作');
|
||||
$table->dateTime('sent_at')->useCurrent()->index()->comment('发送时间');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('messages');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('sys_params', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('alias', 50)->unique()->comment('参数别名');
|
||||
$table->text('guidetxt')->nullable()->comment('参数说明');
|
||||
$table->text('body')->nullable()->comment('参数值');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sys_params');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,48 @@
|
||||
<?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('admin_logs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('username', 50)->index()->comment('管理员账号');
|
||||
$table->integer('uu_level')->nullable()->comment('管理员等级');
|
||||
$table->dateTime('in_time')->nullable()->comment('进入时间');
|
||||
$table->integer('out_time')->nullable()->comment('离开时间');
|
||||
$table->text('caozuo')->nullable()->comment('操作详情');
|
||||
$table->integer('fs_sl')->default(0)->comment('封杀数量');
|
||||
$table->text('fs_name')->nullable()->comment('封杀名单');
|
||||
$table->integer('tr_sl')->default(0)->comment('踢人数量');
|
||||
$table->text('tr_name')->nullable()->comment('踢人名单');
|
||||
$table->integer('jg_sl')->default(0)->comment('警告数量');
|
||||
$table->text('jg_name')->nullable()->comment('警告名单');
|
||||
$table->integer('dj_sl')->default(0)->comment('冻结数量');
|
||||
$table->text('dj_name')->nullable()->comment('冻结名单');
|
||||
$table->integer('yjdj_sl')->default(0)->comment('永久冻结数量');
|
||||
$table->text('yjdj_name')->nullable()->comment('永久冻结名单');
|
||||
$table->integer('fip_sl')->default(0)->comment('封IP数量');
|
||||
$table->text('fip_name')->nullable()->comment('封IP名单');
|
||||
$table->integer('fjj_sl')->default(0)->comment('发奖金数量');
|
||||
$table->integer('fjy_sl')->default(0)->comment('发经验数量');
|
||||
$table->integer('flh_sl')->default(0)->comment('发老虎数量');
|
||||
$table->dateTime('jl_time')->nullable()->index()->comment('记录时间');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('admin_logs');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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('friend_calls', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('who', 50)->index()->comment('呼叫人');
|
||||
$table->string('towho', 50)->index()->comment('被呼叫人');
|
||||
$table->text('callmess')->nullable()->comment('呼叫信息');
|
||||
$table->dateTime('calltime')->nullable()->index()->comment('呼叫时间');
|
||||
$table->tinyInteger('read')->default(0)->comment('是否已读 (1是 0否)');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('friend_calls');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('friend_requests', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('who', 50)->index()->comment('申请人');
|
||||
$table->string('towho', 50)->index()->comment('被申请人');
|
||||
$table->dateTime('sub_time')->nullable()->index()->comment('申请时间');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('friend_requests');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('ip_logs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('ip', 50)->index()->comment('登录IP');
|
||||
$table->dateTime('sdate')->nullable()->index()->comment('登录时间');
|
||||
$table->string('uuname', 50)->index()->comment('登录用户名');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('ip_logs');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
<?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('marriages', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('hyname', 50)->index()->comment('夫');
|
||||
$table->string('hyname1', 50)->index()->comment('妻');
|
||||
$table->dateTime('hytime')->nullable()->comment('结婚时间');
|
||||
$table->string('hygb', 50)->nullable()->comment('婚姻状态/广播');
|
||||
$table->string('hyjb', 50)->nullable()->comment('婚姻级别');
|
||||
$table->integer('i')->nullable()->comment('亲密度/属性');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('marriages');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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('room_descriptions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('alias', 10)->unique()->comment('房间别名关联');
|
||||
$table->string('describ', 254)->nullable()->comment('房间详细描述文本');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('room_descriptions');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('scroll_ads', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('ad_title', 250)->comment('广告/公告标题');
|
||||
$table->string('ad_link', 250)->nullable()->comment('链接地址');
|
||||
$table->tinyInteger('ad_new_flag')->default(0)->comment('新窗口打开标识 (1是 0否)');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('scroll_ads');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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('user_items', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name', 50)->index()->comment('使用者');
|
||||
$table->dateTime('times')->nullable()->index()->comment('获得时间');
|
||||
$table->text('gg')->nullable()->comment('道具类型/说明');
|
||||
$table->integer('dayy')->nullable()->comment('道具天数/数量');
|
||||
$table->string('lx', 50)->nullable()->comment('道具种类');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('user_items');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user