onixjs / core

Enterprise Grade #NodeJS Platform implementing Industry Standards & Patterns in order to provide Connectivity, Stability, High-Availability and High-Performance
https://onixjs.io
Other
52 stars 7 forks source link

Migrate model registration from datasource to model decorator #55

Closed jonathan-casarrubias closed 6 years ago

jonathan-casarrubias commented 6 years ago

Since registering a model might have specifics, like registering relationships, doing that within the datasource would be an antipattern, therefore it requires to migrate the build of model to the decorator, so model specific implementations are within the same model file.