cr-database/mongodb/Judgement.ts

31 lines
496 B
TypeScript
Raw Normal View History

2021-12-23 21:51:25 -05:00
import { prop } from '@typegoose/typegoose';
2022-02-28 11:51:44 -05:00
export enum Severity {
2021-12-23 21:51:25 -05:00
Low,
Medium,
High,
}
export default class Judgement {
@prop({ required: true })
2022-03-01 12:37:29 -05:00
public jid: string;
2021-12-23 21:51:25 -05:00
2022-02-28 11:51:44 -05:00
@prop({ required: true })
2021-12-23 21:51:25 -05:00
public userID: string;
@prop({ required: true })
public enteredBy: string;
2022-02-28 11:51:44 -05:00
@prop({ required: true })
2021-12-23 21:51:25 -05:00
public severity: Severity;
2022-02-28 11:51:44 -05:00
@prop({ required: true })
2021-12-23 21:51:25 -05:00
public date: Date;
@prop()
2022-02-28 11:51:44 -05:00
public expires: Date;
2021-12-23 21:51:25 -05:00
2022-02-28 11:51:44 -05:00
@prop({ required: true })
2021-12-23 21:51:25 -05:00
public description?: string;
}