sdy

init steps.json in migration

1 +{
2 + "version": "0.3.14-fixed",
3 + "steps": [
4 + {
5 + "tag": "CreateSource",
6 + "source": "db"
7 + },
8 + {
9 + "tag": "CreateArgument",
10 + "location": {
11 + "tag": "Source",
12 + "source": "db"
13 + },
14 + "argument": "provider",
15 + "value": "\"mysql\""
16 + },
17 + {
18 + "tag": "CreateArgument",
19 + "location": {
20 + "tag": "Source",
21 + "source": "db"
22 + },
23 + "argument": "url",
24 + "value": "env(\"DATABASE_URL\")"
25 + },
26 + {
27 + "tag": "CreateModel",
28 + "model": "User"
29 + },
30 + {
31 + "tag": "CreateField",
32 + "model": "User",
33 + "field": "id",
34 + "type": "Int",
35 + "arity": "Required"
36 + },
37 + {
38 + "tag": "CreateDirective",
39 + "location": {
40 + "path": {
41 + "tag": "Field",
42 + "model": "User",
43 + "field": "id"
44 + },
45 + "directive": "default"
46 + }
47 + },
48 + {
49 + "tag": "CreateArgument",
50 + "location": {
51 + "tag": "Directive",
52 + "path": {
53 + "tag": "Field",
54 + "model": "User",
55 + "field": "id"
56 + },
57 + "directive": "default"
58 + },
59 + "argument": "",
60 + "value": "autoincrement()"
61 + },
62 + {
63 + "tag": "CreateDirective",
64 + "location": {
65 + "path": {
66 + "tag": "Field",
67 + "model": "User",
68 + "field": "id"
69 + },
70 + "directive": "id"
71 + }
72 + },
73 + {
74 + "tag": "CreateField",
75 + "model": "User",
76 + "field": "avatarUrl",
77 + "type": "String",
78 + "arity": "Optional"
79 + },
80 + {
81 + "tag": "CreateField",
82 + "model": "User",
83 + "field": "email",
84 + "type": "String",
85 + "arity": "Required"
86 + },
87 + {
88 + "tag": "CreateDirective",
89 + "location": {
90 + "path": {
91 + "tag": "Field",
92 + "model": "User",
93 + "field": "email"
94 + },
95 + "directive": "unique"
96 + }
97 + },
98 + {
99 + "tag": "CreateField",
100 + "model": "User",
101 + "field": "password",
102 + "type": "String",
103 + "arity": "Required"
104 + },
105 + {
106 + "tag": "CreateField",
107 + "model": "User",
108 + "field": "name",
109 + "type": "String",
110 + "arity": "Required"
111 + },
112 + {
113 + "tag": "CreateField",
114 + "model": "User",
115 + "field": "loginSecret",
116 + "type": "String",
117 + "arity": "Optional"
118 + },
119 + {
120 + "tag": "CreateField",
121 + "model": "User",
122 + "field": "bio",
123 + "type": "String",
124 + "arity": "Optional"
125 + },
126 + {
127 + "tag": "CreateField",
128 + "model": "User",
129 + "field": "rooms",
130 + "type": "Room",
131 + "arity": "List"
132 + },
133 + {
134 + "tag": "CreateDirective",
135 + "location": {
136 + "path": {
137 + "tag": "Field",
138 + "model": "User",
139 + "field": "rooms"
140 + },
141 + "directive": "relation"
142 + }
143 + },
144 + {
145 + "tag": "CreateArgument",
146 + "location": {
147 + "tag": "Directive",
148 + "path": {
149 + "tag": "Field",
150 + "model": "User",
151 + "field": "rooms"
152 + },
153 + "directive": "relation"
154 + },
155 + "argument": "references",
156 + "value": "[id]"
157 + },
158 + {
159 + "tag": "CreateField",
160 + "model": "User",
161 + "field": "messages",
162 + "type": "Message",
163 + "arity": "List"
164 + },
165 + {
166 + "tag": "CreateField",
167 + "model": "User",
168 + "field": "createdAt",
169 + "type": "DateTime",
170 + "arity": "Optional"
171 + },
172 + {
173 + "tag": "CreateDirective",
174 + "location": {
175 + "path": {
176 + "tag": "Field",
177 + "model": "User",
178 + "field": "createdAt"
179 + },
180 + "directive": "default"
181 + }
182 + },
183 + {
184 + "tag": "CreateArgument",
185 + "location": {
186 + "tag": "Directive",
187 + "path": {
188 + "tag": "Field",
189 + "model": "User",
190 + "field": "createdAt"
191 + },
192 + "directive": "default"
193 + },
194 + "argument": "",
195 + "value": "now()"
196 + },
197 + {
198 + "tag": "CreateModel",
199 + "model": "Room"
200 + },
201 + {
202 + "tag": "CreateField",
203 + "model": "Room",
204 + "field": "id",
205 + "type": "Int",
206 + "arity": "Required"
207 + },
208 + {
209 + "tag": "CreateDirective",
210 + "location": {
211 + "path": {
212 + "tag": "Field",
213 + "model": "Room",
214 + "field": "id"
215 + },
216 + "directive": "default"
217 + }
218 + },
219 + {
220 + "tag": "CreateArgument",
221 + "location": {
222 + "tag": "Directive",
223 + "path": {
224 + "tag": "Field",
225 + "model": "Room",
226 + "field": "id"
227 + },
228 + "directive": "default"
229 + },
230 + "argument": "",
231 + "value": "autoincrement()"
232 + },
233 + {
234 + "tag": "CreateDirective",
235 + "location": {
236 + "path": {
237 + "tag": "Field",
238 + "model": "Room",
239 + "field": "id"
240 + },
241 + "directive": "id"
242 + }
243 + },
244 + {
245 + "tag": "CreateField",
246 + "model": "Room",
247 + "field": "participants",
248 + "type": "User",
249 + "arity": "List"
250 + },
251 + {
252 + "tag": "CreateDirective",
253 + "location": {
254 + "path": {
255 + "tag": "Field",
256 + "model": "Room",
257 + "field": "participants"
258 + },
259 + "directive": "relation"
260 + }
261 + },
262 + {
263 + "tag": "CreateArgument",
264 + "location": {
265 + "tag": "Directive",
266 + "path": {
267 + "tag": "Field",
268 + "model": "Room",
269 + "field": "participants"
270 + },
271 + "directive": "relation"
272 + },
273 + "argument": "references",
274 + "value": "[id]"
275 + },
276 + {
277 + "tag": "CreateField",
278 + "model": "Room",
279 + "field": "categories",
280 + "type": "Category",
281 + "arity": "List"
282 + },
283 + {
284 + "tag": "CreateDirective",
285 + "location": {
286 + "path": {
287 + "tag": "Field",
288 + "model": "Room",
289 + "field": "categories"
290 + },
291 + "directive": "relation"
292 + }
293 + },
294 + {
295 + "tag": "CreateArgument",
296 + "location": {
297 + "tag": "Directive",
298 + "path": {
299 + "tag": "Field",
300 + "model": "Room",
301 + "field": "categories"
302 + },
303 + "directive": "relation"
304 + },
305 + "argument": "references",
306 + "value": "[id]"
307 + },
308 + {
309 + "tag": "CreateModel",
310 + "model": "Category"
311 + },
312 + {
313 + "tag": "CreateField",
314 + "model": "Category",
315 + "field": "id",
316 + "type": "Int",
317 + "arity": "Required"
318 + },
319 + {
320 + "tag": "CreateDirective",
321 + "location": {
322 + "path": {
323 + "tag": "Field",
324 + "model": "Category",
325 + "field": "id"
326 + },
327 + "directive": "default"
328 + }
329 + },
330 + {
331 + "tag": "CreateArgument",
332 + "location": {
333 + "tag": "Directive",
334 + "path": {
335 + "tag": "Field",
336 + "model": "Category",
337 + "field": "id"
338 + },
339 + "directive": "default"
340 + },
341 + "argument": "",
342 + "value": "autoincrement()"
343 + },
344 + {
345 + "tag": "CreateDirective",
346 + "location": {
347 + "path": {
348 + "tag": "Field",
349 + "model": "Category",
350 + "field": "id"
351 + },
352 + "directive": "id"
353 + }
354 + },
355 + {
356 + "tag": "CreateField",
357 + "model": "Category",
358 + "field": "name",
359 + "type": "String",
360 + "arity": "Optional"
361 + },
362 + {
363 + "tag": "CreateDirective",
364 + "location": {
365 + "path": {
366 + "tag": "Field",
367 + "model": "Category",
368 + "field": "name"
369 + },
370 + "directive": "default"
371 + }
372 + },
373 + {
374 + "tag": "CreateArgument",
375 + "location": {
376 + "tag": "Directive",
377 + "path": {
378 + "tag": "Field",
379 + "model": "Category",
380 + "field": "name"
381 + },
382 + "directive": "default"
383 + },
384 + "argument": "",
385 + "value": "\"\""
386 + },
387 + {
388 + "tag": "CreateField",
389 + "model": "Category",
390 + "field": "rooms",
391 + "type": "Room",
392 + "arity": "List"
393 + },
394 + {
395 + "tag": "CreateDirective",
396 + "location": {
397 + "path": {
398 + "tag": "Field",
399 + "model": "Category",
400 + "field": "rooms"
401 + },
402 + "directive": "relation"
403 + }
404 + },
405 + {
406 + "tag": "CreateArgument",
407 + "location": {
408 + "tag": "Directive",
409 + "path": {
410 + "tag": "Field",
411 + "model": "Category",
412 + "field": "rooms"
413 + },
414 + "directive": "relation"
415 + },
416 + "argument": "references",
417 + "value": "[id]"
418 + },
419 + {
420 + "tag": "CreateModel",
421 + "model": "Message"
422 + },
423 + {
424 + "tag": "CreateField",
425 + "model": "Message",
426 + "field": "id",
427 + "type": "Int",
428 + "arity": "Required"
429 + },
430 + {
431 + "tag": "CreateDirective",
432 + "location": {
433 + "path": {
434 + "tag": "Field",
435 + "model": "Message",
436 + "field": "id"
437 + },
438 + "directive": "default"
439 + }
440 + },
441 + {
442 + "tag": "CreateArgument",
443 + "location": {
444 + "tag": "Directive",
445 + "path": {
446 + "tag": "Field",
447 + "model": "Message",
448 + "field": "id"
449 + },
450 + "directive": "default"
451 + },
452 + "argument": "",
453 + "value": "autoincrement()"
454 + },
455 + {
456 + "tag": "CreateDirective",
457 + "location": {
458 + "path": {
459 + "tag": "Field",
460 + "model": "Message",
461 + "field": "id"
462 + },
463 + "directive": "id"
464 + }
465 + },
466 + {
467 + "tag": "CreateField",
468 + "model": "Message",
469 + "field": "text",
470 + "type": "String",
471 + "arity": "Optional"
472 + },
473 + {
474 + "tag": "CreateDirective",
475 + "location": {
476 + "path": {
477 + "tag": "Field",
478 + "model": "Message",
479 + "field": "text"
480 + },
481 + "directive": "default"
482 + }
483 + },
484 + {
485 + "tag": "CreateArgument",
486 + "location": {
487 + "tag": "Directive",
488 + "path": {
489 + "tag": "Field",
490 + "model": "Message",
491 + "field": "text"
492 + },
493 + "directive": "default"
494 + },
495 + "argument": "",
496 + "value": "\"\""
497 + },
498 + {
499 + "tag": "CreateField",
500 + "model": "Message",
501 + "field": "sender",
502 + "type": "User",
503 + "arity": "Required"
504 + },
505 + {
506 + "tag": "CreateDirective",
507 + "location": {
508 + "path": {
509 + "tag": "Field",
510 + "model": "Message",
511 + "field": "sender"
512 + },
513 + "directive": "relation"
514 + }
515 + },
516 + {
517 + "tag": "CreateArgument",
518 + "location": {
519 + "tag": "Directive",
520 + "path": {
521 + "tag": "Field",
522 + "model": "Message",
523 + "field": "sender"
524 + },
525 + "directive": "relation"
526 + },
527 + "argument": "fields",
528 + "value": "[senderId]"
529 + },
530 + {
531 + "tag": "CreateArgument",
532 + "location": {
533 + "tag": "Directive",
534 + "path": {
535 + "tag": "Field",
536 + "model": "Message",
537 + "field": "sender"
538 + },
539 + "directive": "relation"
540 + },
541 + "argument": "references",
542 + "value": "[id]"
543 + },
544 + {
545 + "tag": "CreateField",
546 + "model": "Message",
547 + "field": "senderId",
548 + "type": "Int",
549 + "arity": "Required"
550 + }
551 + ]
552 +}
...\ No newline at end of file ...\ No newline at end of file