Added machines table.

This commit is contained in:
Eevee 2009-08-09 23:07:23 -07:00
parent 9f9c29a398
commit a253df0280
2 changed files with 280 additions and 0 deletions

View file

@ -0,0 +1,271 @@
machine_number,generation_id,move_id
1,1,5
1,2,223
1,3,264
1,4,264
2,1,13
2,2,29
2,3,337
2,4,337
3,1,14
3,2,174
3,3,352
3,4,352
4,1,18
4,2,205
4,3,347
4,4,347
5,1,25
5,2,46
5,3,46
5,4,46
6,1,92
6,2,92
6,3,92
6,4,92
7,1,32
7,2,192
7,3,258
7,4,258
8,1,34
8,2,249
8,3,339
8,4,339
9,1,36
9,2,244
9,3,331
9,4,331
10,1,38
10,2,237
10,3,237
10,4,237
11,1,61
11,2,241
11,3,241
11,4,241
12,1,55
12,2,230
12,3,269
12,4,269
13,1,58
13,2,173
13,3,58
13,4,58
14,1,59
14,2,59
14,3,59
14,4,59
15,1,63
15,2,63
15,3,63
15,4,63
16,1,6
16,2,196
16,3,113
16,4,113
17,1,66
17,2,182
17,3,182
17,4,182
18,1,68
18,2,240
18,3,240
18,4,240
19,1,69
19,2,202
19,3,202
19,4,202
20,1,99
20,2,203
20,3,219
20,4,219
21,1,72
21,2,218
21,3,218
21,4,218
22,1,76
22,2,76
22,3,76
22,4,76
23,1,82
23,2,231
23,3,231
23,4,231
24,1,85
24,2,225
24,3,85
24,4,85
25,1,87
25,2,87
25,3,87
25,4,87
26,1,89
26,2,89
26,3,89
26,4,89
27,1,90
27,2,216
27,3,216
27,4,216
28,1,91
28,2,91
28,3,91
28,4,91
29,1,94
29,2,94
29,3,94
29,4,94
30,1,100
30,2,247
30,3,247
30,4,247
31,1,102
31,2,189
31,3,280
31,4,280
32,1,104
32,2,104
32,3,104
32,4,104
33,1,115
33,2,8
33,3,115
33,4,115
34,1,117
34,2,207
34,3,351
34,4,351
35,1,118
35,2,214
35,3,53
35,4,53
36,1,120
36,2,188
36,3,188
36,4,188
37,1,121
37,2,201
37,3,201
37,4,201
38,1,126
38,2,126
38,3,126
38,4,126
39,1,129
39,2,129
39,3,317
39,4,317
40,1,130
40,2,111
40,3,332
40,4,332
41,1,135
41,2,9
41,3,259
41,4,259
42,1,138
42,2,138
42,3,263
42,4,263
43,1,143
43,2,197
43,3,290
43,4,290
44,1,156
44,2,156
44,3,156
44,4,156
45,1,86
45,2,213
45,3,213
45,4,213
46,1,149
46,2,168
46,3,168
46,4,168
47,1,153
47,2,211
47,3,211
47,4,211
48,1,157
48,2,7
48,3,285
48,4,285
49,1,161
49,2,210
49,3,289
49,4,289
50,1,164
50,2,171
50,3,315
50,4,315
51,4,355
52,4,411
53,4,412
54,4,206
55,4,362
56,4,374
57,4,451
58,4,203
59,4,406
60,4,409
61,4,261
62,4,318
63,4,373
64,4,153
65,4,421
66,4,371
67,4,278
68,4,416
69,4,397
70,4,148
71,4,444
72,4,419
73,4,86
74,4,360
75,4,14
76,4,446
77,4,244
78,4,445
79,4,399
80,4,157
81,4,404
82,4,214
83,4,363
84,4,398
85,4,138
86,4,447
87,4,207
88,4,365
89,4,369
90,4,164
91,4,430
92,4,433
101,1,15
101,2,15
101,3,15
101,4,15
102,1,19
102,2,19
102,3,19
102,4,19
103,1,57
103,2,57
103,3,57
103,4,57
104,1,70
104,2,70
104,3,70
104,4,70
105,1,148
105,2,148
105,3,148
105,4,432
106,2,250
106,3,249
106,4,249
107,2,127
107,3,127
107,4,127
108,3,291
108,4,431
1 machine_number generation_id move_id
2 1 1 5
3 1 2 223
4 1 3 264
5 1 4 264
6 2 1 13
7 2 2 29
8 2 3 337
9 2 4 337
10 3 1 14
11 3 2 174
12 3 3 352
13 3 4 352
14 4 1 18
15 4 2 205
16 4 3 347
17 4 4 347
18 5 1 25
19 5 2 46
20 5 3 46
21 5 4 46
22 6 1 92
23 6 2 92
24 6 3 92
25 6 4 92
26 7 1 32
27 7 2 192
28 7 3 258
29 7 4 258
30 8 1 34
31 8 2 249
32 8 3 339
33 8 4 339
34 9 1 36
35 9 2 244
36 9 3 331
37 9 4 331
38 10 1 38
39 10 2 237
40 10 3 237
41 10 4 237
42 11 1 61
43 11 2 241
44 11 3 241
45 11 4 241
46 12 1 55
47 12 2 230
48 12 3 269
49 12 4 269
50 13 1 58
51 13 2 173
52 13 3 58
53 13 4 58
54 14 1 59
55 14 2 59
56 14 3 59
57 14 4 59
58 15 1 63
59 15 2 63
60 15 3 63
61 15 4 63
62 16 1 6
63 16 2 196
64 16 3 113
65 16 4 113
66 17 1 66
67 17 2 182
68 17 3 182
69 17 4 182
70 18 1 68
71 18 2 240
72 18 3 240
73 18 4 240
74 19 1 69
75 19 2 202
76 19 3 202
77 19 4 202
78 20 1 99
79 20 2 203
80 20 3 219
81 20 4 219
82 21 1 72
83 21 2 218
84 21 3 218
85 21 4 218
86 22 1 76
87 22 2 76
88 22 3 76
89 22 4 76
90 23 1 82
91 23 2 231
92 23 3 231
93 23 4 231
94 24 1 85
95 24 2 225
96 24 3 85
97 24 4 85
98 25 1 87
99 25 2 87
100 25 3 87
101 25 4 87
102 26 1 89
103 26 2 89
104 26 3 89
105 26 4 89
106 27 1 90
107 27 2 216
108 27 3 216
109 27 4 216
110 28 1 91
111 28 2 91
112 28 3 91
113 28 4 91
114 29 1 94
115 29 2 94
116 29 3 94
117 29 4 94
118 30 1 100
119 30 2 247
120 30 3 247
121 30 4 247
122 31 1 102
123 31 2 189
124 31 3 280
125 31 4 280
126 32 1 104
127 32 2 104
128 32 3 104
129 32 4 104
130 33 1 115
131 33 2 8
132 33 3 115
133 33 4 115
134 34 1 117
135 34 2 207
136 34 3 351
137 34 4 351
138 35 1 118
139 35 2 214
140 35 3 53
141 35 4 53
142 36 1 120
143 36 2 188
144 36 3 188
145 36 4 188
146 37 1 121
147 37 2 201
148 37 3 201
149 37 4 201
150 38 1 126
151 38 2 126
152 38 3 126
153 38 4 126
154 39 1 129
155 39 2 129
156 39 3 317
157 39 4 317
158 40 1 130
159 40 2 111
160 40 3 332
161 40 4 332
162 41 1 135
163 41 2 9
164 41 3 259
165 41 4 259
166 42 1 138
167 42 2 138
168 42 3 263
169 42 4 263
170 43 1 143
171 43 2 197
172 43 3 290
173 43 4 290
174 44 1 156
175 44 2 156
176 44 3 156
177 44 4 156
178 45 1 86
179 45 2 213
180 45 3 213
181 45 4 213
182 46 1 149
183 46 2 168
184 46 3 168
185 46 4 168
186 47 1 153
187 47 2 211
188 47 3 211
189 47 4 211
190 48 1 157
191 48 2 7
192 48 3 285
193 48 4 285
194 49 1 161
195 49 2 210
196 49 3 289
197 49 4 289
198 50 1 164
199 50 2 171
200 50 3 315
201 50 4 315
202 51 4 355
203 52 4 411
204 53 4 412
205 54 4 206
206 55 4 362
207 56 4 374
208 57 4 451
209 58 4 203
210 59 4 406
211 60 4 409
212 61 4 261
213 62 4 318
214 63 4 373
215 64 4 153
216 65 4 421
217 66 4 371
218 67 4 278
219 68 4 416
220 69 4 397
221 70 4 148
222 71 4 444
223 72 4 419
224 73 4 86
225 74 4 360
226 75 4 14
227 76 4 446
228 77 4 244
229 78 4 445
230 79 4 399
231 80 4 157
232 81 4 404
233 82 4 214
234 83 4 363
235 84 4 398
236 85 4 138
237 86 4 447
238 87 4 207
239 88 4 365
240 89 4 369
241 90 4 164
242 91 4 430
243 92 4 433
244 101 1 15
245 101 2 15
246 101 3 15
247 101 4 15
248 102 1 19
249 102 2 19
250 102 3 19
251 102 4 19
252 103 1 57
253 103 2 57
254 103 3 57
255 103 4 57
256 104 1 70
257 104 2 70
258 104 3 70
259 104 4 70
260 105 1 148
261 105 2 148
262 105 3 148
263 105 4 432
264 106 2 250
265 106 3 249
266 106 4 249
267 107 2 127
268 107 3 127
269 107 4 127
270 108 3 291
271 108 4 431

