sequelize in react code example
Example 1: sequilze REACTJS
'use strict';module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.bulkInsert('Ideas', [{ subject : 'First song', category : 'Music', createdAt : new Date(), updatedAt : new Date() }], {}); },down: (queryInterface, Sequelize) => { queryInterface.bulkDelete('Ideas', [{ subject :'First song' }]) }};
Example 2: sequilze REACTJS
psql ideaSELECT * FROM "Ideas";SELECT * FROM "Contents";