2021-12-23 21:51:25 -05:00
|
|
|
import { prop } from '@typegoose/typegoose';
|
|
|
|
|
2021-12-25 13:28:17 -05:00
|
|
|
export enum Severity {
|
2021-12-23 21:51:25 -05:00
|
|
|
Low,
|
|
|
|
Medium,
|
|
|
|
High,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default class Judgement {
|
|
|
|
@prop({ required: true })
|
|
|
|
public jID: string;
|
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
@prop({ required: true })
|
2021-12-23 21:51:25 -05:00
|
|
|
public userID: string;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public enteredBy: string;
|
2021-12-25 13:28:17 -05:00
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
@prop({ required: true })
|
2021-12-23 21:51:25 -05:00
|
|
|
public severity: Severity;
|
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
@prop({ required: true })
|
2021-12-23 21:51:25 -05:00
|
|
|
public date: Date;
|
|
|
|
|
|
|
|
@prop()
|
2021-12-25 13:28:17 -05:00
|
|
|
public expires: Date;
|
2021-12-23 21:51:25 -05:00
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
@prop({ required: true })
|
|
|
|
public description?: string;
|
2021-12-23 21:51:25 -05:00
|
|
|
}
|