text: module.exports = {
    up: (queryInterface, Sequelize) =>
      queryInterface.createTable('users', {
        id: {
          type: Sequelize.STRING,
          unique: true,
          primaryKey: true,
        },
        firstName: {
          type: Sequelize.STRING,
          allowNull: false,
          field: 'first_name',
        },
        lastName: {
          type: Sequelize.STRING,
          allowNull: false,
          field: 'last_name',
        },
        email: {
          type: Sequelize.STRING,
          allowNull: false,
        },
        password: {
          type: Sequelize.STRING,
          allowNull: false,
        },
        roleId: {
          type: Sequelize.STRING,
          allowNull: true,
          field: 'role_id',
          references: {
            model: 'roles',
            key: 'id',
          },
        },
        createdAt: {
          allowNull: false,
          type: Sequelize.DATE,
        },
        updatedAt: {
          allowNull: false,
          type: Sequelize.DATE,
        },
      }),
    down: queryInterface => queryInterface.dropTable('users'),
  }
  