'use strict' module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('backend_x_group', { backendId: { primaryKey: true, allowNull: false, type: Sequelize.INTEGER, onDelete: 'cascade', references: { model: 'backends', key: 'id' } }, groupId: { allowNull: false, type: Sequelize.INTEGER, onDelete: 'cascade', references: { model: 'groups', key: 'id' } }, externalId: { primaryKey: true, allowNull: false, type: Sequelize.INTEGER }, externalType: { allowNull: true, type: Sequelize.STRING } }) }, down: (queryInterface, Sequelize) => { return queryInterface.dropTable('backend_x_group') } }