OSDN Git Service

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