fix: Use user IDs to identify DJ profile information across auth and backend systems #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Integrate User ID Strings with DJ System
This PR replaces the legacy numerical DJ ID system with user ID strings from the authentication database, unifying user identity across the application.
Changes
Database Migration
integertovarchar(255)to match user ID formatauth_user.idinstead of the legacydjstabledj_statstable to replace DJ statistics, now keyed byuser_idcognito_user_namefrom the olddjstable tousernameinauth_userdjstableAffected Tables
schedule(assigned_dj_id, assigned_dj_id2)shift_covers(cover_dj_id)bins(dj_id)shows(primary_dj_id)show_djs(dj_id)Schema Updates
varcharfor all DJ ID fieldsuser.idwith appropriate cascade behaviorsService Layer
usertable instead ofdjstableMigration Safety
The migration preserves existing data by:
Breaking Changes
Test Information