File size: 3,889 Bytes
562924d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
-- Schema: bird__card_games
CREATE SCHEMA IF NOT EXISTS "bird__card_games";

-- Table: cards
CREATE TABLE "bird__card_games"."cards" (
    "id" BIGINT NOT NULL,
    "artist" TEXT,
    "asciiName" TEXT,
    "availability" TEXT,
    "borderColor" TEXT,
    "cardKingdomFoilId" TEXT,
    "cardKingdomId" TEXT,
    "colorIdentity" TEXT,
    "colorIndicator" TEXT,
    "colors" TEXT,
    "convertedManaCost" DOUBLE PRECISION,
    "duelDeck" TEXT,
    "edhrecRank" BIGINT,
    "faceConvertedManaCost" DOUBLE PRECISION,
    "faceName" TEXT,
    "flavorName" TEXT,
    "flavorText" TEXT,
    "frameEffects" TEXT,
    "frameVersion" TEXT,
    "hand" TEXT,
    "hasAlternativeDeckLimit" BIGINT NOT NULL DEFAULT 0,
    "hasContentWarning" BIGINT NOT NULL DEFAULT 0,
    "hasFoil" BIGINT NOT NULL DEFAULT 0,
    "hasNonFoil" BIGINT NOT NULL DEFAULT 0,
    "isAlternative" BIGINT NOT NULL DEFAULT 0,
    "isFullArt" BIGINT NOT NULL DEFAULT 0,
    "isOnlineOnly" BIGINT NOT NULL DEFAULT 0,
    "isOversized" BIGINT NOT NULL DEFAULT 0,
    "isPromo" BIGINT NOT NULL DEFAULT 0,
    "isReprint" BIGINT NOT NULL DEFAULT 0,
    "isReserved" BIGINT NOT NULL DEFAULT 0,
    "isStarter" BIGINT NOT NULL DEFAULT 0,
    "isStorySpotlight" BIGINT NOT NULL DEFAULT 0,
    "isTextless" BIGINT NOT NULL DEFAULT 0,
    "isTimeshifted" BIGINT NOT NULL DEFAULT 0,
    "keywords" TEXT,
    "layout" TEXT,
    "leadershipSkills" TEXT,
    "life" TEXT,
    "loyalty" TEXT,
    "manaCost" TEXT,
    "mcmId" TEXT,
    "mcmMetaId" TEXT,
    "mtgArenaId" TEXT,
    "mtgjsonV4Id" TEXT,
    "mtgoFoilId" TEXT,
    "mtgoId" TEXT,
    "multiverseId" TEXT,
    "name" TEXT,
    "number" TEXT,
    "originalReleaseDate" TEXT,
    "originalText" TEXT,
    "originalType" TEXT,
    "otherFaceIds" TEXT,
    "power" TEXT,
    "printings" TEXT,
    "promoTypes" TEXT,
    "purchaseUrls" TEXT,
    "rarity" TEXT,
    "scryfallId" TEXT,
    "scryfallIllustrationId" TEXT,
    "scryfallOracleId" TEXT,
    "setCode" TEXT,
    "side" TEXT,
    "subtypes" TEXT,
    "supertypes" TEXT,
    "tcgplayerProductId" TEXT,
    "text" TEXT,
    "toughness" TEXT,
    "type" TEXT,
    "types" TEXT,
    "uuid" TEXT NOT NULL,
    "variations" TEXT,
    "watermark" TEXT,
    CONSTRAINT "cards_pkey" PRIMARY KEY ("id")
);

-- Table: foreign_data
CREATE TABLE "bird__card_games"."foreign_data" (
    "id" BIGINT NOT NULL,
    "flavorText" TEXT,
    "language" TEXT,
    "multiverseid" BIGINT,
    "name" TEXT,
    "text" TEXT,
    "type" TEXT,
    "uuid" TEXT,
    CONSTRAINT "foreign_data_pkey" PRIMARY KEY ("id")
);

-- Table: legalities
CREATE TABLE "bird__card_games"."legalities" (
    "id" BIGINT NOT NULL,
    "format" TEXT,
    "status" TEXT,
    "uuid" TEXT,
    CONSTRAINT "legalities_pkey" PRIMARY KEY ("id")
);

-- Table: rulings
CREATE TABLE "bird__card_games"."rulings" (
    "id" BIGINT NOT NULL,
    "date" DATE,
    "text" TEXT,
    "uuid" TEXT,
    CONSTRAINT "rulings_pkey" PRIMARY KEY ("id")
);

-- Table: set_translations
CREATE TABLE "bird__card_games"."set_translations" (
    "id" BIGINT NOT NULL,
    "language" TEXT,
    "setCode" TEXT,
    "translation" TEXT,
    CONSTRAINT "set_translations_pkey" PRIMARY KEY ("id")
);

-- Table: sets
CREATE TABLE "bird__card_games"."sets" (
    "id" BIGINT NOT NULL,
    "baseSetSize" BIGINT,
    "block" TEXT,
    "booster" TEXT,
    "code" TEXT NOT NULL,
    "isFoilOnly" BIGINT NOT NULL DEFAULT 0,
    "isForeignOnly" BIGINT NOT NULL DEFAULT 0,
    "isNonFoilOnly" BIGINT NOT NULL DEFAULT 0,
    "isOnlineOnly" BIGINT NOT NULL DEFAULT 0,
    "isPartialPreview" BIGINT NOT NULL DEFAULT 0,
    "keyruneCode" TEXT,
    "mcmId" BIGINT,
    "mcmIdExtras" BIGINT,
    "mcmName" TEXT,
    "mtgoCode" TEXT,
    "name" TEXT,
    "parentCode" TEXT,
    "releaseDate" DATE,
    "tcgplayerGroupId" BIGINT,
    "totalSetSize" BIGINT,
    "type" TEXT,
    CONSTRAINT "sets_pkey" PRIMARY KEY ("id")
);