Referências outro esquema em sequelizar
queryInterface.createTable(
"MyTable",
{
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true,
},
SomeTableId: {
type: Sequelize.INTEGER,
references: {
model: {
tableName: "SomeTable",
schema: "static",
},
key: "id",
},
allowNull: false,
},
},
t
);
Volmir