Commit 2691d7db by mercy

Merge remote-tracking branch 'origin/master'

parents 4ce6e8a3 bfa54ab2
alter table t_device_group alter table t_device_group
...@@ -19,6 +19,62 @@ alter table t_email_callback_log ...@@ -19,6 +19,62 @@ alter table t_email_callback_log
alter table t_user alter table t_user
modify user_type tinyint(1) default 0 null comment '用户类型,0:普通用户,1:会员用户 2:游客(未注册状态,仅数据库可查)'; modify user_type tinyint(1) default 0 null comment '用户类型,0:普通用户,1:会员用户 2:游客(未注册状态,仅数据库可查)';
alter table t_email_callback_log
add utc_offset tinyint default 0 null comment '时区偏移量';
alter table t_email_callback_log
add s3_keys text null comment 's3 key 集合';
alter table t_email_callback_log
add magic_import_status tinyint(1) null comment '魔法导入审核状态 0:未审核 1:审核通过 2:审核不通过';
CREATE TABLE `t_magic_import_record`
(
`magic_import_record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`batch_no` bigint(20) NOT NULL COMMENT '导入批次号',
`file_name` varchar(200) COMMENT '导入文件名',
`error_message` text COMMENT '错误信息',
`is_parsed` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否解析出事项 0:否 1:是',
`parse_result` text COMMENT '解析结果',
`content_type` tinyint(1) NOT NULL COMMENT '内容类型:0:文本 1:文本附件 2:Excel 3:PDF 4:图片 5:word',
`content` text COMMENT '(content_type=0)内容',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_delete` tinyint(1) default 0 not null comment '是否删除:0 表示否,1 表示是',
`device_id` bigint not null comment '设备 ID',
`sender_email` varchar(240) COMMENT '发送邮箱',
PRIMARY KEY (`magic_import_record_id`),
KEY `idx_batch_no` (`batch_no`),
KEY `idx_device_id` (`device_id`),
KEY `idx_sender_email` (`sender_email`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='魔法导入记录表';
alter table t_magic_import_record
add convert_result text null comment '转化结果';
alter table t_magic_import_record
modify convert_result text null comment '转化结果' after parse_result;
alter table t_magic_import_record
modify batch_no bigint not null comment '导入批次号 (t_email_callback_log#callback_id)';
alter table t_events
add magic_import_batch_no BIGINT null comment '魔法导入批次号 (t_email_callback_log#callback_id)';
create index idx_magic_import_batch_no
on t_events (magic_import_batch_no);
alter table t_user_calendar_categories
add is_magic_import_default tinyint(1) default 0 null comment '是否是魔法导入的默认分类 0:否 1:是 default:0';
alter table t_events
add magic_import_s3_key varchar(200) null comment '魔法导入文件S3key(如果是文件导入的话)';
CREATE TABLE `t_send_email` ( CREATE TABLE `t_send_email` (
`send_email_id` BIGINT NOT NULL COMMENT '主键ID', `send_email_id` BIGINT NOT NULL COMMENT '主键ID',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment