new business entity
This commit is contained in:
34
dataconnect/schema/business.gql
Normal file
34
dataconnect/schema/business.gql
Normal file
@@ -0,0 +1,34 @@
|
||||
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: "business") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
businessName: String!
|
||||
contactName: String!
|
||||
email: String
|
||||
sector: BusinessSector
|
||||
rateGroup: BusinessRateGroup!
|
||||
status: BusinessStatus
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
}
|
||||
Reference in New Issue
Block a user