Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -4,11 +4,9 @@
|
||||
// world is deliberately a *separate* world: these rows carry NO
|
||||
// `tenant_id`-based RLS scoping of their own beyond a plain FK, because
|
||||
// admin actions span tenants. Cross-tenant admin actions are recorded
|
||||
// through the shared AuditEvent Querschnitt (tenantId=null,
|
||||
// actorType="admin") — NOT a parallel audit table (see AK-P19 plan,
|
||||
// DoD #7). v1 also reuses the boilerplate User model as the admin
|
||||
// identity (AdminUser extension + admin-mfa-gate); the separate
|
||||
// AdminUser/AdminRole/AdminSession identity is v2 (M038/M039).
|
||||
// through the shared append-only AuditEvent Querschnitt (tenantId=null,
|
||||
// actorType="admin") — NOT a parallel audit table. All authors reference
|
||||
// the tenant-less AdminUser identity from adminIdentity.prisma.
|
||||
|
||||
/// AdminTenantNote — free-form operator notes pinned to a tenant.
|
||||
/// ENTITY-MODEL Domäne 11: markdown note_text, category, pinned.
|
||||
@@ -25,7 +23,7 @@ model AdminTenantNote {
|
||||
pinned Boolean @default(false)
|
||||
|
||||
tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade)
|
||||
author User? @relation("adminTenantNoteAuthor", fields: [authorUserId], references: [id], onDelete: SetNull)
|
||||
author AdminUser? @relation("adminTenantNoteAuthor", fields: [authorUserId], references: [id], onDelete: SetNull)
|
||||
|
||||
// Detail view lists pinned-first, newest-first, per tenant.
|
||||
@@index([tenantId, pinned, createdAt], name: "admin_tenant_note_tenant_pinned_created_idx")
|
||||
@@ -46,7 +44,7 @@ model SupportTicketMessage {
|
||||
internalNote Boolean @default(false)
|
||||
|
||||
ticket SupportTicket @relation(fields: [supportTicketId], references: [id], onDelete: Cascade)
|
||||
author User? @relation("supportTicketMessageAuthor", fields: [authorUserId], references: [id], onDelete: SetNull)
|
||||
author AdminUser? @relation("supportTicketMessageAuthor", fields: [authorUserId], references: [id], onDelete: SetNull)
|
||||
|
||||
@@index([supportTicketId, createdAt], name: "support_ticket_message_ticket_created_idx")
|
||||
}
|
||||
Reference in new issue
Block a user