"use strict"; module.exports = { up: (queryInterface, Sequelize) => { const tableFields = { id: { type: Sequelize.BIGINT, autoIncrement: true, allowNull: false }, searchRequestId: { type: Sequelize.UUID, allowNull: false, primaryKey: true, references: { model: "searchRequests", key: "id" }, onUpdate: "CASCADE", onDelete: "SET NULL" }, realEstateId: { type: Sequelize.BIGINT, allowNull: false, primaryKey: true, references: { model: "realEstates", key: "id" }, onUpdate: "CASCADE", onDelete: "SET NULL" }, notified: { type: Sequelize.BOOLEAN, allowNull: false, defaultValue: false } }; return queryInterface.createTable("searchRequestMatches", tableFields); }, down: queryInterface => { return queryInterface.dropTable("searchRequestMatches", {}); } };