feat: add tournament creation wizard with participant management and bulk game entry
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
-- Add unique constraint to EventParticipant table
|
||||
CREATE UNIQUE INDEX "event_participants_eventId_playerId_key" ON "event_participants"("eventId", "playerId");
|
||||
Binary file not shown.
@@ -100,6 +100,7 @@ model EventParticipant {
|
||||
player Player @relation(fields: [playerId], references: [id])
|
||||
event Event @relation(fields: [eventId], references: [id])
|
||||
|
||||
@@unique([eventId, playerId])
|
||||
@@map("event_participants")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user