module.exports = {
  up(queryInterface, Sequelize) {
    return queryInterface.createTable('StaffApplications', {
      id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
      },
      username: {
        type: Sequelize.STRING,
        required: true
      },
      updatedAt: Sequelize.DATE,
      createdAt: Sequelize.DATE,
      dob: {
        type: Sequelize.DATE,
        required: true,
        unique: false,
      },
      email: {
        type: Sequelize.STRING,
        required: true,
        unique: false,
      },
      whyWork: {
        type: Sequelize.STRING,
        required: true,
        unique: false,
      },
      otherForm: {
        type: Sequelize.STRING,
        required: true,
        unique: false,
      },
      experience: {
        type: Sequelize.STRING,
        required: true,
        unique: false,
      },
      selectedOption: {
        type: Sequelize.STRING,
        required: true,
        unique: false,
      },
    })
  },
  down(queryInterface, Sequelize) {
    return queryInterface.dropTable('StaffApplications', {})
    }
}
