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:
Matt
2026-04-06 16:33:13 -04:00
parent 3ccf9b0542
commit a002f544a6
2 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "AwardJuror" ADD COLUMN "isChair" BOOLEAN NOT NULL DEFAULT false;
-- AlterTable
ALTER TABLE "AwardVote" ADD COLUMN "justification" TEXT;

View File

@@ -1646,9 +1646,10 @@ model AwardEligibility {
}
model AwardJuror {
id String @id @default(cuid())
id String @id @default(cuid())
awardId String
userId String
isChair Boolean @default(false)
createdAt DateTime @default(now())
@@ -1666,8 +1667,9 @@ model AwardVote {
awardId String
userId String
projectId String
rank Int? // For RANKED mode
votedAt DateTime @default(now())
rank Int? // For RANKED mode
justification String? @db.Text
votedAt DateTime @default(now())
// Relations
award SpecialAward @relation(fields: [awardId], references: [id], onDelete: Cascade)