1 Star 0 Fork 4

hbhk-java/hms-delay-mq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
hbhk.sql 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
hbhk 提交于 2021-03-10 13:58 . 12312
DROP TABLE IF EXISTS `hms_mq`;
CREATE TABLE `hms_mq` (
`id` bigint(20) NOT NULL,
`mq_name` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`namesrv_addr` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`status` int(2) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
DROP TABLE IF EXISTS `hms_shard`;
CREATE TABLE `hms_shard` (
`id` bigint(20) NOT NULL,
`shard` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`status` int(2) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
DROP TABLE IF EXISTS `hms_topic`;
CREATE TABLE `hms_topic` (
`id` bigint(20) NOT NULL,
`mq_name` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`target_topic` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`msg` text COLLATE utf8mb4_bin,
`msg_key` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`tags` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`delay` bigint(20) DEFAULT NULL,
`delay_time` datetime DEFAULT NULL,
`status` int(2) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uniq_topic` (`target_topic`,`msg_key`,`delay`),
KEY `idx_hms_topic` (`status`,`target_topic`,`delay`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/hbhk/hms-delay-mq.git
[email protected]:hbhk/hms-delay-mq.git
hbhk
hms-delay-mq
hms-delay-mq
master

搜索帮助