Files
lone-services/services/wecom/sql/agents.sql
T
zzw 1d41d7ca7e
CI / changes (push) Successful in 12s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 3s
CI / chore (push) Successful in 0s
CI / express (push) Successful in 0s
CI / product (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 31s
fix: wecom types agent
2026-08-31 14:22:46 +08:00

14 lines
672 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 企业微信应用表(库:dms-wecom,前缀为空时表名为 agents
CREATE TABLE IF NOT EXISTS `agents` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL DEFAULT '' COMMENT '应用名称',
`agent_id` bigint NOT NULL DEFAULT 0 COMMENT '企业微信 AgentId',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_agent_id` (`agent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='企业微信应用';
INSERT INTO `agents` (`id`, `name`, `agent_id`, `created_at`) VALUES
(1, '审核通知', 100003, '2026-05-22 16:14:31'),
(2, '消息通知', 100004, '2026-05-22 16:14:33');