title: Firebase Database structure UID
body: <p>I am asking myself if this kind of database structure is good, because of identifying the user with an PK <strong>AND</strong> putting the UID again under that PK. I dont know if that makes really sence or even more, could be dangerous?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>{
    "Users" : {
      "7idb6ThWR8aqmnEHFao5GRCV1kI3" : {
        "dPicture" : "https://firebasestorage.googleapis.com/v0/b/parkir-ngasal.appspot.com/o/Profile_images%2Fcropped1465266876.jpg?alt=media&amp;token=44f83fdf-935a-4b3c-8138-561dcba2fca7",
        "status" : "hi my name is erik",
        "uid" : "7idb6ThWR8aqmnEHFao5GRCV1kI3",
        "username" : "erik"
      }
    },
    "posts" : {
      "-KfsrGsY8TWb2wiMFtAq" : {
        "dPicture" : "https://firebasestorage.googleapis.com/v0/b/parkir-ngasal.appspot.com/o/Profile_images%2Fcropped1465266876.jpg?alt=media&amp;token=44f83fdf-935a-4b3c-8138-561dcba2fca7",
        "image" : "https://firebasestorage.googleapis.com/v0/b/parkir-ngasal.appspot.com/o/Post_Images%2Fcropped1354055061.jpg?alt=media&amp;token=77fbc9ed-4356-43c1-b7bb-9563300a8b7b",
        "small_title" : "tes",
        "summary" : "tes",
        "title" : "tes",
        "uid" : "7idb6ThWR8aqmnEHFao5GRCV1kI3",
        "username" : "erik"
      }
    }
  }</code></pre>
  </div>
  </div>
  </p>