OSDN Git Service

fix foreign_filter list includes
[pettanr/pettanr.git] / public / manifest.json
1 {\r
2   "items": {\r
3     "scroll": {\r
4       "type": "binder",\r
5       "args": {}\r
6     },\r
7     "scroll_panel": {\r
8       "type": "leaf",\r
9       "args": {\r
10         "parent_model_name": "scroll"\r
11       }\r
12     },\r
13     "comic": {\r
14       "type": "binder",\r
15       "args": {}\r
16     },\r
17     "story": {\r
18       "type": "binder",\r
19       "args": {}\r
20     },\r
21     "story_sheet": {\r
22       "type": "leaf",\r
23       "args": {\r
24         "parent_model_name": "story"\r
25       }\r
26     },\r
27     "sheet": {\r
28       "type": "root",\r
29       "args": {}\r
30     },\r
31     "sheet_panel": {\r
32       "type": "element",\r
33       "args": {\r
34         "parent_model_name": "sheet"\r
35       }\r
36     },\r
37     "panel": {\r
38       "type": "root",\r
39       "args": {}\r
40     },\r
41     "panel_picture": {\r
42       "type": "element",\r
43       "args": {\r
44         "parent_model_name": "panel"\r
45       }\r
46     },\r
47     "speech_balloon": {\r
48       "type": "element",\r
49       "args": {\r
50         "parent_model_name": "panel"\r
51       }\r
52     },\r
53     "balloon": {\r
54       "type": "element",\r
55       "args": {\r
56         "parent_model_name": "speech_balloon"\r
57       }\r
58     },\r
59     "speech": {\r
60       "type": "element",\r
61       "args": {\r
62         "parent_model_name": "speech_balloon"\r
63       }\r
64     },\r
65     "ground_picture": {\r
66       "type": "element",\r
67       "args": {\r
68         "parent_model_name": "panel"\r
69       }\r
70     },\r
71     "ground_color": {\r
72       "type": "element",\r
73       "args": {\r
74         "parent_model_name": "panel"\r
75       }\r
76     },\r
77     "original_picture": {},\r
78     "picture": {},\r
79     "resource_picture": {},\r
80     "speech_balloon_template": {},\r
81     "writing_format": {},\r
82     "license_group": {},\r
83     "license": {},\r
84     "author": {},\r
85     "artist": {},\r
86     "system_picture": {}\r
87   },\r
88   "controllers": {\r
89     "scrolls": {\r
90       "actions": {\r
91         "index": {\r
92           "type": "list",\r
93           "args": {\r
94             "list_name": "public"\r
95           }\r
96         },\r
97         "by_author": {\r
98           "type": "list"\r
99         },\r
100         "by_panel": {\r
101           "type": "list"\r
102         },\r
103         "play": {\r
104           "type": "list",\r
105           "args": {\r
106             "list_name": "play"\r
107           }\r
108         },\r
109         "show": {\r
110           "type": "show"\r
111         },\r
112         "count": {\r
113           "type": "count",\r
114           "args": {\r
115             "list_name": "public"\r
116           }\r
117         },\r
118         "count_by_author": {\r
119           "type": "count"\r
120         },\r
121         "count_by_panel": {\r
122           "type": "count"\r
123         },\r
124         "new": {\r
125           "type": "new"\r
126         },\r
127         "edit": {\r
128           "type": "edit"\r
129         }\r
130       }\r
131     },\r
132     "scroll_panels": {\r
133       "actions": {\r
134         "index": {\r
135           "type": "list",\r
136           "args": {\r
137             "list_name": "public"\r
138           }\r
139         },\r
140         "by_panel": {\r
141           "type": "list"\r
142         },\r
143         "by_scroll": {\r
144           "type": "list"\r
145         },\r
146         "show": {\r
147           "type": "show"\r
148         },\r
149         "count": {\r
150           "type": "count",\r
151           "args": {\r
152             "list_name": "public"\r
153           }\r
154         },\r
155         "count_by_panel": {\r
156           "type": "count"\r
157         },\r
158         "count_by_scroll": {\r
159           "type": "count"\r
160         },\r
161         "new": {\r
162           "type": "new"\r
163         },\r
164         "edit": {\r
165           "type": "edit"\r
166         }\r
167       }\r
168     },\r
169     "comics": {\r
170       "actions": {\r
171         "index": {\r
172           "type": "list",\r
173           "args": {\r
174             "list_name": "public"\r
175           }\r
176         },\r
177         "by_author": {\r
178           "type": "list"\r
179         },\r
180         "show": {\r
181           "type": "show"\r
182         },\r
183         "count": {\r
184           "type": "count",\r
185           "args": {\r
186             "list_name": "public"\r
187           }\r
188         },\r
189         "count_by_author": {\r
190           "type": "count"\r
191         },\r
192         "new": {\r
193           "type": "new"\r
194         },\r
195         "edit": {\r
196           "type": "edit"\r
197         }\r
198       }\r
199     },\r
200     "stories": {\r
201       "actions": {\r
202         "index": {\r
203           "type": "list",\r
204           "args": {\r
205             "list_name": "public"\r
206           }\r
207         },\r
208         "by_comic": {\r
209           "type": "count"\r
210         },\r
211         "by_sheet": {\r
212           "type": "count"\r
213         },\r
214         "by_author": {\r
215           "type": "list"\r
216         },\r
217         "play": {\r
218           "type": "list",\r
219           "args": {\r
220             "list_name": "play"\r
221           }\r
222         },\r
223         "show": {\r
224           "type": "show"\r
225         },\r
226         "count": {\r
227           "type": "count",\r
228           "args": {\r
229             "list_name": "public"\r
230           }\r
231         },\r
232         "count_by_author": {\r
233           "type": "count"\r
234         },\r
235         "new": {\r
236           "type": "new"\r
237         },\r
238         "edit": {\r
239           "type": "edit"\r
240         }\r
241       }\r
242     },\r
243     "story_sheets": {\r
244       "actions": {\r
245         "index": {\r
246           "type": "list",\r
247           "args": {\r
248             "list_name": "public"\r
249           }\r
250         },\r
251         "by_story": {\r
252           "type": "list"\r
253         },\r
254         "by_sheet": {\r
255           "type": "list"\r
256         },\r
257         "show": {\r
258           "type": "show"\r
259         },\r
260         "count": {\r
261           "type": "count",\r
262           "args": {\r
263             "list_name": "public"\r
264           }\r
265         },\r
266         "count_by_story": {\r
267           "type": "count"\r
268         },\r
269         "count_by_sheet": {\r
270           "type": "count"\r
271         },\r
272         "new": {\r
273           "type": "new"\r
274         },\r
275         "edit": {\r
276           "type": "edit"\r
277         }\r
278       }\r
279     },\r
280     "sheets": {\r
281       "actions": {\r
282         "index": {\r
283           "type": "list",\r
284           "args": {\r
285             "list_name": "public"\r
286           }\r
287         },\r
288         "by_story": {\r
289           "type": "list"\r
290         },\r
291         "by_panel": {\r
292           "type": "list"\r
293         },\r
294         "by_author": {\r
295           "type": "list"\r
296         },\r
297         "play": {\r
298           "type": "list",\r
299           "args": {\r
300             "list_name": "play"\r
301           }\r
302         },\r
303         "show": {\r
304           "type": "show"\r
305         },\r
306         "count": {\r
307           "type": "count",\r
308           "args": {\r
309             "list_name": "public"\r
310           }\r
311         },\r
312         "count_by_story": {\r
313           "type": "count"\r
314         },\r
315         "count_by_panel": {\r
316           "type": "count"\r
317         },\r
318         "count_by_author": {\r
319           "type": "count"\r
320         },\r
321         "new": {\r
322           "type": "new"\r
323         },\r
324         "edit": {\r
325           "type": "edit"\r
326         }\r
327       }\r
328     },\r
329     "sheet_panels": {\r
330       "actions": {\r
331         "index": {\r
332           "type": "list",\r
333           "args": {\r
334             "list_name": "public"\r
335           }\r
336         },\r
337         "by_sheet": {\r
338           "type": "list"\r
339         },\r
340         "by_panel": {\r
341           "type": "list"\r
342         },\r
343         "show": {\r
344           "type": "show"\r
345         },\r
346         "count": {\r
347           "type": "count",\r
348           "args": {\r
349             "list_name": "public"\r
350           }\r
351         },\r
352         "count_by_sheet": {\r
353           "type": "count"\r
354         },\r
355         "count_by_panel": {\r
356           "type": "count"\r
357         },\r
358         "new": {\r
359           "type": "new"\r
360         },\r
361         "edit": {\r
362           "type": "edit"\r
363         }\r
364       }\r
365     },\r
366     "panels": {\r
367       "actions": {\r
368         "index": {\r
369           "type": "list",\r
370           "args": {\r
371             "list_name": "public"\r
372           }\r
373         },\r
374         "by_scroll": {\r
375           "type": "list"\r
376         },\r
377         "by_sheet": {\r
378           "type": "list"\r
379         },\r
380         "by_author": {\r
381           "type": "list"\r
382         },\r
383         "by_speech_balloon_template": {\r
384           "type": "list"\r
385         },\r
386         "show": {\r
387           "type": "show"\r
388         },\r
389         "count": {\r
390           "type": "count",\r
391           "args": {\r
392             "list_name": "public"\r
393           }\r
394         },\r
395         "count_by_scroll": {\r
396           "type": "count"\r
397         },\r
398         "count_by_sheet": {\r
399           "type": "count"\r
400         },\r
401         "count_by_author": {\r
402           "type": "count"\r
403         },\r
404         "count_by_speech_balloon_template": {\r
405           "type": "count"\r
406         },\r
407         "new": {\r
408           "type": "new"\r
409         },\r
410         "edit": {\r
411           "type": "edit"\r
412         }\r
413       }\r
414     },\r
415     "panel_pictures": {\r
416       "actions": {\r
417         "index": {\r
418           "type": "list",\r
419           "args": {\r
420             "list_name": "public"\r
421           }\r
422         },\r
423         "by_panel": {\r
424           "type": "list"\r
425         },\r
426         "by_author": {\r
427           "type": "list"\r
428         },\r
429         "show": {\r
430           "type": "show"\r
431         },\r
432         "count": {\r
433           "type": "count",\r
434           "args": {\r
435             "list_name": "public"\r
436           }\r
437         },\r
438         "count_by_panel": {\r
439           "type": "count"\r
440         },\r
441         "count_by_author": {\r
442           "type": "count"\r
443         }\r
444       }\r
445     },\r
446     "speech_balloons": {\r
447       "actions": {\r
448         "index": {\r
449           "type": "list",\r
450           "args": {\r
451             "list_name": "public"\r
452           }\r
453         },\r
454         "by_panel": {\r
455           "type": "list"\r
456         },\r
457         "by_author": {\r
458           "type": "list"\r
459         },\r
460         "show": {\r
461           "type": "show"\r
462         },\r
463         "count": {\r
464           "type": "count",\r
465           "args": {\r
466             "list_name": "public"\r
467           }\r
468         },\r
469         "count_by_panel": {\r
470           "type": "count"\r
471         },\r
472         "count_by_author": {\r
473           "type": "count"\r
474         }\r
475       }\r
476     },\r
477     "speeches": {\r
478       "actions": {\r
479         "index": {\r
480           "type": "list",\r
481           "args": {\r
482             "list_name": "public"\r
483           }\r
484         },\r
485         "by_writing_format": {\r
486           "type": "list"\r
487         },\r
488         "show": {\r
489           "type": "show"\r
490         },\r
491         "count": {\r
492           "type": "count",\r
493           "args": {\r
494             "list_name": "public"\r
495           }\r
496         },\r
497         "count_by_writing_format": {\r
498           "type": "count"\r
499         }\r
500       }\r
501     },\r
502     "balloons": {\r
503       "actions": {\r
504         "index": {\r
505           "type": "list",\r
506           "args": {\r
507             "list_name": "public"\r
508           }\r
509         },\r
510         "show": {\r
511           "type": "show"\r
512         },\r
513         "count": {\r
514           "type": "count",\r
515           "args": {\r
516             "list_name": "public"\r
517           }\r
518         }\r
519       }\r
520     },\r
521     "ground_pictures": {\r
522       "actions": {\r
523         "index": {\r
524           "type": "list",\r
525           "args": {\r
526             "list_name": "public"\r
527           }\r
528         },\r
529         "by_panel": {\r
530           "type": "list"\r
531         },\r
532         "by_author": {\r
533           "type": "list"\r
534         },\r
535         "show": {\r
536           "type": "show"\r
537         },\r
538         "count": {\r
539           "type": "count",\r
540           "args": {\r
541             "list_name": "public"\r
542           }\r
543         },\r
544         "count_by_panel": {\r
545           "type": "count"\r
546         },\r
547         "count_by_author": {\r
548           "type": "count"\r
549         }\r
550       }\r
551     },\r
552     "ground_colors": {\r
553       "actions": {\r
554         "index": {\r
555           "type": "list",\r
556           "args": {\r
557             "list_name": "public"\r
558           }\r
559         },\r
560         "by_panel": {\r
561           "type": "list"\r
562         },\r
563         "by_author": {\r
564           "type": "list"\r
565         },\r
566         "show": {\r
567           "type": "show"\r
568         },\r
569         "count": {\r
570           "type": "count",\r
571           "args": {\r
572             "list_name": "public"\r
573           }\r
574         },\r
575         "count_by_panel": {\r
576           "type": "count"\r
577         },\r
578         "count_by_author": {\r
579           "type": "count"\r
580         }\r
581       }\r
582     },\r
583     "original_pictures": {\r
584       "actions": {\r
585         "index": {\r
586           "type": "list",\r
587           "args": {\r
588             "list_name": "private"\r
589           }\r
590         },\r
591         "show": {\r
592           "type": "show"\r
593         },\r
594         "count": {\r
595           "type": "count",\r
596           "args": {\r
597             "list_name": "public"\r
598           }\r
599         }\r
600       }\r
601     },\r
602     "pictures": {\r
603       "actions": {\r
604         "show": {\r
605           "type": "show"\r
606         }\r
607       }\r
608     },\r
609     "resource_pictures": {\r
610       "actions": {\r
611         "index": {\r
612           "type": "list",\r
613           "args": {\r
614             "list_name": "public"\r
615           }\r
616         },\r
617         "by_original_picture": {\r
618           "type": "list"\r
619         },\r
620         "by_license": {\r
621           "type": "list"\r
622         },\r
623         "by_artist": {\r
624           "type": "list"\r
625         },\r
626         "show": {\r
627           "type": "show"\r
628         },\r
629         "count": {\r
630           "type": "count",\r
631           "args": {\r
632             "list_name": "public"\r
633           }\r
634         },\r
635         "count_by_license": {\r
636           "type": "count"\r
637         },\r
638         "count_by_artist": {\r
639           "type": "count"\r
640         }\r
641       }\r
642     },\r
643     "speech_balloon_templates": {\r
644       "actions": {\r
645         "index": {\r
646           "type": "list",\r
647           "args": {\r
648             "list_name": "public"\r
649           }\r
650         },\r
651         "show": {\r
652           "type": "show"\r
653         },\r
654         "count": {\r
655           "type": "count",\r
656           "args": {\r
657             "list_name": "public"\r
658           }\r
659         }\r
660       }\r
661     },\r
662     "writing_formats": {\r
663       "actions": {\r
664         "index": {\r
665           "type": "list",\r
666           "args": {\r
667             "list_name": "public"\r
668           }\r
669         },\r
670         "by_system_picture": {\r
671           "type": "list"\r
672         },\r
673         "show": {\r
674           "type": "show"\r
675         },\r
676         "count": {\r
677           "type": "count",\r
678           "args": {\r
679             "list_name": "public"\r
680           }\r
681         },\r
682         "count_by_system_picture": {\r
683           "type": "count"\r
684         }\r
685       }\r
686     },\r
687     "license_groups": {\r
688       "actions": {\r
689         "index": {\r
690           "type": "list",\r
691           "args": {\r
692             "list_name": "public"\r
693           }\r
694         },\r
695         "show": {\r
696           "type": "show"\r
697         },\r
698         "count": {\r
699           "type": "count",\r
700           "args": {\r
701             "list_name": "public"\r
702           }\r
703         }\r
704       }\r
705     },\r
706     "licenses": {\r
707       "actions": {\r
708         "index": {\r
709           "type": "list",\r
710           "args": {\r
711             "list_name": "public"\r
712           }\r
713         },\r
714         "by_license_group": {\r
715           "type": "list"\r
716         },\r
717         "by_system_picture": {\r
718           "type": "list"\r
719         },\r
720         "show": {\r
721           "type": "show"\r
722         },\r
723         "count": {\r
724           "type": "count",\r
725           "args": {\r
726             "list_name": "public"\r
727           }\r
728         },\r
729         "count_by_license_group": {\r
730           "type": "count"\r
731         },\r
732         "count_by_system_picture": {\r
733           "type": "count"\r
734         }\r
735       }\r
736     },\r
737     "authors": {\r
738       "actions": {\r
739         "index": {\r
740           "type": "list",\r
741           "args": {\r
742             "list_name": "public"\r
743           }\r
744         },\r
745         "scrolls": {\r
746           "type": "list",\r
747           "args": {\r
748             "list_name": "scrolls"\r
749           }\r
750         },\r
751         "comics": {\r
752           "type": "list",\r
753           "args": {\r
754             "list_name": "comics"\r
755           }\r
756         },\r
757         "stories": {\r
758           "type": "list",\r
759           "args": {\r
760             "list_name": "stories"\r
761           }\r
762         },\r
763         "sheets": {\r
764           "type": "list",\r
765           "args": {\r
766             "list_name": "sheets"\r
767           }\r
768         },\r
769         "panels": {\r
770           "type": "list",\r
771           "args": {\r
772             "list_name": "panels"\r
773           }\r
774         },\r
775         "panel_pictures": {\r
776           "type": "list",\r
777           "args": {\r
778             "list_name": "panel_pictures"\r
779           }\r
780         },\r
781         "speech_balloons": {\r
782           "type": "list",\r
783           "args": {\r
784             "list_name": "speech_balloons"\r
785           }\r
786         },\r
787         "ground_pictures": {\r
788           "type": "list",\r
789           "args": {\r
790             "list_name": "ground_pictures"\r
791           }\r
792         },\r
793         "ground_colors": {\r
794           "type": "list",\r
795           "args": {\r
796             "list_name": "ground_colors"\r
797           }\r
798         },\r
799         "show": {\r
800           "type": "show"\r
801         },\r
802         "count": {\r
803           "type": "count",\r
804           "args": {\r
805             "list_name": "public"\r
806           }\r
807         },\r
808         "new": {\r
809           "type": "new"\r
810         },\r
811         "edit": {\r
812           "type": "edit"\r
813         }\r
814       }\r
815     },\r
816     "artists": {\r
817       "actions": {\r
818         "index": {\r
819           "type": "list",\r
820           "args": {\r
821             "list_name": "public"\r
822           }\r
823         },\r
824         "resource_pictures": {\r
825           "type": "list",\r
826           "args": {\r
827             "list_name": "resource_pictures"\r
828           }\r
829         },\r
830         "show": {\r
831           "type": "show"\r
832         },\r
833         "count": {\r
834           "type": "count",\r
835           "args": {\r
836             "list_name": "public"\r
837           }\r
838         },\r
839         "new": {\r
840           "type": "new"\r
841         },\r
842         "edit": {\r
843           "type": "edit"\r
844         }\r
845       }\r
846     },\r
847     "system_pictures": {\r
848       "actions": {\r
849         "index": {\r
850           "type": "list",\r
851           "args": {\r
852             "list_name": "public"\r
853           }\r
854         },\r
855         "show": {\r
856           "type": "show"\r
857         },\r
858         "count": {\r
859           "type": "count",\r
860           "args": {\r
861             "list_name": "public"\r
862           }\r
863         }\r
864       }\r
865     },\r
866     "home": {\r
867       "actions": {\r
868         "scrolls": {\r
869           "type": "list",\r
870           "args": {\r
871             "item_name": "scroll",\r
872             "list_name": "private"\r
873           }\r
874         },\r
875         "scroll_panels": {\r
876           "type": "list",\r
877           "args": {\r
878             "item_name": "scroll_panel",\r
879             "list_name": "private"\r
880           }\r
881         },\r
882         "comics": {\r
883           "type": "list",\r
884           "args": {\r
885             "item_name": "comic",\r
886             "list_name": "private"\r
887           }\r
888         },\r
889         "stories": {\r
890           "type": "list",\r
891           "args": {\r
892             "item_name": "story",\r
893             "list_name": "private"\r
894           }\r
895         },\r
896         "story_sheets": {\r
897           "type": "list",\r
898           "args": {\r
899             "item_name": "story_sheet",\r
900             "list_name": "private"\r
901           }\r
902         },\r
903         "sheets": {\r
904           "type": "list",\r
905           "args": {\r
906             "item_name": "sheet",\r
907             "list_name": "private"\r
908           }\r
909         },\r
910         "sheet_panels": {\r
911           "type": "list",\r
912           "args": {\r
913             "item_name": "sheet_panel",\r
914             "list_name": "private"\r
915           }\r
916         },\r
917         "panels": {\r
918           "type": "list",\r
919           "args": {\r
920             "item_name": "panel",\r
921             "list_name": "private"\r
922           }\r
923         },\r
924         "panel_pictures": {\r
925           "type": "list",\r
926           "args": {\r
927             "item_name": "panel_picture",\r
928             "list_name": "private"\r
929           }\r
930         },\r
931         "speech_balloons": {\r
932           "type": "list",\r
933           "args": {\r
934             "item_name": "speech_balloon",\r
935             "list_name": "private"\r
936           }\r
937         },\r
938         "speeches": {\r
939           "type": "list",\r
940           "args": {\r
941             "item_name": "speech",\r
942             "list_name": "private"\r
943           }\r
944         },\r
945         "balloons": {\r
946           "type": "list",\r
947           "args": {\r
948             "item_name": "balloon",\r
949             "list_name": "private"\r
950           }\r
951         },\r
952         "ground_pictures": {\r
953           "type": "list",\r
954           "args": {\r
955             "item_name": "ground_picture",\r
956             "list_name": "private"\r
957           }\r
958         },\r
959         "ground_colors": {\r
960           "type": "list",\r
961           "args": {\r
962             "item_name": "ground_color",\r
963             "list_name": "private"\r
964           }\r
965         },\r
966         "original_pictures": {\r
967           "type": "list",\r
968           "args": {\r
969             "item_name": "original_picture",\r
970             "list_name": "private"\r
971           }\r
972         },\r
973         "resource_pictures": {\r
974           "type": "list",\r
975           "args": {\r
976             "item_name": "resource_picture",\r
977             "list_name": "private"\r
978           }\r
979         }\r
980       }\r
981     }\r
982   },\r
983   "models": {\r
984     "scroll": {\r
985       "associations": {\r
986         "belongs_to": {\r
987           "author": {}\r
988         },\r
989         "has_many": {\r
990           "scroll_panels": {},\r
991           "panels": {\r
992             "through": "scroll_panel"\r
993           }\r
994         }\r
995       },\r
996       "attributes": {\r
997         "title": {\r
998           "type": "text",\r
999           "rules": {\r
1000             "required": true\r
1001           }\r
1002         },\r
1003         "description": {\r
1004           "type": "text",\r
1005           "rules": {}\r
1006         },\r
1007         "visible": {\r
1008           "type": "number",\r
1009           "rules": {\r
1010             "required": true,\r
1011             "number": true\r
1012           },\r
1013           "source": {\r
1014             "type": "magic_number",\r
1015             "args": {\r
1016               "select_item_name": "scroll_visible_items"\r
1017             }\r
1018           }\r
1019         },\r
1020         "author_id": {\r
1021           "type": "number",\r
1022           "rules": {\r
1023             "required": true,\r
1024             "number": true\r
1025           }\r
1026         }\r
1027       },\r
1028       "tree": {\r
1029         "scroll_owner": "author"\r
1030       }\r
1031     },\r
1032     "scroll_panel": {\r
1033       "associations": {\r
1034         "belongs_to": {\r
1035           "panel": {},\r
1036           "scroll": {}\r
1037         },\r
1038         "has_many": {}\r
1039       },\r
1040       "attributes": {\r
1041         "scroll_id": {\r
1042           "type": "number",\r
1043           "rules": {\r
1044             "required": true,\r
1045             "number": true\r
1046           }\r
1047         },\r
1048         "panel_id": {\r
1049           "type": "number",\r
1050           "rules": {\r
1051             "required": true,\r
1052             "number": true\r
1053           }\r
1054         },\r
1055         "t": {\r
1056           "type": "number",\r
1057           "rules": {\r
1058             "required": true,\r
1059             "number": true,\r
1060             "min": 0\r
1061           }\r
1062         },\r
1063         "author_id": {\r
1064           "type": "number",\r
1065           "rules": {\r
1066             "required": true,\r
1067             "number": true\r
1068           }\r
1069         }\r
1070       },\r
1071       "tree": {\r
1072         "owner": "scroll",\r
1073         "scroll_owner": "scroll"\r
1074       }\r
1075     },\r
1076     "comic": {\r
1077       "associations": {\r
1078         "belongs_to": {\r
1079           "author": {}\r
1080         },\r
1081         "has_many": {\r
1082           "stories": {}\r
1083         }\r
1084       },\r
1085       "attributes": {\r
1086         "title": {\r
1087           "type": "text",\r
1088           "rules": {\r
1089             "required": true\r
1090           }\r
1091         },\r
1092         "description": {\r
1093           "type": "text",\r
1094           "rules": {}\r
1095         },\r
1096         "visible": {\r
1097           "type": "number",\r
1098           "rules": {\r
1099             "required": true,\r
1100             "number": true\r
1101           },\r
1102           "source": {\r
1103             "type": "magic_number",\r
1104             "args": {\r
1105               "select_item_name": "comic_visible_items"\r
1106             }\r
1107           }\r
1108         },\r
1109         "author_id": {\r
1110           "type": "number",\r
1111           "rules": {\r
1112             "required": true,\r
1113             "number": true\r
1114           }\r
1115         }\r
1116       },\r
1117       "tree": {\r
1118         "comic_owner": "author"\r
1119       }\r
1120     },\r
1121     "story": {\r
1122       "associations": {\r
1123         "belongs_to": {\r
1124           "comic": {}\r
1125         },\r
1126         "has_many": {\r
1127           "story_sheets": {},\r
1128           "sheets": {\r
1129             "through": "story_sheets"\r
1130           }\r
1131         }\r
1132       },\r
1133       "attributes": {\r
1134         "comic_id": {\r
1135           "type": "number",\r
1136           "rules": {\r
1137             "number": true\r
1138           }\r
1139         },\r
1140         "title": {\r
1141           "type": "text",\r
1142           "rules": {}\r
1143         },\r
1144         "description": {\r
1145           "type": "text",\r
1146           "rules": {}\r
1147         },\r
1148         "t": {\r
1149           "type": "number",\r
1150           "rules": {\r
1151             "required": true,\r
1152             "number": true,\r
1153             "min": 0\r
1154           }\r
1155         },\r
1156         "visible": {\r
1157           "type": "number",\r
1158           "rules": {\r
1159             "required": true,\r
1160             "number": true\r
1161           },\r
1162           "source": {\r
1163             "type": "magic_number",\r
1164             "args": {\r
1165               "select_item_name": "story_visible_items"\r
1166             }\r
1167           }\r
1168         }\r
1169       },\r
1170       "tree": {\r
1171         "owner": "comic",\r
1172         "comic_owner": "comic"\r
1173       }\r
1174     },\r
1175     "story_sheet": {\r
1176       "associations": {\r
1177         "belongs_to": {\r
1178           "story": {},\r
1179           "sheet": {}\r
1180         },\r
1181         "has_many": {}\r
1182       },\r
1183       "attributes": {\r
1184         "story_id": {\r
1185           "type": "number",\r
1186           "rules": {\r
1187             "number": true\r
1188           }\r
1189         },\r
1190         "sheet_id": {\r
1191           "type": "number",\r
1192           "rules": {\r
1193             "number": true\r
1194           }\r
1195         },\r
1196         "t": {\r
1197           "type": "number",\r
1198           "rules": {\r
1199             "required": true,\r
1200             "number": true,\r
1201             "min": 0\r
1202           }\r
1203         },\r
1204         "author_id": {\r
1205           "type": "number",\r
1206           "rules": {\r
1207             "required": true,\r
1208             "number": true\r
1209           }\r
1210         }\r
1211       },\r
1212       "tree": {\r
1213         "owner": "story",\r
1214         "comic_owner": "story"\r
1215       }\r
1216     },\r
1217     "sheet": {\r
1218       "associations": {\r
1219         "belongs_to": {\r
1220           "author": {}\r
1221         },\r
1222         "has_many": {\r
1223           "story_sheets": {},\r
1224           "stories": {\r
1225             "through": "story_sheets"\r
1226           },\r
1227           "sheet_panels": {},\r
1228           "panels": {\r
1229             "through": "sheet_panels"\r
1230           }\r
1231         }\r
1232       },\r
1233       "attributes": {\r
1234         "caption": {\r
1235           "type": "text",\r
1236           "rules": {}\r
1237         },\r
1238         "width": {\r
1239           "type": "number",\r
1240           "rules": {\r
1241             "required": true,\r
1242             "number": true\r
1243           }\r
1244         },\r
1245         "height": {\r
1246           "type": "number",\r
1247           "rules": {\r
1248             "required": true,\r
1249             "number": true\r
1250           }\r
1251         },\r
1252         "visible": {\r
1253           "type": "number",\r
1254           "rules": {\r
1255             "required": true,\r
1256             "number": true\r
1257           },\r
1258           "source": {\r
1259             "type": "magic_number",\r
1260             "args": {\r
1261               "select_item_name": "sheet_visible_items"\r
1262             }\r
1263           }\r
1264         },\r
1265         "author_id": {\r
1266           "type": "number",\r
1267           "rules": {\r
1268             "required": true,\r
1269             "number": true\r
1270           }\r
1271         }\r
1272       },\r
1273       "tree": {\r
1274         "sheet_owner": "author"\r
1275       }\r
1276     },\r
1277     "sheet_panel": {\r
1278       "associations": {\r
1279         "belongs_to": {\r
1280           "sheet": {},\r
1281           "panel": {}\r
1282         },\r
1283         "has_many": {}\r
1284       },\r
1285       "attributes": {\r
1286         "sheet_id": {\r
1287           "type": "number",\r
1288           "rules": {\r
1289             "number": true\r
1290           }\r
1291         },\r
1292         "panel_id": {\r
1293           "type": "number",\r
1294           "rules": {\r
1295             "number": true\r
1296           }\r
1297         },\r
1298         "x": {\r
1299           "type": "number",\r
1300           "rules": {\r
1301             "required": true,\r
1302             "number": true\r
1303           }\r
1304         },\r
1305         "y": {\r
1306           "type": "number",\r
1307           "rules": {\r
1308             "required": true,\r
1309             "number": true\r
1310           }\r
1311         },\r
1312         "z": {\r
1313           "type": "number",\r
1314           "rules": {\r
1315             "required": true,\r
1316             "number": true,\r
1317             "min": 1\r
1318           }\r
1319         },\r
1320         "t": {\r
1321           "type": "number",\r
1322           "rules": {\r
1323             "required": true,\r
1324             "number": true,\r
1325             "min": 0\r
1326           }\r
1327         },\r
1328         "author_id": {\r
1329           "type": "number",\r
1330           "rules": {\r
1331             "number": true\r
1332           }\r
1333         }\r
1334       },\r
1335       "tree": {\r
1336         "owner": "sheet",\r
1337         "sheet_owner": "sheet"\r
1338       }\r
1339     },\r
1340     "panel": {\r
1341       "associations": {\r
1342         "belongs_to": {\r
1343           "author": {}\r
1344         },\r
1345         "has_many": {\r
1346           "scroll_panels": {},\r
1347           "scrolls": {\r
1348             "through": "scroll_panels"\r
1349           },\r
1350           "sheet_panels": {},\r
1351           "sheets": {\r
1352             "through": "sheet_panels"\r
1353           },\r
1354           "panel_pictures": {},\r
1355           "speech_balloons": {},\r
1356           "ground_pictures": {},\r
1357           "ground_colors": {}\r
1358         }\r
1359       },\r
1360       "attributes": {\r
1361         "width": {\r
1362           "type": "number",\r
1363           "rules": {\r
1364             "required": true,\r
1365             "number": true,\r
1366             "min": 1\r
1367           }\r
1368         },\r
1369         "height": {\r
1370           "type": "number",\r
1371           "rules": {\r
1372             "required": true,\r
1373             "number": true,\r
1374             "min": 1\r
1375           }\r
1376         },\r
1377         "border": {\r
1378           "type": "number",\r
1379           "rules": {\r
1380             "required": true,\r
1381             "number": true,\r
1382             "min": 0\r
1383           }\r
1384         },\r
1385         "caption": {\r
1386           "type": "text",\r
1387           "rules": {}\r
1388         },\r
1389         "publish": {\r
1390           "type": "number",\r
1391           "rules": {\r
1392             "required": true,\r
1393             "number": true\r
1394           },\r
1395           "source": {\r
1396             "type": "magic_number",\r
1397             "args": {\r
1398               "select_item_name": "panel_visible_items"\r
1399             }\r
1400           }\r
1401         },\r
1402         "author_id": {\r
1403           "type": "number",\r
1404           "rules": {\r
1405             "required": true,\r
1406             "number": true\r
1407           }\r
1408         }\r
1409       },\r
1410       "tree": {\r
1411         "panel_owner": "author"\r
1412       }\r
1413     },\r
1414     "panel_picture": {\r
1415       "associations": {\r
1416         "belongs_to": {\r
1417           "panel": {}\r
1418         },\r
1419         "has_many": {}\r
1420       },\r
1421       "attributes": {\r
1422         "panel_id": {\r
1423           "type": "number",\r
1424           "rules": {\r
1425             "number": true\r
1426           }\r
1427         },\r
1428         "picture_id": {\r
1429           "type": "number",\r
1430           "rules": {\r
1431             "required": true,\r
1432             "number": true\r
1433           }\r
1434         },\r
1435         "caption": {\r
1436           "type": "text",\r
1437           "rules": {}\r
1438         },\r
1439         "x": {\r
1440           "type": "number",\r
1441           "rules": {\r
1442             "required": true,\r
1443             "number": true\r
1444           }\r
1445         },\r
1446         "y": {\r
1447           "type": "number",\r
1448           "rules": {\r
1449             "required": true,\r
1450             "number": true\r
1451           }\r
1452         },\r
1453         "width": {\r
1454           "type": "number",\r
1455           "rules": {\r
1456             "required": true,\r
1457             "number": true\r
1458           }\r
1459         },\r
1460         "height": {\r
1461           "type": "number",\r
1462           "rules": {\r
1463             "required": true,\r
1464             "number": true\r
1465           }\r
1466         },\r
1467         "link": {\r
1468           "type": "text",\r
1469           "rules": {\r
1470             "url": true\r
1471           }\r
1472         },\r
1473         "z": {\r
1474           "type": "number",\r
1475           "rules": {\r
1476             "required": true,\r
1477             "number": true,\r
1478             "min": 1\r
1479           }\r
1480         },\r
1481         "t": {\r
1482           "type": "number",\r
1483           "rules": {\r
1484             "required": true,\r
1485             "number": true,\r
1486             "min": 0\r
1487           }\r
1488         }\r
1489       },\r
1490       "tree": {\r
1491         "owner": "panel",\r
1492         "panel_owner": "panel",\r
1493         "panel": "panel"\r
1494       }\r
1495     },\r
1496     "speech_balloon": {\r
1497       "extend_column_name": "classname",\r
1498       "associations": {\r
1499         "belongs_to": {\r
1500           "panel": {}\r
1501         },\r
1502         "has_many": {},\r
1503         "has_one": {\r
1504           "balloon": {},\r
1505           "speech": {}\r
1506         }\r
1507       },\r
1508       "attributes": {\r
1509         "panel_id": {\r
1510           "type": "number",\r
1511           "rules": {\r
1512             "number": true\r
1513           }\r
1514         },\r
1515         "speech_balloon_template_id": {\r
1516           "type": "number",\r
1517           "rules": {\r
1518             "required": true,\r
1519             "number": true\r
1520           }\r
1521         },\r
1522         "classname": {\r
1523           "type": "text",\r
1524           "rules": {\r
1525             "required": true\r
1526           }\r
1527         },\r
1528         "z": {\r
1529           "type": "number",\r
1530           "rules": {\r
1531             "required": true,\r
1532             "number": true,\r
1533             "min": 1\r
1534           }\r
1535         },\r
1536         "t": {\r
1537           "type": "number",\r
1538           "rules": {\r
1539             "required": true,\r
1540             "number": true,\r
1541             "min": 0\r
1542           }\r
1543         },\r
1544         "settings": {\r
1545           "type": "text",\r
1546           "rules": {}\r
1547         },\r
1548         "caption": {\r
1549           "type": "text",\r
1550           "rules": {}\r
1551         }\r
1552       },\r
1553       "tree": {\r
1554         "owner": "panel",\r
1555         "panel_owner": "panel",\r
1556         "panel": "panel"\r
1557       }\r
1558     },\r
1559     "balloon": {\r
1560       "associations": {\r
1561         "belongs_to": {\r
1562           "speech_balloon": {},\r
1563           "system_picture": {}\r
1564         },\r
1565         "has_many": {}\r
1566       },\r
1567       "attributes": {\r
1568         "speech_balloon_id": {\r
1569           "type": "number",\r
1570           "rules": {\r
1571             "number": true\r
1572           }\r
1573         },\r
1574         "system_picture_id": {\r
1575           "type": "number",\r
1576           "rules": {\r
1577             "required": true,\r
1578             "number": true\r
1579           }\r
1580         },\r
1581         "x": {\r
1582           "type": "number",\r
1583           "rules": {\r
1584             "required": true,\r
1585             "number": true\r
1586           }\r
1587         },\r
1588         "y": {\r
1589           "type": "number",\r
1590           "rules": {\r
1591             "required": true,\r
1592             "number": true\r
1593           }\r
1594         },\r
1595         "width": {\r
1596           "type": "number",\r
1597           "rules": {\r
1598             "required": true,\r
1599             "number": true,\r
1600             "min": 1\r
1601           }\r
1602         },\r
1603         "height": {\r
1604           "type": "number",\r
1605           "rules": {\r
1606             "required": true,\r
1607             "number": true,\r
1608             "min": 1\r
1609           }\r
1610         },\r
1611         "r": {\r
1612           "type": "number",\r
1613           "rules": {\r
1614             "required": true,\r
1615             "number": true\r
1616           }\r
1617         },\r
1618         "settings": {\r
1619           "type": "text",\r
1620           "rules": {}\r
1621         }\r
1622       },\r
1623       "tree": {\r
1624         "owner": "speech_balloon",\r
1625         "panel_owner": "speech_balloon",\r
1626         "panel": "speech_balloon"\r
1627       }\r
1628     },\r
1629     "speech": {\r
1630       "associations": {\r
1631         "belongs_to": {\r
1632           "speech_balloon": {},\r
1633           "writing_format": {}\r
1634         },\r
1635         "has_many": {}\r
1636       },\r
1637       "attributes": {\r
1638         "speech_balloon_id": {\r
1639           "type": "number",\r
1640           "rules": {\r
1641             "number": true\r
1642           }\r
1643         },\r
1644         "writing_format_id": {\r
1645           "type": "number",\r
1646           "source": {\r
1647             "type": "model"\r
1648           },\r
1649           "rules": {\r
1650             "required": true,\r
1651             "number": true\r
1652           }\r
1653         },\r
1654         "content": {\r
1655           "type": "text",\r
1656           "rules": {}\r
1657         },\r
1658         "font_size": {\r
1659           "type": "float",\r
1660           "rules": {\r
1661             "required": true,\r
1662             "number": true,\r
1663             "min": 0\r
1664           },\r
1665           "source": {\r
1666             "type": "magic_number",\r
1667             "args": {\r
1668               "select_item_name": "speech_font_size_items"\r
1669             }\r
1670           }\r
1671         },\r
1672         "text_align": {\r
1673           "type": "number",\r
1674           "rules": {\r
1675             "required": true,\r
1676             "number": true,\r
1677             "range": [\r
1678               0,\r
1679               3\r
1680             ]\r
1681           },\r
1682           "source": {\r
1683             "type": "magic_number",\r
1684             "args": {\r
1685               "select_item_name": "speech_text_align_items"\r
1686             }\r
1687           }\r
1688         },\r
1689         "fore_color": {\r
1690           "type": "number",\r
1691           "rules": {\r
1692             "required": true,\r
1693             "number": true,\r
1694             "range": [\r
1695               0,\r
1696               16777215\r
1697             ]\r
1698           }\r
1699         },\r
1700         "x": {\r
1701           "type": "number",\r
1702           "rules": {\r
1703             "required": true,\r
1704             "number": true\r
1705           }\r
1706         },\r
1707         "y": {\r
1708           "type": "number",\r
1709           "rules": {\r
1710             "required": true,\r
1711             "number": true\r
1712           }\r
1713         },\r
1714         "width": {\r
1715           "type": "number",\r
1716           "rules": {\r
1717             "required": true,\r
1718             "number": true,\r
1719             "min": 1\r
1720           }\r
1721         },\r
1722         "height": {\r
1723           "type": "number",\r
1724           "rules": {\r
1725             "required": true,\r
1726             "number": true,\r
1727             "min": 1\r
1728           }\r
1729         },\r
1730         "quotes": {\r
1731           "type": "text",\r
1732           "rules": {}\r
1733         },\r
1734         "settings": {\r
1735           "type": "text",\r
1736           "rules": {}\r
1737         }\r
1738       },\r
1739       "tree": {\r
1740         "owner": "speech_balloon",\r
1741         "panel_owner": "speech_balloon",\r
1742         "panel": "speech_balloon"\r
1743       }\r
1744     },\r
1745     "ground_picture": {\r
1746       "associations": {\r
1747         "belongs_to": {\r
1748           "panel": {}\r
1749         },\r
1750         "has_many": {}\r
1751       },\r
1752       "attributes": {\r
1753         "panel_id": {\r
1754           "type": "number",\r
1755           "rules": {\r
1756             "number": true\r
1757           }\r
1758         },\r
1759         "picture_id": {\r
1760           "type": "number",\r
1761           "rules": {\r
1762             "required": true,\r
1763             "number": true\r
1764           }\r
1765         },\r
1766         "caption": {\r
1767           "type": "text",\r
1768           "rules": {}\r
1769         },\r
1770         "repeat": {\r
1771           "type": "number",\r
1772           "rules": {\r
1773             "required": true,\r
1774             "number": true,\r
1775             "range": [\r
1776               0,\r
1777               3\r
1778             ]\r
1779           },\r
1780           "source": {\r
1781             "type": "magic_number",\r
1782             "args": {\r
1783               "select_item_name": "ground_picture_repeat_items"\r
1784             }\r
1785           }\r
1786         },\r
1787         "x": {\r
1788           "type": "number",\r
1789           "rules": {\r
1790             "required": true,\r
1791             "number": true\r
1792           }\r
1793         },\r
1794         "y": {\r
1795           "type": "number",\r
1796           "rules": {\r
1797             "required": true,\r
1798             "number": true\r
1799           }\r
1800         },\r
1801         "z": {\r
1802           "type": "number",\r
1803           "rules": {\r
1804             "required": true,\r
1805             "number": true,\r
1806             "min": 1\r
1807           }\r
1808         },\r
1809         "t": {\r
1810           "type": "number",\r
1811           "rules": {\r
1812             "required": true,\r
1813             "number": true,\r
1814             "min": 0\r
1815           }\r
1816         }\r
1817       },\r
1818       "tree": {\r
1819         "owner": "panel",\r
1820         "panel_owner": "panel",\r
1821         "panel": "panel"\r
1822       }\r
1823     },\r
1824     "ground_color": {\r
1825       "associations": {\r
1826         "belongs_to": {\r
1827           "panel": {}\r
1828         },\r
1829         "has_many": {}\r
1830       },\r
1831       "attributes": {\r
1832         "panel_id": {\r
1833           "type": "number",\r
1834           "rules": {\r
1835             "number": true\r
1836           }\r
1837         },\r
1838         "caption": {\r
1839           "type": "text",\r
1840           "rules": {}\r
1841         },\r
1842         "code": {\r
1843           "type": "number",\r
1844           "rules": {\r
1845             "required": true,\r
1846             "number": true,\r
1847             "range": [\r
1848               0,\r
1849               16777215\r
1850             ]\r
1851           }\r
1852         },\r
1853         "orientation": {\r
1854           "type": "number",\r
1855           "rules": {\r
1856             "required": true,\r
1857             "number": true,\r
1858             "range": [\r
1859               0,\r
1860               1\r
1861             ]\r
1862           },\r
1863           "source": {\r
1864             "type": "magic_number",\r
1865             "args": {\r
1866               "select_item_name": "ground_color_orientation_items"\r
1867             }\r
1868           }\r
1869         },\r
1870         "xy": {\r
1871           "type": "number",\r
1872           "rules": {\r
1873             "number": true\r
1874           }\r
1875         },\r
1876         "wh": {\r
1877           "type": "number",\r
1878           "rules": {\r
1879             "number": true\r
1880           }\r
1881         },\r
1882         "z": {\r
1883           "type": "number",\r
1884           "rules": {\r
1885             "required": true,\r
1886             "number": true,\r
1887             "min": 1\r
1888           }\r
1889         },\r
1890         "t": {\r
1891           "type": "number",\r
1892           "rules": {\r
1893             "required": true,\r
1894             "number": true,\r
1895             "min": 0\r
1896           }\r
1897         }\r
1898       },\r
1899       "tree": {\r
1900         "owner": "panel",\r
1901         "panel_owner": "panel",\r
1902         "panel": "panel"\r
1903       }\r
1904     },\r
1905     "original_picture": {\r
1906       "associations": {\r
1907         "belongs_to": {\r
1908           "artist": {}\r
1909         },\r
1910         "has_many": {\r
1911           "pictures": {}\r
1912         },\r
1913         "has_one": {\r
1914           "resource_picture": {}\r
1915         }\r
1916       },\r
1917       "attributes": {\r
1918         "ext": {\r
1919           "type": "text",\r
1920           "rules": {\r
1921             "required": true\r
1922           }\r
1923         },\r
1924         "width": {\r
1925           "type": "number",\r
1926           "rules": {\r
1927             "required": true,\r
1928             "number": true\r
1929           }\r
1930         },\r
1931         "height": {\r
1932           "type": "number",\r
1933           "rules": {\r
1934             "required": true,\r
1935             "number": true\r
1936           }\r
1937         },\r
1938         "filesize": {\r
1939           "type": "number",\r
1940           "rules": {\r
1941             "required": true,\r
1942             "number": true\r
1943           }\r
1944         },\r
1945         "artist_id": {\r
1946           "type": "number",\r
1947           "rules": {\r
1948             "required": true,\r
1949             "number": true\r
1950           }\r
1951         },\r
1952         "md5": {\r
1953           "type": "text",\r
1954           "rules": {\r
1955             "required": true\r
1956           }\r
1957         },\r
1958         "uploaded_at": {\r
1959           "type": "datetime"\r
1960         },\r
1961         "published_at": {\r
1962           "type": "datetime"\r
1963         },\r
1964         "stopped_at": {\r
1965           "type": "datetime"\r
1966         }\r
1967       }\r
1968     },\r
1969     "picture": {\r
1970       "associations": {\r
1971         "belongs_to": {\r
1972           "license": {},\r
1973           "artist": {}\r
1974         },\r
1975         "has_many": {},\r
1976         "has_one": {}\r
1977       },\r
1978       "attributes": {\r
1979         "original_picture_id": {\r
1980           "type": "number",\r
1981           "rules": {\r
1982             "required": true,\r
1983             "number": true\r
1984           }\r
1985         },\r
1986         "revision": {\r
1987           "type": "number",\r
1988           "rules": {\r
1989             "required": true,\r
1990             "number": true\r
1991           }\r
1992         },\r
1993         "ext": {\r
1994           "type": "text",\r
1995           "rules": {\r
1996             "required": true\r
1997           }\r
1998         },\r
1999         "width": {\r
2000           "type": "number",\r
2001           "rules": {\r
2002             "required": true,\r
2003             "number": true\r
2004           }\r
2005         },\r
2006         "height": {\r
2007           "type": "number",\r
2008           "rules": {\r
2009             "required": true,\r
2010             "number": true\r
2011           }\r
2012         },\r
2013         "filesize": {\r
2014           "type": "number",\r
2015           "rules": {\r
2016             "required": true,\r
2017             "number": true\r
2018           }\r
2019         },\r
2020         "artist_id": {\r
2021           "type": "number",\r
2022           "rules": {\r
2023             "required": true,\r
2024             "number": true\r
2025           }\r
2026         },\r
2027         "license_id": {\r
2028           "type": "number",\r
2029           "rules": {\r
2030             "required": true,\r
2031             "number": true\r
2032           }\r
2033         },\r
2034         "md5": {\r
2035           "type": "text",\r
2036           "rules": {\r
2037             "required": true\r
2038           }\r
2039         },\r
2040         "artist_name": {\r
2041           "type": "text",\r
2042           "rules": {\r
2043             "required": true\r
2044           }\r
2045         },\r
2046         "credit": {\r
2047           "type": "text",\r
2048           "rules": {}\r
2049         },\r
2050         "settings": {\r
2051           "type": "text",\r
2052           "rules": {}\r
2053         },\r
2054         "classname": {\r
2055           "type": "text",\r
2056           "rules": {\r
2057             "required": true\r
2058           }\r
2059         }\r
2060       }\r
2061     },\r
2062     "resource_picture": {\r
2063       "associations": {\r
2064         "belongs_to": {\r
2065           "original_picture": {},\r
2066           "license": {},\r
2067           "artist": {}\r
2068         },\r
2069         "has_many": {},\r
2070         "has_one": {}\r
2071       },\r
2072       "attributes": {\r
2073         "original_picture_id": {\r
2074           "type": "number",\r
2075           "rules": {\r
2076             "required": true,\r
2077             "number": true\r
2078           }\r
2079         },\r
2080         "revision": {\r
2081           "type": "number",\r
2082           "rules": {\r
2083             "required": true,\r
2084             "number": true\r
2085           }\r
2086         },\r
2087         "ext": {\r
2088           "type": "text",\r
2089           "rules": {\r
2090             "required": true\r
2091           }\r
2092         },\r
2093         "width": {\r
2094           "type": "number",\r
2095           "rules": {\r
2096             "required": true,\r
2097             "number": true\r
2098           }\r
2099         },\r
2100         "height": {\r
2101           "type": "number",\r
2102           "rules": {\r
2103             "required": true,\r
2104             "number": true\r
2105           }\r
2106         },\r
2107         "filesize": {\r
2108           "type": "number",\r
2109           "rules": {\r
2110             "required": true,\r
2111             "number": true\r
2112           }\r
2113         },\r
2114         "artist_id": {\r
2115           "type": "number",\r
2116           "rules": {\r
2117             "required": true,\r
2118             "number": true\r
2119           }\r
2120         },\r
2121         "license_id": {\r
2122           "type": "number",\r
2123           "rules": {\r
2124             "required": true,\r
2125             "number": true\r
2126           }\r
2127         },\r
2128         "md5": {\r
2129           "type": "text",\r
2130           "rules": {\r
2131             "required": true\r
2132           }\r
2133         },\r
2134         "artist_name": {\r
2135           "type": "text",\r
2136           "rules": {\r
2137             "required": true\r
2138           }\r
2139         },\r
2140         "credit": {\r
2141           "type": "text",\r
2142           "rules": {}\r
2143         },\r
2144         "settings": {\r
2145           "type": "text",\r
2146           "rules": {}\r
2147         },\r
2148         "picture_id": {\r
2149           "type": "number",\r
2150           "rules": {\r
2151             "required": true,\r
2152             "number": true\r
2153           }\r
2154         },\r
2155         "classname": {\r
2156           "type": "text",\r
2157           "rules": {\r
2158             "required": true\r
2159           }\r
2160         }\r
2161       }\r
2162     },\r
2163     "speech_balloon_template": {\r
2164       "extend_column_name": "classname",\r
2165       "associations": {\r
2166         "belongs_to": {\r
2167           "system_picture": {}\r
2168         },\r
2169         "has_many": {\r
2170           "speech_balloons": {},\r
2171           "panels": {\r
2172             "through": "speech_balloons"\r
2173           }\r
2174         },\r
2175         "has_one": {}\r
2176       },\r
2177       "attributes": {\r
2178         "name": {\r
2179           "type": "text",\r
2180           "rules": {\r
2181             "required": true\r
2182           }\r
2183         },\r
2184         "classname": {\r
2185           "type": "text",\r
2186           "rules": {\r
2187             "required": true\r
2188           }\r
2189         },\r
2190         "caption": {\r
2191           "type": "text",\r
2192           "rules": {\r
2193             "required": true\r
2194           }\r
2195         },\r
2196         "t": {\r
2197           "type": "number",\r
2198           "rules": {\r
2199             "required": true,\r
2200             "number": true,\r
2201             "min": 0\r
2202           }\r
2203         },\r
2204         "system_picture_id": {\r
2205           "type": "number",\r
2206           "rules": {\r
2207             "required": true,\r
2208             "number": true\r
2209           }\r
2210         },\r
2211         "settings": {\r
2212           "type": "text",\r
2213           "rules": {\r
2214             "required": true\r
2215           }\r
2216         }\r
2217       }\r
2218     },\r
2219     "writing_format": {\r
2220       "extend_column_name": "classname",\r
2221       "associations": {\r
2222         "belongs_to": {\r
2223           "system_picture": {}\r
2224         },\r
2225         "has_many": {\r
2226           "speeches": {}\r
2227         },\r
2228         "has_one": {}\r
2229       },\r
2230       "attributes": {\r
2231         "name": {\r
2232           "type": "text",\r
2233           "rules": {\r
2234             "required": true\r
2235           }\r
2236         },\r
2237         "classname": {\r
2238           "type": "text",\r
2239           "rules": {\r
2240             "required": true\r
2241           }\r
2242         },\r
2243         "caption": {\r
2244           "type": "text",\r
2245           "rules": {\r
2246             "required": true\r
2247           }\r
2248         },\r
2249         "system_picture_id": {\r
2250           "type": "number",\r
2251           "rules": {\r
2252             "required": true,\r
2253             "number": true\r
2254           }\r
2255         },\r
2256         "settings": {\r
2257           "type": "text",\r
2258           "rules": {\r
2259             "required": true\r
2260           }\r
2261         }\r
2262       }\r
2263     },\r
2264     "license_group": {\r
2265       "extend_column_name": "classname",\r
2266       "associations": {\r
2267         "belongs_to": {},\r
2268         "has_many": {\r
2269           "licenses": {}\r
2270         },\r
2271         "has_one": {}\r
2272       },\r
2273       "attributes": {\r
2274         "name": {\r
2275           "type": "text",\r
2276           "rules": {\r
2277             "required": true\r
2278           }\r
2279         },\r
2280         "classname": {\r
2281           "type": "text",\r
2282           "rules": {\r
2283             "required": true\r
2284           }\r
2285         },\r
2286         "caption": {\r
2287           "type": "text",\r
2288           "rules": {\r
2289             "required": true\r
2290           }\r
2291         },\r
2292         "url": {\r
2293           "type": "text",\r
2294           "rules": {\r
2295             "required": true\r
2296           }\r
2297         }\r
2298       }\r
2299     },\r
2300     "license": {\r
2301       "associations": {\r
2302         "belongs_to": {\r
2303           "license_group": {},\r
2304           "system_picture": {}\r
2305         },\r
2306         "has_many": {\r
2307           "resource_pictures": {}\r
2308         },\r
2309         "has_one": {}\r
2310       },\r
2311       "attributes": {\r
2312         "license_group_id": {\r
2313           "type": "number",\r
2314           "rules": {\r
2315             "number": true\r
2316           }\r
2317         },\r
2318         "name": {\r
2319           "type": "text",\r
2320           "rules": {\r
2321             "required": true\r
2322           }\r
2323         },\r
2324         "caption": {\r
2325           "type": "text",\r
2326           "rules": {\r
2327             "required": true\r
2328           }\r
2329         },\r
2330         "system_picture_id": {\r
2331           "type": "number",\r
2332           "rules": {\r
2333             "required": true,\r
2334             "number": true\r
2335           }\r
2336         },\r
2337         "url": {\r
2338           "type": "text",\r
2339           "rules": {\r
2340             "required": true\r
2341           }\r
2342         },\r
2343         "settings": {\r
2344           "type": "text",\r
2345           "rules": {}\r
2346         },\r
2347         "credit_pictures": {\r
2348           "type": "text",\r
2349           "rules": {}\r
2350         }\r
2351       }\r
2352     },\r
2353     "author": {\r
2354       "associations": {\r
2355         "belongs_to": {},\r
2356         "has_many": {\r
2357           "scrolls": {},\r
2358           "comics": {},\r
2359           "stories": {},\r
2360           "sheets": {},\r
2361           "panels": {}\r
2362         },\r
2363         "has_one": {}\r
2364       },\r
2365       "attributes": {\r
2366         "name": {\r
2367           "type": "text",\r
2368           "rules": {\r
2369             "required": true\r
2370           }\r
2371         },\r
2372         "user_id": {\r
2373           "type": "number",\r
2374           "rules": {\r
2375             "required": true,\r
2376             "number": true\r
2377           }\r
2378         }\r
2379       }\r
2380     },\r
2381     "artist": {\r
2382       "associations": {\r
2383         "belongs_to": {},\r
2384         "has_many": {\r
2385           "resource_pictures": {}\r
2386         },\r
2387         "has_one": {}\r
2388       },\r
2389       "attributes": {\r
2390         "name": {\r
2391           "type": "text",\r
2392           "rules": {\r
2393             "required": true\r
2394           }\r
2395         },\r
2396         "author_id": {\r
2397           "type": "number",\r
2398           "rules": {\r
2399             "required": true,\r
2400             "number": true\r
2401           }\r
2402         }\r
2403       }\r
2404     },\r
2405     "system_picture": {\r
2406       "associations": {\r
2407         "belongs_to": {},\r
2408         "has_many": {\r
2409           "balloons": {},\r
2410           "speech_balloon_templates": {},\r
2411           "licenses": {}\r
2412         },\r
2413         "has_one": {}\r
2414       },\r
2415       "attributes": {\r
2416         "ext": {\r
2417           "type": "text",\r
2418           "rules": {\r
2419             "required": true\r
2420           }\r
2421         },\r
2422         "width": {\r
2423           "type": "number",\r
2424           "rules": {\r
2425             "required": true,\r
2426             "number": true\r
2427           }\r
2428         },\r
2429         "height": {\r
2430           "type": "number",\r
2431           "rules": {\r
2432             "required": true,\r
2433             "number": true\r
2434           }\r
2435         },\r
2436         "filesize": {\r
2437           "type": "number",\r
2438           "rules": {\r
2439             "required": true,\r
2440             "number": true\r
2441           }\r
2442         },\r
2443         "md5": {\r
2444           "type": "text",\r
2445           "rules": {\r
2446             "required": true\r
2447           }\r
2448         }\r
2449       }\r
2450     }\r
2451   },\r
2452   "system_resources": {\r
2453     "engine_resources": {\r
2454       "license_groups": {\r
2455         "resource_items": {\r
2456           "PettanrCreativeCommonsV30Licenses": "pettanr_creative_commons_v30_licenses",\r
2457           "PettanrPettanCommonsV01Licenses": "pettanr_pettan_commons_v01_licenses",\r
2458           "PettanrPettanProtectedV01Licenses": "pettanr_pettan_protected_v01_licenses",\r
2459           "PettanrPettanPublicV01Licenses": "pettanr_pettan_public_v01_licenses",\r
2460           "PettanrPublicDomainV01Licenses": "pettanr_public_domain_v01_licenses",\r
2461           "PettanrUnknownV01Licenses": "pettanr_unknown_v01_licenses"\r
2462         }\r
2463       },\r
2464       "speech_balloon_templates": {\r
2465         "resource_items": {\r
2466           "CircleSpeechBalloon": "circle_speech_balloon",\r
2467           "PlainSpeechBalloon": "plain_speech_balloon",\r
2468           "SquareSpeechBalloon": "square_speech_balloon"\r
2469         }\r
2470       },\r
2471       "speech_balloons": {\r
2472         "resource_items": {\r
2473           "CircleSpeechBalloon": "circle_speech_balloon",\r
2474           "PlainSpeechBalloon": "plain_speech_balloon",\r
2475           "SquareSpeechBalloon": "square_speech_balloon"\r
2476         }\r
2477       },\r
2478       "writing_formats": {\r
2479         "has_route": 0,\r
2480         "resource_items": {\r
2481           "SimpleFormat": "pettanr_simple_format"\r
2482         }\r
2483       }\r
2484     },\r
2485     "elements": {\r
2486       "PanelPicture": "panel_pictures",\r
2487       "SpeechBalloon": "speech_balloons",\r
2488       "GroundPicture": "ground_pictures",\r
2489       "GroundColor": "ground_colors"\r
2490     },\r
2491     "select_items": {\r
2492       "provider_status_status_items": [\r
2493         [\r
2494           "select_items.provider_status.status.waiting",\r
2495           0\r
2496         ],\r
2497         [\r
2498           "select_items.provider_status.status.receiving",\r
2499           1\r
2500         ]\r
2501       ],\r
2502       "demander_status_status_items": [\r
2503         [\r
2504           "select_items.demander_status.status.waiting",\r
2505           0\r
2506         ],\r
2507         [\r
2508           "select_items.demander_status.status.rejected",\r
2509           1\r
2510         ],\r
2511         [\r
2512           "select_items.demander_status.status.requesting",\r
2513           2\r
2514         ],\r
2515         [\r
2516           "select_items.demander_status.status.approved",\r
2517           3\r
2518         ]\r
2519       ],\r
2520       "scroll_visible_items": [\r
2521         [\r
2522           "select_items.scroll.visible.private",\r
2523           0\r
2524         ],\r
2525         [\r
2526           "select_items.scroll.visible.public",\r
2527           1\r
2528         ]\r
2529       ],\r
2530       "comic_visible_items": [\r
2531         [\r
2532           "select_items.comic.visible.private",\r
2533           0\r
2534         ],\r
2535         [\r
2536           "select_items.comic.visible.public",\r
2537           1\r
2538         ]\r
2539       ],\r
2540       "story_visible_items": [\r
2541         [\r
2542           "select_items.story.visible.private",\r
2543           0\r
2544         ],\r
2545         [\r
2546           "select_items.story.visible.public",\r
2547           1\r
2548         ]\r
2549       ],\r
2550       "sheet_visible_items": [\r
2551         [\r
2552           "select_items.sheet.visible.private",\r
2553           0\r
2554         ],\r
2555         [\r
2556           "select_items.sheet.visible.public",\r
2557           1\r
2558         ]\r
2559       ],\r
2560       "panel_visible_items": [\r
2561         [\r
2562           "select_items.panel.visible.private",\r
2563           0\r
2564         ],\r
2565         [\r
2566           "select_items.panel.visible.public",\r
2567           1\r
2568         ]\r
2569       ],\r
2570       "ground_picture_repeat_items": [\r
2571         [\r
2572           "select_items.ground_pictures.repeat.repeat",\r
2573           0\r
2574         ],\r
2575         [\r
2576           "select_items.ground_pictures.repeat.repeat-x",\r
2577           1\r
2578         ],\r
2579         [\r
2580           "select_items.ground_pictures.repeat.repeat-y",\r
2581           2\r
2582         ],\r
2583         [\r
2584           "select_items.ground_pictures.repeat.no-repeat",\r
2585           3\r
2586         ]\r
2587       ],\r
2588       "ground_color_orientation_items": [\r
2589         [\r
2590           "select_items.ground_color.orientation.horizontal",\r
2591           0\r
2592         ],\r
2593         [\r
2594           "select_items.ground_color.orientation.vertical",\r
2595           1\r
2596         ]\r
2597       ],\r
2598       "speech_font_size_items": [\r
2599         [\r
2600           "select_items.speeches.font_size.ultra_small",\r
2601           0.2\r
2602         ],\r
2603         [\r
2604           "select_items.speeches.font_size.very_small",\r
2605           0.4\r
2606         ],\r
2607         [\r
2608           "select_items.speeches.font_size.small",\r
2609           0.6\r
2610         ],\r
2611         [\r
2612           "select_items.speeches.font_size.semi_small",\r
2613           0.8\r
2614         ],\r
2615         [\r
2616           "select_items.speeches.font_size.normal",\r
2617           1\r
2618         ],\r
2619         [\r
2620           "select_items.speeches.font_size.semi_large",\r
2621           1.5\r
2622         ],\r
2623         [\r
2624           "select_items.speeches.font_size.large",\r
2625           2\r
2626         ],\r
2627         [\r
2628           "select_items.speeches.font_size.very_large",\r
2629           3.5\r
2630         ],\r
2631         [\r
2632           "select_items.speeches.font_size.ultra_large",\r
2633           5\r
2634         ]\r
2635       ],\r
2636       "speech_text_align_items": [\r
2637         [\r
2638           "select_items.speeches.text_align.none",\r
2639           0\r
2640         ],\r
2641         [\r
2642           "select_items.speeches.text_align.left",\r
2643           1\r
2644         ],\r
2645         [\r
2646           "select_items.speeches.text_align.right",\r
2647           2\r
2648         ],\r
2649         [\r
2650           "select_items.speeches.text_align.center",\r
2651           3\r
2652         ]\r
2653       ]\r
2654     }\r
2655   },\r
2656   "magic_numbers": {\r
2657     "run_mode": 1,\r
2658     "thumbnail_width": 64,\r
2659     "thumbnail_height": 64,\r
2660     "profile": {\r
2661       "users": {\r
2662         "caption": "ペンギン王国",\r
2663         "url": "http://localhost:3001/",\r
2664         "description": "ペンギン王国はペンギン素材を豊富に用意したペンギンマニアのサイトです。"\r
2665       },\r
2666       "admins": {\r
2667         "caption": "site name for admin",\r
2668         "url": "http://your.site.url/admins/",\r
2669         "description": "admin register"\r
2670       },\r
2671       "demand_users": {\r
2672         "caption": "provider name",\r
2673         "url": "http://your.site.url/demanders/",\r
2674         "description": "provider description"\r
2675       }\r
2676     },\r
2677     "provider_sources": [\r
2678       "http://sourceforge.jp/projects/pettanr/wiki/ProviderSource/attach/provider_source.json"\r
2679     ]\r
2680   }\r
2681 }