init
This commit is contained in:
20
sql/add_hot_company_notice_read.sql
Normal file
20
sql/add_hot_company_notice_read.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
CREATE TABLE `hot_company_notice_read`
|
||||
(
|
||||
`id` bigint NOT NULL COMMENT '主键',
|
||||
`notice_id` bigint DEFAULT NULL COMMENT '公告ID',
|
||||
`company_id` bigint DEFAULT NULL COMMENT '公司ID',
|
||||
`reader_id` varchar(64) DEFAULT NULL COMMENT '阅读人ID',
|
||||
`read_time` datetime DEFAULT NULL COMMENT '阅读时间',
|
||||
`is_deleted` bigint DEFAULT 0 COMMENT '0=正常, 1=已删除',
|
||||
`create_dept` bigint DEFAULT NULL COMMENT '创建部门',
|
||||
`create_by` bigint DEFAULT NULL COMMENT '创建者',
|
||||
`create_by_name` varchar(255) DEFAULT NULL COMMENT '创建者姓名',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint DEFAULT NULL COMMENT '更新者',
|
||||
`update_by_name` varchar(255) DEFAULT NULL COMMENT '更新者姓名',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_notice_reader` (`notice_id`, `reader_id`),
|
||||
KEY `idx_company_reader` (`company_id`, `reader_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4 COMMENT ='公司公告阅读记录';
|
||||
Reference in New Issue
Block a user