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