-- 企业微信应用表(库: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');