@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bslau/hmm_prisma_schema",
3
- "version": "1.5.4",
3
+ "version": "1.6.0",
4
4
  "main": "index.js",
5
5
  "author": "CIPA Development Team",
6
6
  "license": "ISC",
@@ -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
@@ -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
- // status Boolean @default(false) NOTES: Probably add something like this later to check for example if a notification has been acknowledged by the user
528
+ userId String?
529
+ isDismissed Boolean @default(false)
525
530
  }
526
531
 
527
532
  /// ** HMM Display Mode Definitions **