schema: add isChair to AwardJuror, justification to AwardVote
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "AwardJuror" ADD COLUMN "isChair" BOOLEAN NOT NULL DEFAULT false;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "AwardVote" ADD COLUMN "justification" TEXT;
|
||||||
@@ -1646,9 +1646,10 @@ model AwardEligibility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model AwardJuror {
|
model AwardJuror {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
awardId String
|
awardId String
|
||||||
userId String
|
userId String
|
||||||
|
isChair Boolean @default(false)
|
||||||
|
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
|
|
||||||
@@ -1666,8 +1667,9 @@ model AwardVote {
|
|||||||
awardId String
|
awardId String
|
||||||
userId String
|
userId String
|
||||||
projectId String
|
projectId String
|
||||||
rank Int? // For RANKED mode
|
rank Int? // For RANKED mode
|
||||||
votedAt DateTime @default(now())
|
justification String? @db.Text
|
||||||
|
votedAt DateTime @default(now())
|
||||||
|
|
||||||
// Relations
|
// Relations
|
||||||
award SpecialAward @relation(fields: [awardId], references: [id], onDelete: Cascade)
|
award SpecialAward @relation(fields: [awardId], references: [id], onDelete: Cascade)
|
||||||
|
|||||||
Reference in New Issue
Block a user