28 lines
577 B
JavaScript
28 lines
577 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up (queryInterface, Sequelize) {
|
|
return queryInterface.bulkInsert('Roles', [{
|
|
id: 1,
|
|
name: 'user',
|
|
createdAt: new Date(),
|
|
updatedAt: new Date(),
|
|
}, {
|
|
id: 2,
|
|
name: 'administrator',
|
|
createdAt: new Date(),
|
|
updatedAt: new Date()
|
|
}]);
|
|
},
|
|
|
|
async down (queryInterface, Sequelize) {
|
|
/**
|
|
* Add commands to revert seed here.
|
|
*
|
|
* Example:
|
|
* await queryInterface.bulkDelete('People', null, {});
|
|
*/
|
|
}
|
|
};
|