enum BusinessArea {
  BAY_AREA
  SOUTHERN_CALIFORNIA
  NORTHERN_CALIFORNIA
  CENTRAL_VALLEY
  OTHER
}

enum BusinessSector {
  BON_APPETIT
  EUREST
  ARAMARK
  EPICUREAN_GROUP
  CHARTWELLS
  OTHER
}

enum BusinessRateGroup {
  STANDARD
  PREMIUM
  ENTERPRISE
  CUSTOM
}

enum BusinessStatus {
  ACTIVE
  INACTIVE
  PENDING
}

type Business @table(name: "businesses") {
  id: UUID! @default(expr: "uuidV4()")
  businessName: String!
  contactName: String
  userId: String!
  
  companyLogoUrl: String
  phone: String
  email: String
  hubBuilding: String

  address: String
  placeId: String
  latitude: Float
  longitude: Float
  city: String
  state: String
  street: String
  country: String
  zipCode: String


  area: BusinessArea
  sector: BusinessSector
  rateGroup: BusinessRateGroup!
  status: BusinessStatus!
  notes: String

  # --- TIMESTAMPS ---
  createdAt: Timestamp @default(expr: "request.time")
  updatedAt: Timestamp @default(expr: "request.time")
  createdBy: String
}
