src/seeders/20190816065412-test-articletags.js
module.exports = {
up: queryInterface => queryInterface.bulkInsert('ArticleTags', [
{
tagId: 1,
articleId: 1,
createdAt: new Date(),
updatedAt: new Date()
},
{
tagId: 2,
articleId: 2,
createdAt: new Date(),
updatedAt: new Date()
},
{
tagId: 1,
articleId: 3,
createdAt: new Date(),
updatedAt: new Date()
},
{
tagId: 1,
articleId: 4,
createdAt: new Date(),
updatedAt: new Date()
},
{
tagId: 2,
articleId: 4,
createdAt: new Date(),
updatedAt: new Date()
}
], {}),
down: queryInterface => queryInterface.bulkDelete('ArticleTags', null, {})
};