feat: 增加模板升级预览与显式升级

This commit is contained in:
que01 committed 2026-09-20 17:55:22 +08:00
1 parent 388032000a
commit 44b6f6db64
5 files changed
+114

No files matched your search

@@ -0,0 +1 @@
ALTER TABLE "BrandTemplateInstallation" ADD COLUMN "previousSnapshots" JSONB NOT NULL DEFAULT '[]';
+1
View File
@@ -91,6 +91,7 @@ model BrandTemplateInstallation {
templateKey String
templateVersion String @default("1.0.0")
configSnapshot Json
previousSnapshots Json @default("[]")
installedAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([brandId, templateKey])