cr-database/models/Merchant.ts

20 lines
425 B
TypeScript
Raw Normal View History

2021-12-25 13:58:49 -05:00
import { prop } from '@typegoose/typegoose';
import { InqType } from './Inquiry';
2021-12-25 13:37:42 -05:00
2021-12-25 13:58:49 -05:00
export default class Merchant {
@prop({ required: true })
public name: string;
@prop({ required: true })
public key: string;
2021-12-25 13:37:42 -05:00
2021-12-25 13:58:49 -05:00
@prop({ required: true })
public privileged: boolean;
2021-12-25 13:37:42 -05:00
2021-12-25 13:58:49 -05:00
@prop({ required: true })
public type: InqType;
@prop({ required: true })
public pulls: [{ type: InqType, reason: string, date: Date }];
}