2021-12-25 13:58:49 -05:00
|
|
|
import { prop } from '@typegoose/typegoose';
|
|
|
|
import Score from './Score';
|
2021-12-25 13:37:42 -05:00
|
|
|
|
|
|
|
export enum InqType {
|
2021-12-25 14:09:19 -05:00
|
|
|
Hard,
|
|
|
|
Soft,
|
2021-12-25 13:37:42 -05:00
|
|
|
}
|
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
export default class Inquiry {
|
|
|
|
@prop({ required: true })
|
|
|
|
public iid: string;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public userID: string;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public type: InqType;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public name: string;
|
2021-12-25 13:37:42 -05:00
|
|
|
|
2021-12-25 13:58:49 -05:00
|
|
|
@prop()
|
|
|
|
public reason: string;
|
|
|
|
|
|
|
|
@prop({ required: true })
|
|
|
|
public date: Date;
|
|
|
|
|
|
|
|
@prop()
|
|
|
|
public report: Score;
|
|
|
|
}
|