UNPKG

@grouparoo/core

Version:
36 lines (35 loc) 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.createTable("destinationGroups", { guid: { type: DataTypes.STRING(40), primaryKey: true, }, createdAt: { type: DataTypes.DATE, allowNull: false, }, updatedAt: { type: DataTypes.DATE, allowNull: false, }, destinationGuid: { type: DataTypes.STRING(40), allowNull: false, }, groupGuid: { type: DataTypes.STRING(40), allowNull: false, }, }); await queryInterface.addIndex("destinationGroups", ["destinationGuid", "groupGuid"], { unique: true, fields: ["destinationGuid", "groupGuid"], }); }, down: async (queryInterface) => { await queryInterface.dropTable("destinationGroups"); }, };