worldcoin / developer-portal

The Worldcoin Developer Portal provides tools to interact with the Worldcoin SDK. Easiest way to get started with World ID.
https://developer.worldcoin.org
MIT License
60 stars 33 forks source link

feat: update user constraint #547

Closed michaelfurutin closed 5 months ago

michaelfurutin commented 5 months ago

When we delete a team, the relationship is also removed from the membership table, along with any associated applications and actions. This is achieved through foreign constraints. However, currently, the user is also deleted along with the team. To prevent this from happening, I've adjusted the team_id field, making it nullable, and also updated the constraint. We're not using the team_id field in the user table; it's kept for backward compatibility with the old frontend. We'll need to remove it entirely.