feat(notifications): 新增通知偏好、模板预览与测试发送
- notifications/config: 持久化通知时机、显示字段和模板,提供预览与确认测试接口 - prisma: 新增通知配置表及版本校验迁移 - notifications/wecom: 发布与重试共用模板,校验企微业务响应并补充回归测试
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user