summaryrefslogblamecommitdiffstats
path: root/server/migrations/20180715193710-create-backend.js
blob: e89362ee6f6b1e5c3c7ac5e5f2872a1f4371b1b1 (plain) (tree)
1
            

















                                                   
      

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