chore: 移除林然演示品牌数据
This commit is contained in:
1 parent
26bcb2b66e
commit
422162e580
4 files changed
+7
-40
No files matched your search
@@ -112,7 +112,7 @@ export function BrandPage() {
|
|||||||
help="可以是个人姓名、工作室名称或品牌名。"
|
help="可以是个人姓名、工作室名称或品牌名。"
|
||||||
rules={[{ required: true, message: "请输入品牌名称" }]}
|
rules={[{ required: true, message: "请输入品牌名称" }]}
|
||||||
>
|
>
|
||||||
<Input size="large" placeholder="例如:林然|品牌顾问" />
|
<Input size="large" placeholder="例如:品牌主理人|品牌顾问" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="tagline"
|
name="tagline"
|
||||||
|
|||||||
@@ -169,14 +169,14 @@ export function MembersPage() {
|
|||||||
label="登录账号"
|
label="登录账号"
|
||||||
rules={[{ required: true, message: "请输入登录账号" }]}
|
rules={[{ required: true, message: "请输入登录账号" }]}
|
||||||
>
|
>
|
||||||
<Input placeholder="例如:linran" />
|
<Input placeholder="例如:brand-owner" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="displayName"
|
name="displayName"
|
||||||
label="成员姓名"
|
label="成员姓名"
|
||||||
rules={[{ required: true, message: "请输入成员姓名" }]}
|
rules={[{ required: true, message: "请输入成员姓名" }]}
|
||||||
>
|
>
|
||||||
<Input placeholder="例如:林然" />
|
<Input placeholder="例如:品牌主理人" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="password"
|
name="password"
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
DELETE FROM "BrandProfile"
|
||||||
|
WHERE "slug" = 'linran-brand';
|
||||||
+2
-37
@@ -53,11 +53,10 @@ const runtimeSeedTemplates: Record<"personal" | "food" | "doors", RuntimeSeedTem
|
|||||||
brandConfig: {
|
brandConfig: {
|
||||||
visualTemplateKey: "linjing-editorial",
|
visualTemplateKey: "linjing-editorial",
|
||||||
templateData: { designPhilosophy: "先厘清问题,再设计表达" },
|
templateData: { designPhilosophy: "先厘清问题,再设计表达" },
|
||||||
founder: "林然",
|
|
||||||
title: "品牌策略顾问",
|
title: "品牌策略顾问",
|
||||||
slogan: "用清晰的定位与可执行的表达,让专业被看见。",
|
slogan: "用清晰的定位与可执行的表达,让专业被看见。",
|
||||||
phone: "13900000003",
|
phone: "13900000003",
|
||||||
wechat: "linran-brand",
|
wechat: "personal-brand",
|
||||||
studioAddress: "上海市徐汇区创意园区",
|
studioAddress: "上海市徐汇区创意园区",
|
||||||
heroImage: runtimeImages.personal[0],
|
heroImage: runtimeImages.personal[0],
|
||||||
visualPresentation: {
|
visualPresentation: {
|
||||||
@@ -145,7 +144,7 @@ const runtimeSeedTemplates: Record<"personal" | "food" | "doors", RuntimeSeedTem
|
|||||||
trustContent: [
|
trustContent: [
|
||||||
{
|
{
|
||||||
type: "credential",
|
type: "credential",
|
||||||
title: "关于林然",
|
title: "关于主理人",
|
||||||
content: "专注帮助专业服务者建立可信、清晰且能带来合作的个人品牌表达。",
|
content: "专注帮助专业服务者建立可信、清晰且能带来合作的个人品牌表达。",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -825,39 +824,6 @@ async function main(): Promise<void> {
|
|||||||
create: { adminUserId: admin.id, brandId: brand.id, role: "owner" },
|
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({
|
const doorsBrand = await prisma.brandProfile.upsert({
|
||||||
where: { id: "00000000-0000-0000-0000-000000000002" },
|
where: { id: "00000000-0000-0000-0000-000000000002" },
|
||||||
update: {
|
update: {
|
||||||
@@ -891,7 +857,6 @@ async function main(): Promise<void> {
|
|||||||
});
|
});
|
||||||
await ensureRuntimeContent(doorsBrand.id, runtimeSeedTemplates.doors);
|
await ensureRuntimeContent(doorsBrand.id, runtimeSeedTemplates.doors);
|
||||||
await ensureSeedRelease(brand.id, admin.id);
|
await ensureSeedRelease(brand.id, admin.id);
|
||||||
await ensureSeedRelease(personalBrand.id, admin.id);
|
|
||||||
await ensureSeedRelease(doorsBrand.id, admin.id);
|
await ensureSeedRelease(doorsBrand.id, admin.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user