chore: db remove category name unique attr

This commit is contained in:
Sonny
2023-06-04 23:52:19 +02:00
parent 9e8db03dc5
commit f1326bc06e
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
-- DropIndex
DROP INDEX `category_name_key` ON `category`;

View File

@@ -27,7 +27,7 @@ model User {
model Category {
id Int @id @default(autoincrement())
name String @unique @db.VarChar(255)
name String @db.VarChar(255)
links Link[]
author User @relation(fields: [authorId], references: [id])