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
























                                                   
'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');
  }
};