feat: 支持公开品牌 slug 解析
This commit is contained in:
1 parent
e89b751572
commit
ff5dc4e3ba
5 files changed
+13
-2
No files matched your search
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "BrandProfile" ADD COLUMN "slug" TEXT NOT NULL DEFAULT 'default-brand';
|
||||
CREATE UNIQUE INDEX "BrandProfile_slug_key" ON "BrandProfile"("slug");
|
||||
@@ -34,6 +34,7 @@ enum FulfillmentType {
|
||||
|
||||
model BrandProfile {
|
||||
id String @id @default(uuid())
|
||||
slug String @unique @default("default-brand")
|
||||
name String
|
||||
templateKey String @default("food")
|
||||
tagline String?
|
||||
|
||||
@@ -8,6 +8,7 @@ async function main(): Promise<void> {
|
||||
where: { id: "00000000-0000-0000-0000-000000000001" },
|
||||
update: {},
|
||||
create: {
|
||||
slug: "default-brand",
|
||||
id: "00000000-0000-0000-0000-000000000001",
|
||||
name: "阿成家常菜",
|
||||
templateKey: "food",
|
||||
|
||||
Reference in new issue
Block a user