You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say I have two tables countries and users. In countries there are columns like id, name, code. code is a unique column and an alpha-2 of the country (UK, US, etc). users is linked to countries via code.
Context
Lets say I have two tables
countries
andusers
. Incountries
there are columns likeid
,name
,code
.code
is a unique column and an alpha-2 of the country (UK
,US
, etc).users
is linked tocountries
viacode
.What is generated
In
users
modelIn associations
With this associations, the Sequelize generate wrong query resulting in error of trying to compare character varying to bigint
What is expected to generate
Am I missing configuration or I am doing it wrong?
The text was updated successfully, but these errors were encountered: