UNPKG

@grouparoo/core

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