View file

@ -156,6 +156,12 @@ class LocationArea(TableBase):
internal_id = Column(Integer, nullable=False) internal_id = Column(Integer, nullable=False)
name = Column(Unicode(64), nullable=True) name = Column(Unicode(64), nullable=True)
class Machine(TableBase):
__tablename__ = 'machines'
machine_number = Column(Integer, primary_key=True, nullable=False, autoincrement=False)
generation_id = Column(Integer, ForeignKey('generations.id'), primary_key=True, nullable=False, autoincrement=False)
move_id = Column(Integer, ForeignKey('moves.id'), nullable=False)
class MoveEffect(TableBase): class MoveEffect(TableBase):
__tablename__ = 'move_effects' __tablename__ = 'move_effects'
id = Column(Integer, primary_key=True, nullable=False) id = Column(Integer, primary_key=True, nullable=False)
@ -376,8 +382,11 @@ EvolutionChain.growth_rate = relation(GrowthRate, backref='evolution_chains')
LocationArea.location = relation(Location, backref='areas') LocationArea.location = relation(Location, backref='areas')
Machine.generation = relation(Generation)
Move.type = relation(Type, backref='moves') Move.type = relation(Type, backref='moves')
Move.effect = relation(MoveEffect, backref='moves') Move.effect = relation(MoveEffect, backref='moves')
Move.machines = relation(Machine, backref='move')
Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__, Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__,
order_by=PokemonAbility.slot, order_by=PokemonAbility.slot,