Last active
October 8, 2020 16:59
-
-
Save maxwell-oroark/ca4727082516872ac20954249889110b to your computer and use it in GitHub Desktop.
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
// 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" ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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