Replies: 2 comments
-
https://fastapi.tiangolo.com/tutorial/sql-databases/#create-multiple-models |
Beta Was this translation helpful? Give feedback.
0 replies
-
hi @zhiguoxu, imo u lookin for pydantic PrivateAttr which is not released yet:
issues:
pr (still in progress) but, if u want to add this field at all cost u can use:
|
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
How can I create a model with a filed not in table.
I have tried exclude=True, but it would't work.
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.24
Python Version
3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions