Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -17,6 +17,7 @@ model NotificationDelivery {
updatedAt DateTime @updatedAt
tenantId String?
userId String?
adminUserId String?
channel NotificationPreferenceChannel
category String
messageKey String
@@ -30,12 +31,21 @@ model NotificationDelivery {
readAt DateTime?
tenant Tenant? @relation(fields: [tenantId], references: [id], onDelete: SetNull)
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
adminUser AdminUser? @relation(fields: [adminUserId], references: [id], onDelete: SetNull)
@@index([tenantId, userId, status], name: "notification_delivery_tenant_user_status_idx")
@@index([tenantId, channel, category], name: "notification_delivery_tenant_channel_category_idx")
@@index([userId, channel, sourceKey], name: "notification_delivery_platform_source_lookup_idx")
@@index([adminUserId, status, createdAt(sort: Desc)], name: "notification_delivery_admin_status_time_idx")
@@index([status, updatedAt], name: "notification_delivery_status_updated_at_idx")
@@index([providerMessageId], name: "notification_delivery_provider_message_id_idx")
/// Tenant delivery uniqueness is covered by this composite key. Platform
/// delivery uniqueness additionally requires the merge-migration-managed
/// partial unique index `notification_delivery_platform_source_key` on
/// (userId, channel, sourceKey) WHERE tenantId IS NULL because PostgreSQL
/// treats NULL values as distinct and Prisma cannot declare partial indexes.
@@unique([tenantId, userId, channel, sourceKey], name: "notification_delivery_source_key")
@@unique([adminUserId, channel, sourceKey], name: "notification_delivery_admin_source_key")
}
model UserNotificationPreference {