Replies: 3 comments
-
|
you just need to make a simple relation like here: https://sqlmodel.tiangolo.com/tutorial/relationship-attributes/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Not really. Since there's no option |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
"workaround" for future readers: #132 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
It would be great to have an "how to" about one-to-one relationships directly in the official docs. An adaption of the sqlalchemy docs example about one-to-on relationships (https://docs.sqlalchemy.org/en/14/orm/basic_relationships.html#one-to-one) should do the job.
Operating System
Linux
Operating System Details
No response
SQLModel Version
n.a.
Python Version
n.a.
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions