Initial commit: Kalendartool (Next.js, Prisma, Docker)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
10
prisma/migrations/20260921000001_user_username/migration.sql
Normal file
10
prisma/migrations/20260921000001_user_username/migration.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Migration: Username-Spalte fuer Benutzer.
|
||||
-- username: frei waehlbarer Anzeigename (optional, eindeutig).
|
||||
-- Im Profil-Badge wird username bevorzugt, sonst email angezeigt.
|
||||
-- Bestehende Benutzer erhalten NULL; sie koennen den Namen im Profil setzen.
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" ADD COLUMN "username" TEXT;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "users_username_key" ON "users"("username");
|
||||
Reference in New Issue
Block a user