"use strict"; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable("Users", { id: { type: Sequelize.INTEGER, autoIncrement: true, primaryKey: true, allowNull: false, }, name: { type: Sequelize.STRING, allowNull: false, }, email: { type: Sequelize.STRING, allowNull: false, unique: true, }, passwordHash: { type: Sequelize.STRING, allowNull: false, }, createdAt: { type: Sequelize.DATE, allowNull: false, }, updatedAt: { type: Sequelize.DATE, allowNull: false, }, }); }, down: queryInterface => { return queryInterface.dropTable("users"); }, };