cr-database/mongodb-models/Judgement.ts

31 lines
496 B
TypeScript

import { prop } from '@typegoose/typegoose';
export enum Severity {
Low,
Medium,
High,
}
export default class Judgement {
@prop({ required: true })
public jID: string;
@prop({ required: true })
public userID: string;
@prop({ required: true })
public enteredBy: string;
@prop({ required: true })
public severity: Severity;
@prop({ required: true })
public date: Date;
@prop()
public expires: Date;
@prop({ required: true })
public description?: string;
}