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 {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user