Replies: 1 comment
-
I feel like that primary keys in each table should be like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
Get an error "Could not determine join condition between parent/child tables on relationship Person.band_links"
I've narrowed the code down to the simplest possible definition (I've had to rename the tables and objects not to conflict with other parts of my project). I feel like this matches the Team/Hero example in the tutorial exactly, but I have spent a few hours re-reading the tutorial, searching on-line and trying every conceivable combination without any progress. I'm sure it's something simple, but I sure could use some help.
Operating System
Linux
Operating System Details
No response
SQLModel Version
SQLModel 0.0.8
Python Version
Python 3.11.2
Additional Context
I didn't include all the details to create the database and all, but essentially the database has the following tables
Band
band_id: int PK
...
Person
person_id: int PK
Band_Member
Member_ID: int PK, FK1 (links to Person.person_id)
Band_ID: FK2 (links to Band.band_id)
...
Beta Was this translation helpful? Give feedback.
All reactions