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
{{ message }}
Repository navigation
Support for introspecting tables without an ID field #175
I think we might need to introduce a new directive for this that can carry this information that user can add manually or we can derive via naming or we can prompt to select the join tables in the cli(that we can't infer)
Join tables actually doesn't follow any particular conventions. For example, WordPress uses multiple column indexes for them while discourse just stores integers without any reference.
To set the stage a bit, for introspection we're trying to reconstruct a graph with arrows
In the best case the schema will tell us where to draw these arrows. This signal would probably be via references, but we can also use other heuristics like what you mentioned:
Could the references ... be just assumed from the naming here?
Activity
6 remaining items
pantharshit00 commentedon Sep 19, 2019
I think we might need to introduce a new directive for this that can carry this information that user can add manually or we can derive via naming or we can prompt to select the join tables in the cli(that we can't infer)
Join tables actually doesn't follow any particular conventions. For example, WordPress uses multiple column indexes for them while discourse just stores integers without any reference.
matthewmueller commentedon Sep 20, 2019
To set the stage a bit, for introspection we're trying to reconstruct a graph with arrows
In the best case the schema will tell us where to draw these arrows. This signal would probably be via
references, but we can also use other heuristics like what you mentioned:janpio commentedon Sep 27, 2019
This should be turned into a issue in prisma/specs which will suggest a change to an existing spec ("Introspection").
divyenduz commentedon Jan 9, 2020
Closing this as I think this is already tracked in the new introspection.
Merge pull request #175 from prisma/delete-obsolete-plans