forked from engineering/crv2
add Vendor.ts model, intended to replace Merchant model in old version
parent
442bdc25fb
commit
95f5a864d3
|
@ -0,0 +1,15 @@
|
||||||
|
import { prop } from '@typegoose/typegoose';
|
||||||
|
|
||||||
|
// This class represents a Vendor, which ia an entity that is permitted to access CommunityReport information, and may be permitted to manipulate data, through the HTtP API.
|
||||||
|
export default class Vendor {
|
||||||
|
@prop({ required: true })
|
||||||
|
public name: string | undefined;
|
||||||
|
|
||||||
|
@prop({ required: true, unique: true })
|
||||||
|
// the uuidv4 string identifier of the vendor; this functions as the identifier and api key for the vendor
|
||||||
|
public key: string | undefined;
|
||||||
|
|
||||||
|
@prop({ default: false })
|
||||||
|
// determines if this vendor can perform a Hard Inquiry and receive additional privileged information
|
||||||
|
public privileged: boolean | undefined;
|
||||||
|
}
|
Loading…
Reference in New Issue