Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️(contacts) move user profile to contact #572

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

qbey
Copy link
Collaborator

@qbey qbey commented Dec 2, 2024

Purpose

Move the user <-> contact relation for "profile" to the contact model.

Now the Contact model is the only one to point to User (and not backward).

Contact:

  • FK to User for the owner
  • FK to User for the profile

Proposal

  • invert User -> Contact FK

@qbey qbey force-pushed the qbey/contacts_enforce_profile_contact branch from c8b9e11 to 67343b2 Compare December 2, 2024 15:31
@qbey qbey marked this pull request as ready for review December 2, 2024 15:31
@qbey qbey requested review from sampaccoud and sdemagny December 2, 2024 15:31
@qbey qbey self-assigned this Dec 2, 2024
@qbey qbey added the backend label Dec 2, 2024
@qbey qbey force-pushed the qbey/contacts_add_fields branch 2 times, most recently from 17ead08 to 127bd7b Compare December 3, 2024 14:53
@qbey qbey force-pushed the qbey/contacts_enforce_profile_contact branch from 67343b2 to 7f53301 Compare December 3, 2024 14:55
Base automatically changed from qbey/contacts_add_fields to main December 3, 2024 15:02
@qbey qbey force-pushed the qbey/contacts_enforce_profile_contact branch from 7f53301 to 9ac2d17 Compare December 3, 2024 15:03
Move the user <-> contact relation for "profile" to
the contact model.

Now the Contact model is the only one to point to
User (and not backward).

Contact:

- FK to User for the owner
- FK to User for the profile
@qbey qbey force-pushed the qbey/contacts_enforce_profile_contact branch from 9ac2d17 to c7bbdd6 Compare December 3, 2024 15:11
@qbey qbey merged commit f759d31 into main Dec 3, 2024
20 checks passed
@qbey qbey deleted the qbey/contacts_enforce_profile_contact branch December 3, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants