Created
          June 7, 2015 16:15 
        
      - 
      
- 
        Save kaumac/de6f5126c04d5c210dd2 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" | |
| } | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment