10/26/2021, 1:27 PM
Hey @User - some of it is up to the queries you expect to make, but based on what you said I think you can simplify your schema a bit: The same assertions are valid with this schema, but you don't have to write as many relationships in (we infer the organization of the product by going through the organization of the department) > Products belong to exactly 1 organization I'd also point out that in your schema and the one I posted, nothing is enforcing the "exactly 1" org requirement. Is that something you can enforce from your application, or is there a reason you'd want SpiceDB to enforce that for you?