mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 00:31:25 +10:00
31 lines
617 B
Plaintext
31 lines
617 B
Plaintext
model User {
|
|
id String @id @default(uuid())
|
|
username String @unique
|
|
admin Boolean @default(false)
|
|
|
|
email String
|
|
displayName String
|
|
profilePicture String // Object
|
|
|
|
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)
|
|
}
|