New goals page. Upgraded prisma.

This commit is contained in:
Mike Cao 2025-05-31 02:11:18 -07:00
parent 99330a1a4d
commit 49bcbfd7f9
65 changed files with 769 additions and 1195 deletions

View file

@ -235,42 +235,3 @@ model Report {
@@index([name])
@@map("report")
}
model Board {
id String @id() @unique() @map("board_id") @db.Uuid
userId String @map("user_id") @db.Uuid
teamId String? @map("team_id") @db.Uuid
name String @map("name") @db.VarChar(200)
description String @map("description") @db.VarChar(500)
parameters Json @map("parameters") @db.JsonB
createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)
user User @relation(fields: [userId], references: [id])
team Team? @relation(fields: [teamId], references: [id])
@@index([userId])
@@index([teamId])
@@index([type])
@@index([name])
@@map("board")
}
model Block {
id String @id() @unique() @map("block_id") @db.Uuid
userId String @map("user_id") @db.Uuid
name String @map("name") @db.VarChar(200)
type String @map("type") @db.VarChar(20)
parameters Json @map("parameters") @db.JsonB
createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)
user User @relation(fields: [userId], references: [id])
website Website @relation(fields: [websiteId], references: [id])
@@index([userId])
@@index([websiteId])
@@index([type])
@@index([name])
@@map("block")
}