-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.graphql
69 lines (66 loc) · 1.39 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
type Set @model {
id: ID! @isUnique
name: String!
slug: String!
code: String! @isUnique
magicCardsInfoCode: String
gathererCode: String
oldCode: String
releaseDate: DateTime!
border: String
type: String
block: String
cards: [Card!]! @relation(name: "SetCards")
createdAt: DateTime!
updatedAt: DateTime!
}
type CardLegality @model {
id: ID! @isUnique
cards: [Card!]! @relation(name: "CardLegalities")
format: String!
legality: String!
}
type CardRuling @model {
id: ID! @isUnique
cards: [Card!]! @relation(name: "CardRulings")
text: String!
date: DateTime!
}
type Card @model {
id: ID! @isUnique
slug: String!
artist: String
cmc: Int
colorIdentity: [String!]
colors: [String!]
flavor: String
imageName: String
layout: String
legalities: [CardLegality!]! @relation(name: "CardLegalities")
loyalty: String
manaCost: String
mciNumber: String
mtgjsonId: String @isUnique
multiverseid: Int
name: String!
names: [String!]
number: String
originalText: String
originalType: String
power: String
printings: [String!]
rarity: String
rulings: [CardRuling!]! @relation(name: "CardRulings")
side: String
source: String
subtype: String
subtypes: [String!]
supertypes: [String!]
text: String
toughness: String
type: String
types: [String!]
set: Set! @relation(name: "SetCards")
createdAt: DateTime!
updatedAt: DateTime!
}