cr-database/models/ScoreHistorical.ts

25 lines
515 B
TypeScript

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;
}