creation vendor entiti
This commit is contained in:
38
dataconnect/schema/vendor.gql
Normal file
38
dataconnect/schema/vendor.gql
Normal file
@@ -0,0 +1,38 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user