feat: add team configuration fields to Event model
Add fields for team durability, partner rotation, and configuration: - teamDurability: permanent, variable, or per_round - partnerRotation: none, minimize_repeat, maximize_even, elo_based - allowByes: handle odd participant counts - teamConfiguration: JSON for additional options - maxRosterChanges: limit roster changes per player - requireAdminVerify: for match score verification Refs #22
This commit is contained in:
@@ -63,6 +63,7 @@ model Event {
|
||||
description String?
|
||||
eventDate DateTime?
|
||||
eventType String @default("tournament")
|
||||
tournamentType String @default("individual")
|
||||
format String @default("round_robin")
|
||||
status String @default("planned")
|
||||
maxParticipants Int?
|
||||
@@ -78,6 +79,14 @@ model Event {
|
||||
teams Team[]
|
||||
rounds TournamentRound[]
|
||||
|
||||
// Team configuration fields
|
||||
teamDurability String @default("permanent") // permanent, variable, per_round
|
||||
partnerRotation String @default("none") // none, minimize_repeat, maximize_even, elo_based
|
||||
allowByes Boolean @default(true)
|
||||
teamConfiguration Json? // Additional configuration options
|
||||
maxRosterChanges Int? // Maximum roster changes per player
|
||||
requireAdminVerify Boolean @default(false) // For match score verification
|
||||
|
||||
@@map("events")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user