Skip to content

Commit

Permalink
feat: 消息模板初始化sql TencentBlueKing#5150
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzcao committed Sep 13, 2021
1 parent d27bed7 commit ea88cea
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions support-files/sql/1001_ci_notify_ddl_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,36 @@ CREATE TABLE IF NOT EXISTS `T_COMMON_NOTIFY_MESSAGE_TEMPLATE`
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;

-- ----------------------------
-- Table structure for T_NOTIFY_WEWORK
-- ----------------------------

CREATE TABLE IF NOT EXISTS `T_NOTIFY_WEWORK`
(
`ID` bigint primary key auto_increment,
`SUCCESS` bit(1) NOT NULL,
`RECEIVERS` text NOT NULL,
`BODY` text NOT NULL,
`LAST_ERROR` text,
`CREATED_TIME` datetime(6) DEFAULT NOW(6),
`UPDATED_TIME` datetime(6) DEFAULT NOW(6)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;

CREATE TABLE IF NOT EXISTS `T_WEWORK_NOTIFY_MESSAGE_TEMPLATE`
(
`ID` varchar(32) NOT NULL,
`COMMON_TEMPLATE_ID` varchar(32) NOT NULL,
`CREATOR` varchar(50) NOT NULL,
`MODIFIOR` varchar(50) NOT NULL,
`SENDER` varchar(128) NOT NULL DEFAULT 'DevOps',
`TITLE` varchar(256) DEFAULT NULL,
`BODY` mediumtext NOT NULL,
`CREATE_TIME` datetime(6) NOT NULL DEFAULT NOW(6),
`UPDATE_TIME` datetime(6) NOT NULL DEFAULT NOW(6),
PRIMARY KEY (`ID`),
KEY `idx_templateId` (`COMMON_TEMPLATE_ID`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;

SET FOREIGN_KEY_CHECKS = 1;

0 comments on commit ea88cea

Please sign in to comment.