From 945ae9d1acdd161fe8a6e5e6be3e94d0689502ac Mon Sep 17 00:00:00 2001 From: aronmal Date: Tue, 14 Feb 2023 21:05:34 +0100 Subject: [PATCH] Fix schema --- leaky-ships/prisma/schema.prisma | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/leaky-ships/prisma/schema.prisma b/leaky-ships/prisma/schema.prisma index d683dd9..183450b 100644 --- a/leaky-ships/prisma/schema.prisma +++ b/leaky-ships/prisma/schema.prisma @@ -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