- Add scoringPattern and eventType enums for 4 scoring patterns
(single_elimination_playoff, page_playoff, season_standings, qualifying_points)
- Add 8 placement point fields to seasons table (1st-8th) with defaults
- Add scoring pattern fields to sportsSeasons table (scoringPattern, totalMajors, etc.)
- Create 10 new tables:
- scoring_events: Individual games, tournaments, races
- event_results: Participant results per event
- playoff_matches: Bracket tracking for playoffs
- participant_qualifying_totals: QP aggregation for golf/tennis
- qualifying_point_config: Configurable QP values per sport
- team_sport_scores: Aggregated scores per sport
- team_standings: Current standings with tiebreakers
- team_standings_snapshots: Daily snapshots for 7-day tracking
- participant_expected_values: EV calculations per league
- participant_season_results: F1 current points tracking
- Add all necessary relations for new tables
- Update test fixtures with new required scoring fields
41 lines
933 B
TypeScript
41 lines
933 B
TypeScript
export const mockSeason = {
|
|
id: 'season-1',
|
|
leagueId: 'league-1',
|
|
year: 2025,
|
|
status: 'pre_draft' as const,
|
|
templateId: null,
|
|
draftRounds: 20,
|
|
flexSpots: 0,
|
|
draftDateTime: new Date('2025-12-01T19:00:00'),
|
|
draftInitialTime: 120,
|
|
draftIncrementTime: 15,
|
|
currentPickNumber: 1,
|
|
draftStartedAt: null,
|
|
draftPaused: false,
|
|
inviteCode: 'TEST123',
|
|
pointsFor1st: 100,
|
|
pointsFor2nd: 70,
|
|
pointsFor3rd: 50,
|
|
pointsFor4th: 40,
|
|
pointsFor5th: 25,
|
|
pointsFor6th: 25,
|
|
pointsFor7th: 15,
|
|
pointsFor8th: 15,
|
|
createdAt: new Date('2025-01-01'),
|
|
updatedAt: new Date('2025-01-01'),
|
|
};
|
|
|
|
export const mockActiveSeason = {
|
|
...mockSeason,
|
|
id: 'season-2',
|
|
status: 'active' as const,
|
|
draftStartedAt: new Date('2025-12-01T19:00:00'),
|
|
};
|
|
|
|
export const mockDraftSeason = {
|
|
...mockSeason,
|
|
id: 'season-3',
|
|
status: 'draft' as const,
|
|
draftStartedAt: new Date('2025-12-01T19:00:00'),
|
|
currentPickNumber: 5,
|
|
};
|