Learn more about SpiceDB here: https://hubs.li/Q04btx7p0
In this video we use Authzed's SpiceDB Playground to model the core GitHub (https://github.com) permissions system, including repositories, teams, organizations, roles (e.g. maintainer, triager, viewer) and some organization-level roles.
Here is a link to the final product:
https://play.authzed.com/s/3V_HgieYBK3p/schema
You can use this as a great starting point for modeling your application's permissions if they roughly follow the same model.
You can also join a community of hundreds of developers securing their systems on Discord: http://discord.gg/spicedb
00:00 - Intro
01:40 - Repository Schema
11:30 - Relationships
18:10 - Permission Granularity
22:08 - Organizations
35:30 - Teams
46:57 - Nested Teams
53:27 - Outro