-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-amplify-schema.graphql
89 lines (81 loc) · 2.25 KB
/
aws-amplify-schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
type VendorItem @model {
ID: ID
Name: String
EstimatedPrice: Float
Splittable: Boolean
CaseQty: Float
Description: String
Location: String
Vendor: Vendor @connection(name: "VendorVendorItem")
VendorOrderItems: [VendorOrderItem] @connection(name: "VendorItemVendorOrderItems")
UPC: String
UnitType: UnitType @connection(name: "VendorUnitType")
SubItems: [VendorItem] @connection(name: "SubVendorItem")
ParentItem: VendorItem @connection(name: "SubVendorItem")
OrderItems: [OrderItem] @connection(name: "VendorItemOrderItems")
Image: String
LastUpdated: String
}
type Vendor @model {
ID: ID
Name: String
Phone: String
Address: String
Items: [VendorItem] @connection(name: "VendorVendorItem")
VendorOrders: [VendorOrder] @connection(name: "VendorVendorOrder")
}
type UnitType @model {
ID: ID
Name: String
Splittable: Boolean
VendorItems: [VendorItem] @connection(name: "VendorUnitType")
}
type Order @model {
ID: ID
Items: [OrderItem] @connection(name: "OrderOrderItems")
Member: Member @connection(name: "OrderMember")
VendorOrder: VendorOrder @connection(name: "VendorOrderOrders")
Price: String
Date: String
Processed: Boolean
}
type OrderItem @model {
ID: ID
Order: Order @connection(name: "OrderOrderItems")
VendorItem: VendorItem @connection(name: "VendorItemOrderItems")
Minimum: Float
Maximum: Float
}
type Member @model {
ID: ID
Name: String
Phone: String
Address: String
Active: Boolean
Payments: [MemberPayments] @connection(name: "MemberMemberPayments")
Orders: [Order] @connection(name: "OrderMember")
}
type MemberPayments @model {
ID: ID
Date: String
Amount: String
TransactionFee: String
TransactionType: String
AdjustedAmount: String
Member: Member @connection(name: "MemberMemberPayments")
}
type VendorOrder @model {
ID: ID
Date: String
Vendor: Vendor @connection(name: "VendorVendorOrder")
Order: [Order] @connection(name: "VendorOrderOrders")
VendorOrderItems: [VendorOrderItem] @connection(name: "VendorOrderVendorOrtderItems")
}
type VendorOrderItem @model {
ID: ID
Qty: Float
Item: VendorItem @connection(name: "VendorItemVendorOrderItems")
Price: Float
VendorOrder: VendorOrder @connection(name: "VendorOrderVendorOrtderItems")
Orders: [Order] @connection(name: "VendorOrderOrders")
}