-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.gpl
123 lines (107 loc) · 2.48 KB
/
schema.gpl
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type Order {
order_number: ID!
user_id: User!
item_id: Item!
order_date: Date!
shipping_status: SHIPPING_STATUS_ENUM!
}
"""Date custom scalar type"""
scalar Date
enum SHIPPING_STATUS_ENUM {
ORDER_OK
SHIPPING_READY
SHIPPING_START
SHIPPING_COMPLETE
}
type Store {
store_name: ID!
password: String!
store_email: String!
store_tel: String!
item_list: Item!
store_description: String
}
type Item {
item_number: Float!
item_name: String!
order_list: Order
stock_count: Int!
item_order_count: Int!
item_price: Int!
store_id: Store!
item_description: String
cart_list: Cart!
}
type Cart {
cart_number: Float!
user_id: User!
item_number: Item!
cart_count: Int!
}
type User {
id: ID!
password: String!
address: String!
phoneNumber: Int!
order_list: Order!
cart_list: Cart!
}
type Query {
getUsers: [User!]!
getStore: [Store!]!
}
type Mutation {
createUser(userInput: UserInput!): Boolean!
updateUser(updateInfo: UserUpdateInput!, id: ID!): Boolean!
userLogin(password: String!, id: String!): JSON!
createStore(storeInput: StoreInput!): Boolean!
updateStore(updateInfo: StoreUpdateInput!, store_name: ID!): Boolean!
storeLogin(password: String!, store_name: String!): JSON!
createItem(ItemInput: ItemInput!): Boolean!
removeItem(item_number: ID!): Boolean!
createOrder(order_count: Int!, item_number: ID!): Boolean!
setCartNonLogin(cartInput: CartInput!): Boolean!
}
input UserInput {
id: ID!
password: String!
address: String!
phoneNumber: Int!
}
input UserUpdateInput {
password: String
address: String
phoneNumber: Int
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
input StoreInput {
store_name: ID!
password: String!
password_confirm: String!
store_email: String!
store_tel: String!
store_description: String
}
input StoreUpdateInput {
password: String
password_confirm: String
store_email: String
store_tel: String
store_description: String
}
input ItemInput {
item_name: String!
stock_count: Int!
item_price: Int!
item_description: String
}
input CartInput {
item_number: Int!
cart_count: Int!
}