cr-database/models/Judgement.ts

31 lines
471 B
TypeScript
Raw Normal View History

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:28:17 -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
@prop({required: true})
2021-12-23 21:51:25 -05:00
public severity: Severity;
2021-12-25 13:28:17 -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
@prop()
2021-12-25 13:28:17 -05:00
public description: string;
2021-12-23 21:51:25 -05:00
}