feat: 收口多品牌与模板构建基础
This commit is contained in:
1 parent
0425a1c672
commit
77224ea51f
317 files changed
+11290
-1158
No files matched your search
@@ -62,6 +62,23 @@ model BrandProfile {
|
||||
capabilityInstallations CapabilityInstallation[]
|
||||
capabilityAuditLogs CapabilityAuditLog[]
|
||||
adminMemberships BrandMembership[]
|
||||
releases BrandRelease[]
|
||||
}
|
||||
|
||||
model BrandRelease {
|
||||
id String @id @default(uuid())
|
||||
brandId String
|
||||
brand BrandProfile @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
||||
version Int
|
||||
status String @default("published")
|
||||
snapshot Json
|
||||
actorId String
|
||||
note String?
|
||||
createdAt DateTime @default(now())
|
||||
revokedAt DateTime?
|
||||
revokedBy String?
|
||||
@@unique([brandId, version])
|
||||
@@index([brandId, status, createdAt])
|
||||
}
|
||||
|
||||
model CapabilityInstallation {
|
||||
@@ -328,6 +345,7 @@ model AdminUser {
|
||||
displayName String
|
||||
role String @default("admin")
|
||||
isEnabled Boolean @default(true)
|
||||
mustChangePassword Boolean @default(false)
|
||||
lastLoginAt DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
Reference in new issue
Block a user