feat: 增加个人品牌信任内容管理接口

This commit is contained in:
que01 committed 2026-09-19 17:44:33 +08:00
1 parent 60db0a85db
commit b7fbfa1646
5 files changed
+60 -1

No files matched your search

+18
View File
@@ -51,6 +51,7 @@ model BrandProfile {
bookings Booking[]
customerUsers CustomerUser[]
tags Tag[]
trustContents TrustContent[]
}
model Service {
@@ -75,6 +76,23 @@ model Service {
@@index([brandId, isEnabled, sortOrder])
}
model TrustContent {
id String @id @default(uuid())
brandId String
brand BrandProfile @relation(fields: [brandId], references: [id], onDelete: Cascade)
type String
title String
summary String?
content String
coverUrl String?
sortOrder Int @default(0)
isPublished Boolean @default(true)
config Json?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([brandId, type, sortOrder])
}
model CustomerUser {
id String @id @default(uuid())
brandId String