Files
devops-platform-api/prisma/migrations/20261028030000_notification_config/migration.sql
T
湛兮 e07f727bd2 feat(notifications): 新增通知偏好、模板预览与测试发送
- notifications/config: 持久化通知时机、显示字段和模板,提供预览与确认测试接口
- prisma: 新增通知配置表及版本校验迁移
- notifications/wecom: 发布与重试共用模板,校验企微业务响应并补充回归测试
2026-10-28 10:44:39 +08:00

9 lines
350 B
SQL

CREATE TABLE `notification_configs` (
`id` VARCHAR(191) NOT NULL DEFAULT 'system',
`preferences` JSON NOT NULL,
`version` INTEGER NOT NULL DEFAULT 1,
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`updatedAt` DATETIME(3) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;