-
-
Save otherjohn/af51e0746f351b8baf7001d4b3ec2e21 to your computer and use it in GitHub Desktop.
Firebase companies and employees data structure
This file contains hidden or 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
{ | |
companies: { | |
cmp0001: { | |
name: "Happy company" | |
employees: { | |
u0001: "admin", | |
u0002: "manager" | |
} | |
}, | |
cmp0002: { | |
name: "Happy company" | |
employees: { | |
u0001: "assistant", | |
u0002: "admin" | |
} | |
} | |
}, | |
users: { | |
u0001: { | |
name: "Happy admin" | |
companies: { | |
cmp0001: "admin", | |
cmp0002: "assistant" | |
} | |
}, | |
u0002: { | |
name: "Happy admin" | |
companies: { | |
cmp0001: "manager", | |
cmp0002: "admin" | |
} | |
} | |
}, | |
products: { | |
prod0001: { | |
name: "product name", | |
company: "cmp0001" | |
} | |
prod0002: { | |
name: "some other product", | |
company: "cmp0002" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment