cr-database/mongodb/Merchant.ts

20 lines
404 B
TypeScript
Raw Permalink 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;
2022-03-01 13:36:50 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public privileged: boolean;
@prop({ required: true })
public type: InqType;
2022-02-28 12:00:48 -05:00
@prop({ default: [] })
2022-02-28 11:51:44 -05:00
public pulls: [{ type: InqType, reason: string, date: Date }];
}