cr-database/models/Judgement.ts

31 lines
420 B
TypeScript
Raw Normal View History

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