fix: remove unique username constraint

removed the unique constraint for user name from the database schema

Fixes #46
This commit is contained in:
MTG2000
2022-06-23 19:02:19 +03:00
parent adaebbe324
commit ed0a216cc3
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
-- DropIndex
DROP INDEX "User_name_key";

View File

@@ -41,7 +41,7 @@ model Vote {
model User {
id Int @id @default(autoincrement())
pubKey String? @unique
name String? @unique
name String?
avatar String?
role String @default("user")