Conversation
Codecov Report
@@ Coverage Diff @@
## master #4 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 90 109 +19
=========================================
+ Hits 90 109 +19
Continue to review full report at Codecov.
|
|
Sorry to bring it up on this old case, but... what about |
|
Humm, I'm actually not sure what would be the best way to handle server/DB defaults, I think I haven't used them much myself. Also, you might want to check SQLModel: https://sqlmodel.tiangolo.com/
|
🐛 Do not include defaults from SQLAlchemy models in Pydantic models.
SQLAlchemy defaults are supposed to be generated at insertion/update time, not generated by the Pydantic model before creating a new object/record.
It's also currently broken, as the default included is a SQLAlchemy object, not an actual default.