-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.graphql
92 lines (72 loc) · 1.57 KB
/
types.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
90
91
92
type Brand @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
name: String!
products: [Product!]! @relation(name: "BrandProducts")
whereToBuyUrl: String
allerganStatementUrl: String
boost: Int! @defaultValue(value: 0)
isHidden: Boolean! @defaultValue(value: "false")
notes: String
}
type Product @model {
id: ID! @isUnique
upc: String @isUnique
ean: String @isUnique
sku: String
asin: String @isUnique
slug: String @isUnique
name: String!
brand: Brand! @relation(name: "BrandProducts")
keywords: String
gfCerts: [GF_CERT!]!
parent: Product @relation(name: "ProductVariations")
variations: [Product!]! @relation(name: "ProductVariations")
offers: [Offer!]! @relation(name: "ProductOffers")
image: String
imageSource: String
description: String
descriptionSource: String
ingredients: String
ingredientsSource: String
size: String
facilityStatement: String
lastVerifiedAt: DateTime
boost: Int! @defaultValue(value: 0)
isHidden: Boolean! @defaultValue(value: "false")
isOrganic: Boolean
notes: String
createdAt: DateTime!
updatedAt: DateTime!
forceSyncTrigger: String
}
type Offer @model {
id: ID! @isUnique
product: Product! @relation(name: "ProductOffers")
merchant: String!
isAffiliate: Boolean!
url: String! @isUnique
price: Float
quantity: Int
createdAt: DateTime!
updatedAt: DateTime!
deleteStatus: String
}
enum MATCH_STATUS {
PENDING
NEEDS_REVIEW
MATCHED
INVALID
NONE
}
enum MATCH_SCORE {
UNKNOWN
PERFECT
POSSIBLE
NONE
}
enum GF_CERT {
GFCO
GFCP
}