cr-database/mongodb/ScoreHistorical.ts

25 lines
515 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose'
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;
}