export default {
  up(queryInterface, {INTEGER, UUID, DATE}) {
    return queryInterface.createTable('users', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: INTEGER
      },

      createdAt: {
        allowNull: false,
        type: DATE
      },

      updatedAt: {
        allowNull: false,
        type: DATE
      },

      uuid: {
        allowNull: false,
        type: UUID
      }
    })
  },

  down(queryInterface, Sequelize) {
    return queryInterface.dropTable('users')
  }
}

export default {
  up(queryInterface, {INTEGER, UUID, DATE, STRING}) {
    return queryInterface.createTable('users', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: INTEGER
      },

      createdAt: {
        allowNull: false,
        type: DATE
      },

      updatedAt: {
        allowNull: false,
        type: DATE
      },

      uuid: {
        allowNull: false,
        type: UUID
      },

      passwordHash: {
        allowNull: false,
        type: STRING
      }
    })
  },

  down(queryInterface, Sequelize) {
    return queryInterface.dropTable('users')
  }
}

add password field to users table