Fix schema

This commit is contained in:
aronmal 2023-02-14 21:05:34 +01:00
parent db79dc43c9
commit 945ae9d1ac
Signed by: aronmal
GPG key ID: 816B7707426FC612

View file

@ -14,7 +14,7 @@ model Player {
anonymous Boolean @default(true)
username String? @unique
email String? @unique
passwordHash String? @unique
passwordHash String @default("")
tokens Token[]
games Player_Game[]
}
@ -27,7 +27,6 @@ enum TokenType {
model Token {
id String @id @default(cuid())
createdAt DateTime @default(now())
token String @unique
type TokenType
used Boolean @default(false)
ownerId String