title: How to add more tables to firebase database?
body: <p>I'm trying to build a crud project that connect to Firebase database.
  I'm coming from a LAMP stack environment. I don't know much about this MEAN stack just yet. I normally would write a migration script for these kind of tasks.</p>
  
  <p>I'm trying to add 3 more tables.</p>
  
  <p><strong>firebase.json</strong></p>
  
  <pre><code>{
    "database": {
      "rules": "database.rules.json"
    },
    "hosting": {
      "public": "dist",
      "rewrites": [
        {
          "source": "**",
          "destination": "/index.html"
        }
      ]
    }
  }
  </code></pre>
  
  <p><strong>database.rules.json</strong></p>
  
  <pre><code>{
    "rules": {
      ".read": true,
      "contacts": {
        "$uid": {
          ".read": "$uid === auth.uid",
          ".write": "$uid === auth.uid"
        }
      },
      "users": {
        "$uid": {
          ".read": "$uid === auth.uid",
          ".write": "$uid === auth.uid"
        }
      },
      "logs": {
        "$uid": {
          ".read": "$uid === auth.uid",
          ".write": "$uid === auth.uid"
        }
      },
      "cards": {
        "$uid": {
          ".read": "$uid === auth.uid",
          ".write": "$uid === auth.uid"
        }
      }
    }
  }
  </code></pre>
  
  <hr>
  
  <p>Here is the result on my real time firebase </p>
  
  <p><a href="https://i.stack.imgur.com/UaONE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UaONE.png" alt="enter image description here"></a></p>
  
  <p>What did I forget to do or didn't do ? 
  Should I use the + sign directly in the firebase ? 
  But I feel that would be manually. </p>
  
  <hr>
  
  <p>How would one go about and achieve something like this ? </p>