Many to many relationship between model & enum #56049
Unanswered
tsukanov-alexey
asked this question in
General
Replies: 0 comments
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.
-
I have one model Document and enum Scope. Each document can have many scopes. I think Scope should be an enum because permissions of users strongly depends on scopes and will be hardcoded.
At this point I use only one scope per document. which is not fit in our domain.
So, I just maked pivot table document_scopes and stuck...
In my mind, it would be ideal to have something like this:
What is the best way to do this?
Beta Was this translation helpful? Give feedback.
All reactions