Ensure player auth emails are unique by game#894
Conversation
PR Review: Ensure player auth emails are unique by gameThe feature logic is sound and tests are comprehensive. One issue worth addressing: 🟡 Data IntegrityNo database-level unique constraint backing the application check
The application-level guard is correct, but it needs a DB constraint to be reliable. A migration should add: ALTER TABLE player_auth ADD UNIQUE KEY uq_player_auth_email_game (email, game_id); Without this, the EMAIL_TAKEN check is best-effort rather than guaranteed. No other issues found
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #894 +/- ##
===========================================
+ Coverage 97.29% 97.32% +0.02%
===========================================
Files 403 403
Lines 6481 6496 +15
Branches 844 848 +4
===========================================
+ Hits 6306 6322 +16
Misses 90 90
+ Partials 85 84 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.