Setup information
"express": "~4.17.1",
"forest-express-sequelize": "^9.2.6",
"sequelize": "~5.15.1"
Need
I have two models (contract
and store
) in separate databases.
contract
has a storeId
fields, which references store.id
. This is not a foreign key since they are in different databases.
I want, on the contract summary, to be able to display a link to the store referenced by storeId
.
I’m aware relationships between models in different databases are not possible, and I do not need a full fledged relationship, just a simple link.
I tried using a smart field with a Link widget, but the URL depends on the user’s team and as far as I know I can’t access that from a smart field.
Can somebody help me figure this out?
Thanks in advance!
Antoine