How to model viewer from owner domain #152
Answered
by
rhamzeh
agale031176
asked this question in
Q&A
-
Is it possible to model the scenario that a viewer has to be a user and a user from the domain of owner's domain? I am trying to model it something like this:
owner#domain is not correct but I am not sure how to represent it. |
Beta Was this translation helpful? Give feedback.
Answered by
rhamzeh
May 9, 2023
Replies: 1 comment 1 reply
-
You can do something like: model
schema 1.1
type user
relations
define domain: [domain]
define coworker: member from domain
type domain
relations
define member: [user]
type board
relations
define owner: [user]
define parent: [folder]
define viewer: [user] or owner or viewer from parent
define can_view: viewer and coworker from owner Make sure when a user is added to a domain that you write two tuples: - user: user:carl
relation: member
object: domain:contoso
- user: domain:contoso
relation: domain
object: user:carl |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
agale031176
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do something like:
Make sure when a user is added to a domain that you write two tuples: