...
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[username]` on the table `user` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "user" ADD COLUMN "displayUsername" TEXT,
|
||||
ADD COLUMN "username" TEXT;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "user_username_key" ON "user"("username");
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client"
|
||||
output = "../generated/prisma"
|
||||
@@ -21,8 +22,12 @@ model User {
|
||||
dictionaryLookUps DictionaryLookUp[]
|
||||
translationHistories TranslationHistory[]
|
||||
|
||||
username String?
|
||||
displayUsername String?
|
||||
|
||||
@@unique([email])
|
||||
@@map("user")
|
||||
@@unique([username])
|
||||
}
|
||||
|
||||
model Session {
|
||||
|
||||
Reference in New Issue
Block a user