brackt/app/models/index.ts
Chris Parsons ef7e098d68
Add sports season ↔ tournament linking with admin UI (#372)
Adds a sports_season_tournaments junction table and bidirectional
link/unlink UI on both the sports season and tournament admin pages.

- New junction table with unique index on (sports_season_id, tournament_id)
  and a separate index on tournament_id for reverse lookups
- New model with link/unlink/query functions and cross-sport validation
- Migration includes backfill from existing scoring_events tournament links
- Admin sports season page: Tournaments card with add/remove UI
- Admin tournament page: Linked Sports Seasons card with add/remove UI
- Inline success/error feedback, empty states, aria-labels on remove buttons
- cloneSportsSeason now copies tournament links
- Fixes darts simulator test timeout (15s for 128-player pre-bracket sim)
2026-05-02 12:45:53 -07:00

26 lines
852 B
TypeScript

// Re-export all model functions and types
export * from "./user";
export * from "./league";
export * from "./season";
export * from "./team";
export * from "./commissioner";
export * from "./sport";
export * from "./sports-season";
export * from "./season-participant";
export * from "./season-template";
export * from "./season-template-sport";
export * from "./season-sport";
export * from "./participant-result";
export * from "./draft-slot";
export * from "./draft-pick";
export * from "./draft-queue";
export * from "./draft-timer";
export * from "./draft-utils";
export * from "./watchlist";
export * from "./audit-log";
export * from "./tournament";
export * from "./participant";
export * from "./tournament-result";
export * from "./sports-season-tournament";
export * from "./canonical-surface-elo";
export * from "./canonical-golf-skills";