master
Matthew 2022-02-28 12:57:43 -05:00
parent db2e185817
commit 341fd026d4
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
24 changed files with 32 additions and 3 deletions

View File

@ -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),
}
}

View File

@ -7,3 +7,4 @@ export default class Customer {
@prop({ required: true })
public userID: string;
}

View File

@ -1,4 +1,4 @@
import { prop } from '@typegoose/typegoose';
import { prop, getModelForClass } from '@typegoose/typegoose';
export default class CustomerPortal {
@prop({ required: true })

View File

@ -19,3 +19,4 @@ export default class ExecutiveOrder {
@prop({ required: true, unique: true })
public msg: string;
}

View File

@ -1,5 +1,4 @@
import { prop } from '@typegoose/typegoose';
export default class File {
@prop({ required: true })
public name: string;