text: 'use strict';
  
  module.exports = {
    up: function(queryInterface, Sequelize) {
      /*
        Add altering commands here.
        Return a promise to correctly handle asynchronicity.
  
        Example:
        return queryInterface.createTable('users', { id: Sequelize.INTEGER });
      */
      return queryInterface.createTable('permissions', {
        id: {
          type: Sequelize.INTEGER,
          autoIncrement: true,
          primaryKey: true
        },
        uid: Sequelize.STRING(20),
        permission: Sequelize.STRING(100),
        granted: Sequelize.BOOLEAN
      });
    },
  
    down: function(queryInterface, Sequelize) {
      /*
        Add reverting commands here.
        Return a promise to correctly handle asynchronicity.
  
        Example:
        return queryInterface.dropTable('users');
      */
        return queryInterface.dropTable('permissions');
    }
  };
  