Closed KaloyanYosifov closed 2 months ago
Why a service for the actions towards a model?
I initially though we could go with an Actions/Query seperation (Separate actions from reading), but since we might make everything on a macro, it will not provide a big benefit to separate them here, as Rust's encapsulation of a module is good enough. The service will handle both the do and the read operations, which allos us to go to one module to understand what we can do to a model
Do we need DTO's?
Probably. My idea for this is to not expose the "model's" functionality and instead just have a PORS (Plain Old Rust Structure, inspired by POJO) that just holds the data and it is agnostic to a database.
The design might change, this is just my initial brainstorming on the topic
As a user I would like to have a reminders view, so that I can set reminders to not forget thins :D
Diesel-rs looks like a good ORM and it provides support for migrations