bullpen/backend/seeders/04-positions.js

21 lines
1.3 KiB
JavaScript

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up (queryInterface, Sequelize) {
return queryInterface.bulkInsert('Positions',[
{ name: 'Pitcher', abbreviation: 'P', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'Catcher', abbreviation: 'C', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'First Baseman', abbreviation: '1B', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'Second Baseman', abbreviation: '2B', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'Third Baseman', abbreviation: '3B', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'Short Stop', abbreviation: 'SS', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'Left Fielder', abbreviation: 'LF', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'Center Fielder', abbreviation: 'CF', description: '', createdAt: new Date(), updatedAt: new Date() },
{ name: 'Right Fielder', abbreviation: 'RF', description: '', createdAt: new Date(), updatedAt: new Date() },
]);
},
async down (queryInterface, Sequelize) {
return queryInterface.dropTable('Positions');
}
};