cr-database/mongodb/ScoreHistorical.ts

26 lines
547 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose'
2022-02-28 16:28:56 -05:00
import { Types } from 'mongoose';
2022-02-28 11:51:44 -05:00
export default class ScoreHistorical {
@prop({ required: true })
public userID: string;
@prop({ required: true })
public report: {
total: number;
activity: number;
roles: number;
moderation: number;
cloudServices: number;
staff: number;
other: number;
};
// error with Types.ObjectId[]
2022-03-01 13:34:28 -05:00
@prop({ default: [] })
2022-02-28 11:51:44 -05:00
public inquiries: Types.ObjectId[];
@prop({ required: true })
public date: Date;
}