KaloyanYosifov / hkb

The program to contain all needed stuff (Holy Kern Base)
0 stars 0 forks source link

Implement reminders form #1

Closed KaloyanYosifov closed 2 months ago

KaloyanYosifov commented 3 months ago

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

KaloyanYosifov commented 3 months ago

Reminders implementation

Dependencies

New modules

Questions

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

initial_reminders_implementation