mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
32 lines
679 B
Plaintext
32 lines
679 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[]
|
|
collections Collection[]
|
|
news News[]
|
|
}
|
|
|
|
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)
|
|
}
|