remove slug from board schema
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-- AlterTable board: drop slug
|
||||
DROP INDEX IF EXISTS "board_slug_key";
|
||||
DROP INDEX IF EXISTS "board_slug_idx";
|
||||
ALTER TABLE "board" DROP COLUMN IF EXISTS "slug";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "website" ADD COLUMN "replay_enabled" BOOLEAN NOT NULL DEFAULT false;
|
||||
ALTER TABLE "website" ADD COLUMN "replay_config" JSONB;
|
||||
|
||||
@@ -332,7 +332,6 @@ model Board {
|
||||
name String @db.VarChar(200)
|
||||
description String @db.VarChar(500)
|
||||
parameters Json
|
||||
slug String @unique() @db.VarChar(100)
|
||||
userId String? @map("user_id") @db.Uuid
|
||||
teamId String? @map("team_id") @db.Uuid
|
||||
createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
|
||||
@@ -341,7 +340,6 @@ model Board {
|
||||
user User? @relation("user", fields: [userId], references: [id])
|
||||
team Team? @relation(fields: [teamId], references: [id])
|
||||
|
||||
@@index([slug])
|
||||
@@index([userId])
|
||||
@@index([teamId])
|
||||
@@index([createdAt])
|
||||
|
||||
Reference in New Issue
Block a user