InterRep data models
Mongoose schemas and models used by InterRep.
🛠 Install
npm or yarn
Install the @interrep/data-models
package with npm:
npm i @interrep/data-models --save
or yarn:
yarn add @interrep/data-models
📜 Usage
You can find the Mongoose model of each entity on src/<entityName>/<EntityName.model.ts>
. Each model has predefined functions and some custom static functions defined on src/<entityName>/<EntityName>.statics.ts
. The @interrep/data-models
package exports types and models of each entity.