|
|
|
@ -7,82 +7,82 @@ ALTER TABLE `hzims_message`.`hzims_mail_config` ADD COLUMN `DURATION` mediumint(
|
|
|
|
|
ALTER TABLE `hzims_message`.`hzims_mail_config` ADD COLUMN `TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '时间单位' AFTER `DURATION`; |
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_message`.`hzims_message_push_record` ( |
|
|
|
|
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', |
|
|
|
|
`TASK_ID` bigint(20) NOT NULL COMMENT '消息类型', |
|
|
|
|
`TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息模板ID', |
|
|
|
|
`PUSHER` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人', |
|
|
|
|
`PUSHER_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人名称', |
|
|
|
|
`CONTENT` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '内容', |
|
|
|
|
`PLAN_TIME` datetime(0) NULL DEFAULT NULL COMMENT '计划推送时间', |
|
|
|
|
`PUSH_TIME` datetime(0) NULL DEFAULT NULL COMMENT '实际推送时间', |
|
|
|
|
`TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息类型', |
|
|
|
|
`BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', |
|
|
|
|
`BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect', |
|
|
|
|
`SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', |
|
|
|
|
`CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', |
|
|
|
|
`CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', |
|
|
|
|
`ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', |
|
|
|
|
`ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', |
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
|
|
|
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
|
|
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`STATUS` tinyint(4) NULL DEFAULT 0 COMMENT '业务状态(0 未推送,1 推送成功,2 推送失败,3 已确认)', |
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', |
|
|
|
|
`RESPOND_TIME` datetime(0) NULL DEFAULT NULL COMMENT '响应时间', |
|
|
|
|
`RESPOND_REMARK` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '响应说明', |
|
|
|
|
`RESOURCE_CODE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源编码', |
|
|
|
|
`ACCOUNT` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送账号:手机号,邮箱', |
|
|
|
|
`DEPT_ID` bigint(20) NULL DEFAULT NULL COMMENT '机构ID', |
|
|
|
|
`DEPT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构ID', |
|
|
|
|
`MESSAGE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息ID', |
|
|
|
|
`PUSH_TYPE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送类型,0:即时推送,1:计划推送', |
|
|
|
|
`SMS_PARAM` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '阿里云短信模板参数', |
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', |
|
|
|
|
`TASK_ID` bigint(20) NOT NULL COMMENT '消息类型', |
|
|
|
|
`TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息模板ID', |
|
|
|
|
`PUSHER` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人', |
|
|
|
|
`PUSHER_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人名称', |
|
|
|
|
`CONTENT` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '内容', |
|
|
|
|
`PLAN_TIME` datetime(0) NULL DEFAULT NULL COMMENT '计划推送时间', |
|
|
|
|
`PUSH_TIME` datetime(0) NULL DEFAULT NULL COMMENT '实际推送时间', |
|
|
|
|
`TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息类型', |
|
|
|
|
`BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', |
|
|
|
|
`BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect', |
|
|
|
|
`SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', |
|
|
|
|
`CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', |
|
|
|
|
`CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', |
|
|
|
|
`ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', |
|
|
|
|
`ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', |
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
|
|
|
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
|
|
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`STATUS` tinyint(4) NULL DEFAULT 0 COMMENT '业务状态(0 未推送,1 推送成功,2 推送失败,3 已确认)', |
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', |
|
|
|
|
`RESPOND_TIME` datetime(0) NULL DEFAULT NULL COMMENT '响应时间', |
|
|
|
|
`RESPOND_REMARK` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '响应说明', |
|
|
|
|
`RESOURCE_CODE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源编码', |
|
|
|
|
`ACCOUNT` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送账号:手机号,邮箱', |
|
|
|
|
`DEPT_ID` bigint(20) NULL DEFAULT NULL COMMENT '机构ID', |
|
|
|
|
`DEPT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构ID', |
|
|
|
|
`MESSAGE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息ID', |
|
|
|
|
`PUSH_TYPE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送类型,0:即时推送,1:计划推送', |
|
|
|
|
`SMS_PARAM` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '阿里云短信模板参数', |
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '消息推送记录' ROW_FORMAT = Dynamic; |
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_message`.`hzims_message_template` ( |
|
|
|
|
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '消息类型', |
|
|
|
|
`TYPE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID', |
|
|
|
|
`BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', |
|
|
|
|
`BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect', |
|
|
|
|
`SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', |
|
|
|
|
`CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', |
|
|
|
|
`CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', |
|
|
|
|
`ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', |
|
|
|
|
`ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', |
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
|
|
|
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
|
|
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', |
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', |
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '消息类型', |
|
|
|
|
`TYPE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID', |
|
|
|
|
`BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', |
|
|
|
|
`BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect', |
|
|
|
|
`SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', |
|
|
|
|
`CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', |
|
|
|
|
`CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', |
|
|
|
|
`ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', |
|
|
|
|
`ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', |
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
|
|
|
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
|
|
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', |
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', |
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '消息推送模板' ROW_FORMAT = Dynamic; |
|
|
|
|
|
|
|
|
|
ALTER TABLE `hzims_message`.`hzims_push_config` MODIFY COLUMN `TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '时间单位' AFTER `DURATION`; |
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_message`.`hzims_push_message` ( |
|
|
|
|
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', |
|
|
|
|
`MESSAGE_TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息类型', |
|
|
|
|
`BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务key值', |
|
|
|
|
`MESSAGE_CONTENT` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息推送内容体', |
|
|
|
|
`IS_PUSH` tinyint(4) NULL DEFAULT 0 COMMENT '是否推送', |
|
|
|
|
`IS_SUCCESS` tinyint(4) NULL DEFAULT NULL COMMENT '是否推送', |
|
|
|
|
`PUSH_TIME` datetime(0) NULL DEFAULT NULL COMMENT '推送时间', |
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
|
|
|
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
|
|
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', |
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', |
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', |
|
|
|
|
`MESSAGE_TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息类型', |
|
|
|
|
`BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务key值', |
|
|
|
|
`MESSAGE_CONTENT` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息推送内容体', |
|
|
|
|
`IS_PUSH` tinyint(4) NULL DEFAULT 0 COMMENT '是否推送', |
|
|
|
|
`IS_SUCCESS` tinyint(4) NULL DEFAULT NULL COMMENT '是否推送', |
|
|
|
|
`PUSH_TIME` datetime(0) NULL DEFAULT NULL COMMENT '推送时间', |
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
|
|
|
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
|
|
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', |
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', |
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
|
|
|
|
|
|
|
|
ALTER TABLE `hzims_message`.`hzims_sms_config` MODIFY COLUMN `CONTENT_VARIABLES` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '短信模板参数变量定义' AFTER `IS_DELETED`; |
|
|
|
|