mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
refactor: session handler
This commit is contained in:
@ -53,6 +53,11 @@ model Certificate {
|
||||
}
|
||||
|
||||
model Session {
|
||||
token String @id
|
||||
data Json
|
||||
token String @id
|
||||
expiresAt DateTime
|
||||
|
||||
userId String
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
|
||||
data Json // misc extra data
|
||||
}
|
||||
|
||||
@ -14,7 +14,8 @@ model User {
|
||||
collections Collection[]
|
||||
articles Article[]
|
||||
|
||||
tokens APIToken[]
|
||||
tokens APIToken[]
|
||||
sessions Session[]
|
||||
}
|
||||
|
||||
model Notification {
|
||||
|
||||
Reference in New Issue
Block a user