mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-17 10:11:10 +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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user