fixes
parent
db2e185817
commit
341fd026d4
30
index.ts
30
index.ts
|
@ -1 +1,29 @@
|
|||
export * as MongoDBModels from './mongodb-models';
|
||||
import { getModelForClass as gm } from '@typegoose/typegoose';
|
||||
import * as MongoDB from './mongodb';
|
||||
|
||||
export default {
|
||||
MongoDBModels: {
|
||||
Customer: gm(MongoDB.Customer),
|
||||
CustomerPortal: gm(MongoDB.CustomerPortal),
|
||||
ExecutiveOrder: gm(MongoDB.ExecutiveOrder),
|
||||
File: gm(MongoDB.File),
|
||||
Inquiry: gm(MongoDB.Inquiry),
|
||||
Judgement: gm(MongoDB.Judgement),
|
||||
Member: gm(MongoDB.Member),
|
||||
Merchant: gm(MongoDB.Merchant),
|
||||
Moderation: gm(MongoDB.Moderation),
|
||||
Motion: gm(MongoDB.Motion),
|
||||
Note: gm(MongoDB.Note),
|
||||
PagerNumber: gm(MongoDB.PagerNumber),
|
||||
Proclamation: gm(MongoDB.Proclamation),
|
||||
Promo: gm(MongoDB.Promo),
|
||||
Rank: gm(MongoDB.Rank),
|
||||
Redirect: gm(MongoDB.Resolution),
|
||||
Resolution: gm(MongoDB.Resolution),
|
||||
SAA: gm(MongoDB.SAA),
|
||||
Score: gm(MongoDB.Score),
|
||||
ScoreHistorial: gm(MongoDB.ScoreHistorical),
|
||||
Staff: gm(MongoDB.Staff),
|
||||
Stat: gm(MongoDB.Stat),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,3 +7,4 @@ export default class Customer {
|
|||
@prop({ required: true })
|
||||
public userID: string;
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { prop } from '@typegoose/typegoose';
|
||||
import { prop, getModelForClass } from '@typegoose/typegoose';
|
||||
|
||||
export default class CustomerPortal {
|
||||
@prop({ required: true })
|
|
@ -19,3 +19,4 @@ export default class ExecutiveOrder {
|
|||
@prop({ required: true, unique: true })
|
||||
public msg: string;
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
import { prop } from '@typegoose/typegoose';
|
||||
|
||||
export default class File {
|
||||
@prop({ required: true })
|
||||
public name: string;
|
Loading…
Reference in New Issue