Skip to content

Instantly share code, notes, and snippets.

@maxwell-oroark
Last active October 8, 2020 16:59
Show Gist options
  • Save maxwell-oroark/ca4727082516872ac20954249889110b to your computer and use it in GitHub Desktop.
Save maxwell-oroark/ca4727082516872ac20954249889110b to your computer and use it in GitHub Desktop.
// each authenticated member gets a record mapping their UUID to a domain.
// this is just a row in our schemaless non-relational DB
{
"name": "Maxwell O'Roark",
"uuid": 1234566666987,
"domain": "Acme Inc."
}
// each domain gets a record of what they have access to:
// Do we need a domain ID? So that we don't have to worry about magic string names for domain?
// again just a row in our no-sql database
{
"domain": "Acme Inc.",
"accessible_facilties": ["bsr_id_1", "bsr_id_2" ],
"accessible_datasets": [ "tropomi", "ghgr", "forecast" ]
}
@maxwell-oroark
Copy link
Author

maxwell-oroark commented Oct 8, 2020

re: array entry for every facility... this is not very efficient... maybe we find some smarter way to group tranches of facilities together? or we store a range in the database like facilities with bsr_id 100-1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment