Skip to content
Discussion options

You must be logged in to vote

Hi @doronoded

I did not find a way to represent what you want to do.

In general, you don't build a model assuming the tuples could be wrong. For example, if you add the wrong user to an organization/team, they'll get permissions, and you can't build a model that verifies that. Before writing tuples, you'd validate they are correct. That simplifies the model and improves performance a lot.

e.g. the model without the validations would be:

  type user
  type organization

  type customer
    relations
      define team: [team]
      define member: [user] or member from team 
      define manager: [user] or manager from team

  type team
  relations
    define member: [user] 
    define manag…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@aaguiarz
Comment options

Comment options

You must be logged in to vote
9 replies
@doronoded
Comment options

@doronoded
Comment options

@doronoded
Comment options

@aaguiarz
Comment options

Answer selected by aaguiarz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants