mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-13 09:48:11 +00:00
no message
This commit is contained in:
parent
937d996458
commit
d085da07cd
@ -20,7 +20,7 @@ class CreateWebSocketDialogMsgReadsTable extends Migration
|
||||
$table->bigInteger('userid')->nullable()->default(0)->comment('发送会员ID');
|
||||
$table->tinyInteger('after')->nullable()->default(0)->comment('在阅读之后才添加的记录');
|
||||
$table->timestamp('read_at')->nullable()->comment('阅读时间');
|
||||
$table->unique(['msg_id', 'userid'], 'IDEX_msg_id_userid');
|
||||
$table->unique(['msg_id', 'userid']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ class CreateReportsTable extends Migration
|
||||
$table->enum("type", ["weekly", "daily"])->default("daily")->comment("汇报类型");
|
||||
$table->unsignedBigInteger("userid")->default(0);
|
||||
$table->longText("content")->nullable();
|
||||
$table->index(["userid", "created_at"], "default");
|
||||
$table->index(["userid", "created_at"]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ class CreateReportReceivesTable extends Migration
|
||||
$table->timestamp("receive_time")->nullable()->comment("接收时间");
|
||||
$table->unsignedBigInteger("userid")->default(0)->comment("接收人");
|
||||
$table->unsignedTinyInteger("read")->default(0)->comment("是否已读");
|
||||
$table->index(["userid", "receive_time"], "default");
|
||||
$table->index(["userid", "receive_time"]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user