useful-bronze
useful-bronze2y ago

inferencer: determine the relations for more than 1 foreign keys referring to the same target table

Hello, i have a table with 3 foreign keys inside a table referring to the same one table. How should i name the foreign key column to give insight to inferencer that the three columns refer to the same table For example: Tenant Table: - tenant_id refers to id on user table - landlord_id refers to id on user table - agent_id refers to id on user table how should i name the output on the API to make sure these columns refers to the same user table?
6 Replies
kapa.ai
kapa.ai2y ago
Hi @regnregn. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai2y ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the refine documentation for more information: https://refine.dev/docs ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Overview | refine
What is refine?
kapa.ai
kapa.ai2y ago
<@336843331416096768> kapa.ai is still learning and improving, please let us how it did by reacting below
genetic-orange
genetic-orange2y ago
We do not recommend using Inferencer in production yet. We aim to create fast CRUD screens with the codes generated by Inferencer. You can edit the generated code by saying 'Show Code'.
foreign-sapphire
foreign-sapphire2y ago
Hey, instead of using inferencer, do you recommend using the CLI to generate the template resources? Beside probably being unstable, why is it not recommended to use Inferencer in production?
wise-white
wise-white2y ago
Hello @bombillazo, Inferencer meant to save some time during development stage, that's why is't not recommended to use on production, because of the nature of this task, we may not provide %100 stable API that covers all cases.