Created
June 26, 2021 17:21
-
-
Save danahartweg/35d8ffbe63834d3c35e3a72d0f116f60 to your computer and use it in GitHub Desktop.
Fauna ABAC - Proposed schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type User { | |
name: String | |
email: String! | |
organizations: [Organization!] @relation | |
} | |
type Organization { | |
name: String! | |
description: String | |
items: [Item!] @relation | |
members: [User!]! @relation | |
} | |
type Item { | |
name: String! | |
isPublic: Boolean | |
createdBy: User! | |
origin: Organization! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment