2024-10-25 16:57:33 -04:00
import { prop } from "@typegoose/typegoose" ;
2024-03-25 15:11:47 -04:00
// 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-03-25 15:11:47 -04:00
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-03-25 15:11:47 -04:00
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 ;
2024-03-25 15:11:47 -04:00
}