sequelize-typescript icon indicating copy to clipboard operation
sequelize-typescript copied to clipboard

Problem with relationing table in 2 different database

Open dhevanthareza opened this issue 4 years ago • 0 comments

Problem with relationing table in 2 different database

Versions

  • sequelize: "^5.21.5"
  • sequelize-typescript: "^1.1.0"
  • typescript: "^3.8.3"

Issue type

  • [ x] bug report
  • [ x] feature request im checked all because i dont know its bug or not

Actual behavior

I have 2 sequelize instance, each instance have their models, let say on instance A i have user table, and on instance B i have product table, i want to include user model, in product list but i have this error image lets say RekeningModel isUserModel

Expected behavior

Relation going well

Related code

image

that RekeningModel is model that loaded from another instance of sequelize

i hope you can help me thanks

dhevanthareza avatar Jul 29 '21 18:07 dhevanthareza