feat: 增加品牌通用扩展配置

This commit is contained in:
que01 committed 2026-09-21 14:10:25 +08:00
1 parent 270136d24e
commit 73e21e6b0d
5 files changed
+22 -1

No files matched your search

@@ -0,0 +1,11 @@
ALTER TABLE "BrandProfile" ADD COLUMN "config" JSONB;
UPDATE "BrandProfile"
SET "config" = jsonb_strip_nulls(jsonb_build_object(
'legacyIndustryFields', jsonb_strip_nulls(jsonb_build_object(
'hours', "hours",
'address', "address",
'deliveryNote', "deliveryNote"
))
))
WHERE "hours" IS NOT NULL OR "address" IS NOT NULL OR "deliveryNote" IS NOT NULL;
+1
View File
@@ -45,6 +45,7 @@ model BrandProfile {
deliveryNote String?
contactPhone String?
contactWechat String?
config Json?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
services Service[]