text: 'use strict';
  
  module.exports = {
    up: (queryInterface, Sequelize) => {
      /*
        Add altering commands here.
        Return a promise to correctly handle asynchronicity.
  
        Example:
        return queryInterface.createTable('users', { id: Sequelize.INTEGER });
      */
      return [
        queryInterface.addColumn('lotteries', 'winning', {
          type: Sequelize.STRING,
          allowNull: true
        }),
        queryInterface.addColumn('lotteries', 'check', {
          type: Sequelize.BOOLEAN,
          defaultValue: false
        })
      ];
    },
  
    down: (queryInterface, Sequelize) => {
      /*
        Add reverting commands here.
        Return a promise to correctly handle asynchronicity.
  
        Example:
        return queryInterface.dropTable('users');
      */
      return [
        queryInterface.removeColumn('lotteries', 'winning'),
        queryInterface.removeColumn('lotteries', 'check')
      ];
    }
  };
  