update Judgement.ts
parent
ba4b92c953
commit
2b12bf506f
|
@ -1,6 +1,6 @@
|
||||||
import { prop } from '@typegoose/typegoose';
|
import { prop } from '@typegoose/typegoose';
|
||||||
|
|
||||||
enum Severity {
|
export enum Severity {
|
||||||
Low,
|
Low,
|
||||||
Medium,
|
Medium,
|
||||||
High,
|
High,
|
||||||
|
@ -10,21 +10,21 @@ export default class Judgement {
|
||||||
@prop({ required: true })
|
@prop({ required: true })
|
||||||
public jID: string;
|
public jID: string;
|
||||||
|
|
||||||
@prop()
|
@prop({required: true})
|
||||||
public userID: string;
|
public userID: string;
|
||||||
|
|
||||||
@prop({ required: true })
|
@prop({ required: true })
|
||||||
public enteredBy: string;
|
public enteredBy: string;
|
||||||
|
|
||||||
@prop()
|
@prop({required: true})
|
||||||
public severity: Severity;
|
public severity: Severity;
|
||||||
|
|
||||||
@prop()
|
@prop({required: true})
|
||||||
public date: Date;
|
public date: Date;
|
||||||
|
|
||||||
@prop()
|
@prop()
|
||||||
public expires?: Date;
|
public expires: Date;
|
||||||
|
|
||||||
@prop()
|
@prop()
|
||||||
public description?: string;
|
public description: string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue