homepage.js/migrations/20230222134124-create-users.js

15 lines
458 B
JavaScript

/** @type {import('sequelize-cli').Migration} */
module.exports = {
/** @param {import('sequelize').QueryInterface} queryInterface */
async up (queryInterface, Sequelize) {
const struct = require('../models').User.structure;
await queryInterface.createTable('users', struct);
},
/** @param {import('sequelize').QueryInterface} queryInterface */
async down (queryInterface, Sequelize) {
await queryInterface.dropTable('users');
}
};