mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
This commit is contained in:
parent
3447e36448
commit
a4b8cf5aab
2 changed files with 9 additions and 1 deletions
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- A unique constraint covering the columns `[token]` on the table `session` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `session_token_key` ON `session`(`token`);
|
||||||
|
|
@ -429,7 +429,7 @@ model users {
|
||||||
model session {
|
model session {
|
||||||
id String @id
|
id String @id
|
||||||
userId String @db.VarChar(255)
|
userId String @db.VarChar(255)
|
||||||
token String
|
token String @unique
|
||||||
expiresAt DateTime
|
expiresAt DateTime
|
||||||
ipAddress String?
|
ipAddress String?
|
||||||
userAgent String?
|
userAgent String?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue