EMS data repository mongodb
EMS Data repository mongodb implementation
Connection argument
Use mongoose to connect MongoDB Mongoose connection
Directory structure
src/
model/
plugin/ - Mongoose Plugin implementation
application.ts - Defined common behaviour of resource under application
generic.ts - Defined generic behaviour such as created_at, updated_at, soft_delete ...etc.
user.ts - User repository here. Define how external module access User Collection
application.ts - Application Mongoose Model
dimension.ts - Dimension Mongoose Model
event.ts - Event Mongoose Model
metric.ts - Metric Mongoose Model
screen.ts - Screen Mongoose Model
user.ts - User Mongoose Model