title: Saving JSON object in sequelize
body: <p>I am trying to save a json object that is sent by a client, in the database<br>
  The application can handle requests just fine, but i am stuck when it comes to saving the request data in the database, i am using sequelize.
  Here are my models:   </p>
  
  <p>Schedule Model</p>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = (sequelize, DataTypes) =&gt; {
    const Schedules = sequelize.define('Schedules', {
      name: DataTypes.STRING,
      delay: DataTypes.INTEGER,
      criteria: DataTypes.STRING
    }, {})
    Schedules.associate = (models) =&gt; {
      Schedules.hasMany(models.Commands)
    }
    return Schedules
  }
  </code></pre>
  
  <p>and the commands model</p>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = (sequelize, DataTypes) =&gt; {
      const Commands = sequelize.define('Commands', {
          command: DataTypes.STRING,
          index: DataTypes.INTEGER
      },{})
      Commands.associate = (models) =&gt; {
          Commands.belongsTo(models.Schedules)
      }
      return Commands
  }
  </code></pre>
  
  <p>Finally here is the request json object that is recieved</p>
  
  <pre><code>{
      "name": "Do Something",
      "commands": [
          "step one",
          "step two",
          "step three"
      ]
  }
  </code></pre>
  
  <p>Also i need to make sure when a schedule is queried, it shall return the commands[] array in that order.
  My Question is, How can i do so in sequelize, Any help is appreciated. Thanks</p>