module.exports = {
  up(queryInterface, Sequelize) {
    return queryInterface.createTable('UserSettings', {
      id: {
        type: Sequelize.BIGINT,
        primaryKey: true,
        autoIncrement: true
      },
      UserId: {
        type: Sequelize.BIGINT,
        required: true
      },
      updatedAt: Sequelize.DATE,
      createdAt: Sequelize.DATE,
      theme: {
        type: Sequelize.STRING,
        required: true,
        default: 'light',
        unique: false,
      },
      emailOptIn: {
        type: Sequelize.BOOLEAN,
        required: true,
        default: 'true',
        unique: false,
      },
      betaOptIn: {
        type: Sequelize.BOOLEAN,
        required: true,
        default: 'false',
        unique: false,
      }
    })
  },
  down(queryInterface, Sequelize) {
    return queryInterface.dropTable('UserSettings', {})
  }
}
