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[]
|
|
|
|
@prop({ required: true })
|
|
|
|
public inquiries: Types.ObjectId[];
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public date: Date;
|
|
|
|
}
|