15 lines
489 B
JavaScript
15 lines
489 B
JavaScript
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up (queryInterface, /*Sequelize*/) {
|
|
return queryInterface.bulkInsert('Roles', [
|
|
{ name: 'player', createdAt: new Date(), updatedAt: new Date() },
|
|
{ name: 'coach', createdAt: new Date(), updatedAt: new Date() },
|
|
{ name: 'admin', createdAt: new Date(), updatedAt: new Date() }
|
|
]);
|
|
},
|
|
|
|
async down (queryInterface, /*Sequelize*/) {
|
|
return queryInterface.dropTable('Roles');
|
|
}
|
|
};
|