You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lantern.party_member already contains a composite primary key of (user_id, party_id), so it would be great to reference that as a composite foreign key in lantern.profiles when user_id and party_id are not-NULL. That way when the party_member entry is deleted, the (if any) per-party profile is also deleted by cascade.
However, profiles.party_id can be NULL for non-party profiles, so I'm currently unsure what exactly that foreign key declaration would look like.
I've found this article as perhaps a starting point.
The text was updated successfully, but these errors were encountered:
lantern.party_member
already contains a composite primary key of(user_id, party_id)
, so it would be great to reference that as a composite foreign key inlantern.profiles
whenuser_id
andparty_id
are not-NULL. That way when theparty_member
entry is deleted, the (if any) per-party profile is also deleted by cascade.However,
profiles.party_id
can be NULL for non-party profiles, so I'm currently unsure what exactly that foreign key declaration would look like.I've found this article as perhaps a starting point.
The text was updated successfully, but these errors were encountered: