@bslau/hmm_prisma_schema 1.5.4 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/prisma/migrations/20250626014650_402547_notificationdisplay_user_dismiss/migration.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- AlterTable
|
|
6
|
+
ALTER TABLE [dbo].[NotificationDisplay] ADD [isDismissed] BIT NOT NULL CONSTRAINT [NotificationDisplay_isDismissed_df] DEFAULT 0,
|
|
7
|
+
[userId] NVARCHAR(1000);
|
|
8
|
+
|
|
9
|
+
COMMIT TRAN;
|
|
10
|
+
|
|
11
|
+
END TRY
|
|
12
|
+
BEGIN CATCH
|
|
13
|
+
|
|
14
|
+
IF @@TRANCOUNT > 0
|
|
15
|
+
BEGIN
|
|
16
|
+
ROLLBACK TRAN;
|
|
17
|
+
END;
|
|
18
|
+
THROW
|
|
19
|
+
|
|
20
|
+
END CATCH
|
package/prisma/schema.prisma
CHANGED
|
@@ -515,13 +515,18 @@ model NotificationCategory {
|
|
|
515
515
|
/// ***HMM Display Modes for Notifications***
|
|
516
516
|
///
|
|
517
517
|
/// These display modes define how these notifications are displayed to the User
|
|
518
|
+
///
|
|
519
|
+
/// Properties for this model also determine whether the displayed notification
|
|
520
|
+
/// is considered a "System" display for boradcast, or a "User" display only
|
|
521
|
+
/// intended for an individual client to receive.
|
|
518
522
|
model NotificationDisplay {
|
|
519
523
|
id Int @id @default(autoincrement())
|
|
520
524
|
displayModeId Int
|
|
521
525
|
notificationDisplayMode NotificationDisplayMode @relation(fields: [displayModeId], references: [id])
|
|
522
526
|
notification Notification @relation(fields: [notificationId], references: [id], onDelete: NoAction, onUpdate: Cascade)
|
|
523
527
|
notificationId Int
|
|
524
|
-
|
|
528
|
+
userId String?
|
|
529
|
+
isDismissed Boolean @default(false)
|
|
525
530
|
}
|
|
526
531
|
|
|
527
532
|
/// ** HMM Display Mode Definitions **
|