|
|
@@ -1,29 +0,0 @@
|
|
|
-create table if not exists deepthink.changdu_series_type_bind
|
|
|
-(
|
|
|
- id bigint auto_increment comment '自增主键' primary key,
|
|
|
- book_id varchar(64) not null comment '短剧ID',
|
|
|
- series_type varchar(128) not null comment '短剧类型',
|
|
|
- created_by varchar(128) not null comment '创建人',
|
|
|
- updated_by varchar(128) not null comment '修改人',
|
|
|
- created_at timestamp default current_timestamp not null comment '创建时间',
|
|
|
- updated_at timestamp default current_timestamp not null on update current_timestamp comment '修改时间',
|
|
|
- unique key uk_book_id (book_id),
|
|
|
- key idx_series_type (series_type)
|
|
|
-) comment '常读短剧类型绑定表';
|
|
|
-
|
|
|
-create table if not exists deepthink.changdu_series_card_send_record
|
|
|
-(
|
|
|
- id bigint auto_increment comment '自增主键' primary key,
|
|
|
- book_id varchar(64) not null comment '短剧ID',
|
|
|
- send_status tinyint default 0 not null comment '发送状态:0=处理中,1=成功,2=失败',
|
|
|
- retry_count int default 0 not null comment '重试次数',
|
|
|
- receive_type varchar(32) null comment '接收类型:chat_id/user_id',
|
|
|
- receive_id varchar(128) null comment '接收ID',
|
|
|
- message_id varchar(128) null comment '飞书消息ID',
|
|
|
- error_msg varchar(1024) null comment '失败原因',
|
|
|
- sent_at datetime null comment '发送成功时间',
|
|
|
- created_at timestamp default current_timestamp not null comment '创建时间',
|
|
|
- updated_at timestamp default current_timestamp not null on update current_timestamp comment '修改时间',
|
|
|
- unique key uk_book_id (book_id),
|
|
|
- key idx_status_retry (send_status, retry_count, updated_at)
|
|
|
-) comment '常读短剧飞书卡片发送记录表';
|