WIP: Moving logic to corresponding models (refactoring)
Context
We need to refactor the existing code base in order to move closer to the idea of having clean separation between models and controllers. The existing code base is moving to that direction but it is not there yet. The end goal is to have models which will interact with objection and provide the needed functionality and the controller will interact only with these models. By doing so we will eliminate any dependencies of the underlying (objection
/knex
) technologies inside of the controllers and only our models layer will have knowledge of that stack.