feat: 支持公开品牌 slug 解析

This commit is contained in:
que01 committed 2026-09-23 03:12:08 +08:00
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");
+1
View File
@@ -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?
+1
View File
@@ -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",