crra/database/Vendor.ts

16 lines
676 B
TypeScript
Raw Permalink Normal View History

2024-10-25 16:57:33 -04:00
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 {
2024-10-25 16:57:33 -04:00
@prop({ required: true })
public name: string | undefined;
2024-10-25 16:57:33 -04:00
@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;
2024-10-25 16:57:33 -04:00
@prop({ default: false })
// determines if this vendor can perform a Hard Inquiry and receive additional privileged information
public privileged: boolean | undefined;
}