title: Sequelize js orm seeder for multiple relational table
body: <p>I am going to so sequelize seed for initial data load for postges.I can able to do it for multiple table by creating seedfile.js.But I am unble to handle the relation in between table automatically.</p>
  
  <pre><code> // user_seeds.js
      up: function (queryInterface, Sequelize) {
        return queryInterface.bulkInsert(table, [{
          uid: 1, //primary key autogenerated 
          name: 'John doe',
          email: 'john@doe.com',
          created_at,
          updated_at
      }], {});
  
      // roles_seeds.js
      up: function (queryInterface, Sequelize) {
        return queryInterface.bulkInsert(table, [{
          uid: 1,  //this should be comes from user table to this filed automatically after the creation of first record in user table
          name: 'admin',
          email: 'john@doe.com',
          created_at,
          updated_at
        }, {
          id: 2,
          name: 'user',
          created_at,
          updated_at
      }]);
  </code></pre>
  
  <p>How to pass the primary key to another table as foreign key automatically without hardcodeing.</p>