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

15 lines
458 B
JavaScript
Raw Normal View History

2023-02-22 14:55:34 +01:00
/** @type {import('sequelize-cli').Migration} */
module.exports = {
/** @param {import('sequelize').QueryInterface} queryInterface */
2023-02-22 14:55:34 +01:00
async up (queryInterface, Sequelize) {
const struct = require('../models').User.structure;
await queryInterface.createTable('users', struct);
2023-02-22 14:55:34 +01:00
},
/** @param {import('sequelize').QueryInterface} queryInterface */
2023-02-22 14:55:34 +01:00
async down (queryInterface, Sequelize) {
await queryInterface.dropTable('users');
2023-02-22 14:55:34 +01:00
}
};