Referensi Skema lain dalam sektor sektor
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