Commit b579021b by mercymodest

feat:- add sql

parent 7246469f
alter table t_device_group
alter table t_device_group
......@@ -29,6 +29,27 @@ 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) NOT NULL 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:图片',
`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 ='魔法导入记录表';
......
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