javascript-boilerplate icon indicating copy to clipboard operation
javascript-boilerplate copied to clipboard

Consider introducing repositories with models

Open djhi opened this issue 7 years ago • 2 comments

As discussed with @alexisjanvier, we currently have storage related code in our models. We should consider introducing repositories.

djhi avatar Sep 05 '16 14:09 djhi

:+1: The crappy mix between 1859's queries and TP's models is my fault. This separation would help us to separate the DB layer to model layer, as recommended in Domain-Driven Design.

Kmaschta avatar Sep 05 '16 15:09 Kmaschta

and help allowing to use another DB too

djhi avatar Sep 05 '16 15:09 djhi