Is there any way to define a belongsTo or any other relation between the tables of different databases #14789
Unanswered
Taqiarzoo
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried this syntax but it failed with error foreign key constrain is incorrectly formatted
const DB = {};
const conn = mysql.createConnection({ host: dbConfig.HOST, user: dbConfig.USER, password: dbConfig.PASSWORD, port: dbConfig.PORT, });
DB.Sequelize = Sequelize;
DB[userDB].design.belongsTo(DB[masterDB].stone_master);
can anyone please help me on this
is this possible with sequelize?
this there any workaround to achieve this?
Environment
Beta Was this translation helpful? Give feedback.
All reactions