chore(legacy): relocate v1 dataconnect source
This commit is contained in:
63
legacy/dataconnect-v1/schema/business.gql
Normal file
63
legacy/dataconnect-v1/schema/business.gql
Normal file
@@ -0,0 +1,63 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user