feat: 增加能力插件启停与审计
This commit is contained in:
1 parent
0fb96bdea3
commit
8a02d09e2d
6 files changed
+147
-1
No files matched your search
@@ -59,6 +59,7 @@ model BrandProfile {
|
||||
inquiryForms InquiryForm[]
|
||||
inquirySubmissions InquirySubmission[]
|
||||
capabilityInstallations CapabilityInstallation[]
|
||||
capabilityAuditLogs CapabilityAuditLog[]
|
||||
}
|
||||
|
||||
model CapabilityInstallation {
|
||||
@@ -75,6 +76,20 @@ model CapabilityInstallation {
|
||||
@@index([brandId, status])
|
||||
}
|
||||
|
||||
model CapabilityAuditLog {
|
||||
id String @id @default(uuid())
|
||||
brandId String
|
||||
brand BrandProfile @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
||||
capabilityKey String
|
||||
actorId String
|
||||
action String
|
||||
fromStatus String?
|
||||
toStatus String
|
||||
config Json?
|
||||
createdAt DateTime @default(now())
|
||||
@@index([brandId, capabilityKey, createdAt])
|
||||
}
|
||||
|
||||
model BrandTemplateInstallation {
|
||||
id String @id @default(uuid())
|
||||
brandId String
|
||||
|
||||
Reference in new issue
Block a user