mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
* #86 Adds delete user functionality in admin panel * Removes unnecessary code * Prevents current user from deleting itself
43 lines
938 B
Plaintext
43 lines
938 B
Plaintext
model User {
|
|
id String @id @default(uuid())
|
|
username String @unique
|
|
admin Boolean @default(false)
|
|
enabled Boolean @default(true)
|
|
|
|
email String
|
|
displayName String
|
|
profilePictureObjectId String // Object
|
|
|
|
authMecs LinkedAuthMec[]
|
|
clients Client[]
|
|
notifications Notification[]
|
|
collections Collection[]
|
|
articles Article[]
|
|
|
|
tokens APIToken[]
|
|
sessions Session[]
|
|
|
|
saves SaveSlot[]
|
|
screenshots Screenshot[]
|
|
playtime Playtime[]
|
|
}
|
|
|
|
model Notification {
|
|
id String @id @default(uuid())
|
|
|
|
nonce String?
|
|
|
|
userId String
|
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
acls String[]
|
|
|
|
created DateTime @default(now())
|
|
title String
|
|
description String
|
|
actions String[]
|
|
|
|
read Boolean @default(false)
|
|
|
|
@@unique([userId, nonce])
|
|
}
|