mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Session and verification tables
This commit is contained in:
parent
765ccdbe6f
commit
df7a1fc4ca
3 changed files with 130 additions and 103 deletions
|
|
@ -526,4 +526,27 @@ model users {
|
|||
logs logs[]
|
||||
ratings ratings[]
|
||||
submissions submissions[]
|
||||
sessions session[]
|
||||
}
|
||||
|
||||
model session {
|
||||
id String @id
|
||||
userId String @db.VarChar(255)
|
||||
token String
|
||||
expiresAt DateTime
|
||||
ipAddress String?
|
||||
userAgent String?
|
||||
createdAt DateTime
|
||||
updatedAt DateTime
|
||||
|
||||
user users @relation(fields: [userId], references: [username])
|
||||
}
|
||||
|
||||
model verification {
|
||||
id String @id
|
||||
identifier String
|
||||
value String
|
||||
expiresAt DateTime
|
||||
createdAt DateTime
|
||||
updatedAt DateTime
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue