feat(ST-507): add optional email field to User schema

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-04-26 19:37:38 +02:00
parent e887f796c7
commit 1187117e05
3 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 321 KiB

After

Width:  |  Height:  |  Size: 324 KiB

Before After
Before After

View file

@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "users" ADD COLUMN "email" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "users_email_key" ON "users"("email");

View file

@ -49,6 +49,7 @@ enum SprintStatus {
model User { model User {
id String @id @default(cuid()) id String @id @default(cuid())
username String @unique username String @unique
email String? @unique
password_hash String password_hash String
is_demo Boolean @default(false) is_demo Boolean @default(false)
bio String? @db.VarChar(160) bio String? @db.VarChar(160)