feat: 增加能力插件安装模型
This commit is contained in:
1 parent
3bc19c36a7
commit
21c40b8e10
3 files changed
+31
No files matched your search
@@ -58,6 +58,21 @@ model BrandProfile {
|
||||
offerings Offering[]
|
||||
inquiryForms InquiryForm[]
|
||||
inquirySubmissions InquirySubmission[]
|
||||
capabilityInstallations CapabilityInstallation[]
|
||||
}
|
||||
|
||||
model CapabilityInstallation {
|
||||
id String @id @default(uuid())
|
||||
brandId String
|
||||
brand BrandProfile @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
||||
capabilityKey String
|
||||
capabilityVersion String
|
||||
status String @default("enabled")
|
||||
config Json?
|
||||
installedAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
@@unique([brandId, capabilityKey])
|
||||
@@index([brandId, status])
|
||||
}
|
||||
|
||||
model BrandTemplateInstallation {
|
||||
|
||||
Reference in new issue
Block a user