Why
We currently have confusing and inconsistent references around userSetting, caused by the presence/usage of userId inside userSetting.
This is already creating production issues and is likely to keep causing bugs and developer confusion.
What
- Investigate what is affected. If there are other tables that point to
userId in userSetting, leave this task and refactor those first
- Prepare migration to rename userId in userSetting to
externalUserId
- Run this migration during low usage period