From 422162e580d2e23cbc459d2701b79301fbce605e Mon Sep 17 00:00:00 2001 From: que01 Date: Sun, 11 Oct 2026 23:26:54 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E6=9E=97=E7=84=B6?= =?UTF-8?q?=E6=BC=94=E7=A4=BA=E5=93=81=E7=89=8C=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/features/brand/BrandPage.tsx | 2 +- apps/admin/src/features/team/MembersPage.tsx | 4 +- .../migration.sql | 2 + apps/api/prisma/seed.ts | 39 +------------------ 4 files changed, 7 insertions(+), 40 deletions(-) create mode 100644 apps/api/prisma/migrations/20261011230000_remove_linran_brand/migration.sql diff --git a/apps/admin/src/features/brand/BrandPage.tsx b/apps/admin/src/features/brand/BrandPage.tsx index a4e9ddb..edcf9c9 100644 --- a/apps/admin/src/features/brand/BrandPage.tsx +++ b/apps/admin/src/features/brand/BrandPage.tsx @@ -112,7 +112,7 @@ export function BrandPage() { help="可以是个人姓名、工作室名称或品牌名。" rules={[{ required: true, message: "请输入品牌名称" }]} > - + - + - + { create: { adminUserId: admin.id, brandId: brand.id, role: "owner" }, }); - const personalBrand = await prisma.brandProfile.upsert({ - where: { id: "00000000-0000-0000-0000-000000000003" }, - update: { - slug: "linran-brand", - name: "林然品牌顾问", - templateKey: "personal", - tagline: "用清晰的定位与可执行的表达,让专业被看见。", - description: "为专业服务者提供品牌定位、表达与长期顾问支持。", - hours: "周一至周五 10:00-18:00", - address: "上海市徐汇区创意园区", - contactPhone: "13900000003", - contactWechat: "linran-brand", - }, - create: { - id: "00000000-0000-0000-0000-000000000003", - slug: "linran-brand", - name: "林然品牌顾问", - templateKey: "personal", - tagline: "用清晰的定位与可执行的表达,让专业被看见。", - description: "为专业服务者提供品牌定位、表达与长期顾问支持。", - hours: "周一至周五 10:00-18:00", - address: "上海市徐汇区创意园区", - contactPhone: "13900000003", - contactWechat: "linran-brand", - }, - }); - await prisma.brandMembership.upsert({ - where: { adminUserId_brandId: { adminUserId: admin.id, brandId: personalBrand.id } }, - update: { isEnabled: true, role: "owner" }, - create: { adminUserId: admin.id, brandId: personalBrand.id, role: "owner" }, - }); - await ensureRuntimeContent(personalBrand.id, runtimeSeedTemplates.personal); - const doorsBrand = await prisma.brandProfile.upsert({ where: { id: "00000000-0000-0000-0000-000000000002" }, update: { @@ -891,7 +857,6 @@ async function main(): Promise { }); await ensureRuntimeContent(doorsBrand.id, runtimeSeedTemplates.doors); await ensureSeedRelease(brand.id, admin.id); - await ensureSeedRelease(personalBrand.id, admin.id); await ensureSeedRelease(doorsBrand.id, admin.id); }