brackt/database
Chris Parsons c9fdb12a09
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 1m31s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 1m19s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 48s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Enforce unique team names within a season
- Add findTeamByNameInSeason (exact case-insensitive match via lower()) to the team model
- Validate uniqueness in the user-facing team settings rename action
- Validate uniqueness in admin assign-owner and remove-owner paths that auto-generate names
- Reject whitespace-only team names that would trim to an empty string
- Add DB-level unique index on (season_id, lower(name)) to close the TOCTOU race

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 16:55:08 -07:00
..
context.browser-stub.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
context.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
schema.ts Enforce unique team names within a season 2026-05-23 16:55:08 -07:00