Replies: 1 comment 2 replies
-
Can't you just validate that the user is not a moderator before assigning the VIP role? You are defining more of an 'integrity constraint' that needs to be checked when you write tuples, but you'll be paying the cost of evaluating it each time you check for it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Consider the following example: In a given twitch channel, a user cannot be both a moderator and a VIP. The intuitive solution for this would be something like
However, this is forbidden due to the circular dependency. I've tried defining new types and other workarounds to no avail.
is there any way to model these kinds of mutually exclusive relations?
Beta Was this translation helpful? Give feedback.
All reactions