title: How columns/objects are created on indexedDB
body: <p>I am quite new to indexedDB, and started to create a Database to transfer WebSQL. </p>
  
  <p>What I would like to know is how fields are created in indexedDB.</p>
  
  <p>For example:</p>
  
  <pre><code>tx.executeSql("CREATE TABLE IF NOT EXISTS TEMPRESULTENTRIES ( "
      + " id INTEGER PRIMARY KEY AUTOINCREMENT, "
      + " instid INTEGER NOT NULL REFERENCES institutions(id) ON DELETE CASCADE, "
      + " qid INTEGER NOT NULL REFERENCES questionnaires(id) ON DELETE CASCADE, "
      + " result TEXT NOT NULL )");
  </code></pre>
  
  <p>How would I create the same table in indexedDB. I am kind of confused about this part of indexedDB. 
  Currently I am creating only keypath with id:</p>
  
  <pre><code>db.createObjectStore("TEMPRESULTENTRIES", {keypath: "id", autoIncrement: true});
  </code></pre>
  
  <p>And I am wondering how to add, or when will the other fields be created?</p>
  
  <p>From a small testcase, I can see that I can just create Columns/Objects in Store when I anm populating table/Store, as:</p>
  
  <pre><code>store.put({ObjectName: Value});
  </code></pre>
  
  <p>Is it the correct way to create Objects in the stores?</p>
  
  <p>Best, Amry</p>