Open sami-m-g opened 6 months ago
@jsvgoncalves SQLModel
is built as a layer on top of SQLAlchemy
offering the convenient of having your models as both SQLAlchemy
and PyDantic
models. Most of our code would simply work out of the box by switching to it while cutting our code base by a third. With the movement to the separation of dto
, data
and API
, not using SQLModel
would really increase our codebase more. I highly suggest the movement which has minimal cost with great ROI. For starters it will remove all the to_dict
methods and keep one model for database and schema while offering off the shelf functionalities that otherwise we will have to implement like __eq__
. The movement would be done in a day of work.
@sami-m-g I'm removing this from backlog and current iteration, as per previous slack discussions from @cmutel: