enum VendorRegion {
  NATIONAL
  BAY_AREA
  SOUTHERN_CALIFORNIA
  NORTHERN_CALIFORNIA
  WEST
  EAST
  MIDWEST
  SOUTH
}

enum VendorPlatformType {
  FULL_PLATFORM
  BUILDING_PLATFORM
  PARTIAL_TECH
  TRADITIONAL
}

enum VendorApprovalStatus {
  PENDING
  APPROVED
  SUSPENDED
  TERMINATED
}

type Vendor @table(name: "vendors") {
  id: UUID! @default(expr: "uuidV4()")
  vendorNumber: String!
  legalName: String!
  region: VendorRegion!
  platformType: VendorPlatformType!
  primaryContactEmail: String! 
  approvalStatus: VendorApprovalStatus!  
  isActive: Boolean @default(value: true)
  createdDate: Timestamp @default(expr: "request.time")
  updatedDate: Timestamp @default(expr: "request.time")
  createdBy: String @default(expr: "auth.uid")
}
