feat: 让模板声明驱动安装并保存快照

This commit is contained in:
que01 committed 2026-09-20 17:48:33 +08:00
1 parent a3434ce2b9
commit 388032000a
6 files changed
+65 -18

No files matched your search

@@ -0,0 +1 @@
ALTER TABLE "BrandTemplateInstallation" ADD COLUMN "configSnapshot" JSONB NOT NULL DEFAULT '{}';
+1
View File
@@ -90,6 +90,7 @@ model BrandTemplateInstallation {
brand BrandProfile @relation(fields: [brandId], references: [id], onDelete: Cascade)
templateKey String
templateVersion String @default("1.0.0")
configSnapshot Json
installedAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([brandId, templateKey])