Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An easier/moderate approach: make a proper base DTO model, which can be extended by validators, such as Pydantic, and the db model is the Domain is just whatever an ORM offers/dataclasses.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: