Replies: 1 comment
-
I think you can solve it by reading the Define Relationships Attributes . |
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
In my code, I have a generic 'Error' table that can be used by multiple systems to store details about errors. In my reproducible example, I used 'File' and 'Action' as example systems that may throw errors (and shall refer to them as 'system' from now on).
Each error can only correspond to a single file or action, however each system could have multiple errors. To maintain the generic nature of the error table I've created 1-many link tables FileError and ActionError.
error.file
), but I do need to be able to navigate downwards (file.errors
).I'm hoping I was clear enough, but let me know if I missed anything.
Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.11.4
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions