summaryrefslogblamecommitdiffstats
path: root/server/migrations/20180726171200-create-permission.js
blob: 822e47c104a233a86d41635307915327cb3704ce (plain) (tree)
























                                                      
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('permissions', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      },
      name: {
        type: Sequelize.STRING
      },
      descr: {
        type: Sequelize.STRING
      },
      groupdependent: {
        type: Sequelize.BOOLEAN
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('permissions')
  }
}