cr-database/models/Merchant.ts

20 lines
425 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose';
import { InqType } from './Inquiry';
export default class Merchant {
@prop({ required: true })
public name: string;
@prop({ required: true })
public key: string;
@prop({ required: true })
public privileged: boolean;
@prop({ required: true })
public type: InqType;
@prop({ required: true })
public pulls: [{ type: InqType, reason: string, date: Date }];
}