[add] app注册、登录、实名认证、人员展示、通知
This commit is contained in:
@ -1590,3 +1590,25 @@ CREATE TABLE `hse_violation_record`
|
||||
index `idx_project_id` (`project_id` asc) using btree comment '项目id'
|
||||
) comment '违规记录' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `sys_notifications`;
|
||||
CREATE TABLE `sys_notifications`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键ID',
|
||||
`recipient_id` bigint not null comment '接收通知的用户ID',
|
||||
`sender_id` bigint default 0 not null comment '发送通知的用户ID(系统通知则为null)',
|
||||
`type` char(2) not null comment '通知类型',
|
||||
`title` varchar(255) default '' not null comment '通知标题',
|
||||
`content` text not null comment '通知的主要内容',
|
||||
`status` char(1) default '0' not null comment '通知状态(0未读 1已读)',
|
||||
`read_at` datetime null comment '用户读取通知的时间',
|
||||
`action_url` varchar(1024) default '' not null comment '点击通知后跳转的目标URL',
|
||||
`file` varchar(1024) null comment '通知附件',
|
||||
`remark` varchar(255) null comment '备注',
|
||||
`create_time` datetime default CURRENT_TIMESTAMP null comment '创建时间',
|
||||
`update_time` datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间',
|
||||
primary key (`id`) using btree,
|
||||
INDEX `idx_recipient_id` (`recipient_id`),
|
||||
INDEX `idx_sender_id` (`sender_id`),
|
||||
index `idx_type` (`type`)
|
||||
) comment '系统通知' collate = utf8mb4_unicode_ci;
|
||||
|
||||
|
Reference in New Issue
Block a user