add Vendor.ts model, intended to replace Merchant model in old version

pull/1/head
Matthew 2024-03-25 15:11:47 -04:00
parent 442bdc25fb
commit 95f5a864d3
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 15 additions and 0 deletions

15
database/Vendor.ts Normal file
View File

@ -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;
}