refactor: session handler

This commit is contained in:
Huskydog9988
2025-04-03 19:15:33 -04:00
parent 97043d6366
commit a9d1a442f6
13 changed files with 189 additions and 168 deletions

View File

@ -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
}

View File

@ -14,7 +14,8 @@ model User {
collections Collection[]
articles Article[]
tokens APIToken[]
tokens APIToken[]
sessions Session[]
}
model Notification {