Skip to content

Instantly share code, notes, and snippets.

@jpmckinney
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmckinney/8eaec39c750622155437 to your computer and use it in GitHub Desktop.
Save jpmckinney/8eaec39c750622155437 to your computer and use it in GitHub Desktop.
// Acme Ltd organization
{
"id": "acme-ltd",
"name": "Acme Ltd"
}
// Board of Directors sub-organization
{
"id": "acme-board",
"name": "Board of Directors",
"parent_id": "acme-ltd"
}
// Chairman post
{
"id": "acme-chairman",
"label": "Chairman of the Board",
"role": "Chairman",
"organization_id": "acme-board"
}
// Board membership
{
"label": "Director of Acme Ltd",
"role": "Director",
"organization_id": "acme-board",
"person_id": "john-smith"
}
// Chairman membership
{
"label": "Chairman of the Board",
"role": "Chairman",
"organization_id": "acme-board",
"person_id": "bob-loblaw",
"post_id": "acme-chairman"
}
// Management Team sub-organization
{
"id": "acme-management",
"name": "Management Team",
"parent_id": "acme-ltd"
}
// CEO post
{
"id": "acme-ceo",
"label": "Chief Executive Officer",
"role": "Chief Executive Officer",
"organization_id": "acme-management"
}
// CEO membership
{
"label": "Chief Executive Officer",
"role": "Chief Executive Officer",
"organization_id": "acme-management",
"person_id": "jane-doe",
"post_id": "acme-ceo"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment