Y
Hacker News
new
|
ask
|
show
|
jobs
by
ac130kz
322 days ago
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.