Skip to content
Discussion options

You must be logged in to vote

Hi @liamsalomonsson-co, I have an example model and tuples and tests that pass (.fga.yaml file attached).

model
  schema 1.1

# Liam's School Schedule Authorization Model 

type user
  relations
    # Students have guardians who can act on their behalf
    define guardians: [user]

type school
  relations
    # Schools have teachers (many-to-many relationship)
    define teachers: [user]
    # Students who attend this school
    define students: [user]

type schedule
  relations
    # The student who owns this schedule
    define owner: [user]
    
    # Link to schools where the schedule owner is a student
    # This enables TTU traversal: schedule -> school -> teachers
    define school…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@liamsalomonsson-co
Comment options

Answer selected by liamsalomonsson-co
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