twenty
twenty copied to clipboard
Dual-write for users and userWorkspaces.
Summary:
- Replicated all the fields from users to userWorkspaces entity.
- Introduced some helper functions to map the fields from userEntity that we want to write to userWorkspaceEntity.
- Mapping all fields in every write so that if a user updates password, but nothing else, the entire user entity is mapped to user workspace table along with the updated password.