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;
|
||||
@@ -322,6 +322,16 @@ model AgentInvocation {
|
||||
@@map("agent_invocations")
|
||||
}
|
||||
|
||||
model NotificationConfig {
|
||||
id String @id @default("system")
|
||||
preferences Json
|
||||
version Int @default(1)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@map("notification_configs")
|
||||
}
|
||||
|
||||
model OutboxMessage {
|
||||
id String @id @default(cuid())
|
||||
deployRunId String?
|
||||
|
||||
Reference in New Issue
Block a user