feat(notifications): added notification system w/ interwoven refactoring

This commit is contained in:
DecDuck
2024-11-16 19:41:19 +11:00
parent 4db9ebe66a
commit 3652d6123c
22 changed files with 498 additions and 56 deletions
+19 -1
View File
@@ -9,4 +9,22 @@ model User {
authMecs LinkedAuthMec[]
clients Client[]
}
notifications Notification[]
}
model Notification {
id String @id @default(uuid())
nonce String? @unique
userId String
user User @relation(fields: [userId], references: [id])
created DateTime @default(now())
title String
description String
actions String[]
read Boolean @default(false)
}