OSDN Git Service

d8c63d8e8d72e6dabe7f609c5dbc775c04f50215
[pettanr/pettanr.git] / app / assets / javascripts / manifest / work / profilers.js.coffee.erb
1 #マニフェスト\r
2 @profilers = {\r
3   scroll: {\r
4     column_names: [\r
5       'title', \r
6       'description', \r
7       'visible', \r
8       'author_id', \r
9     ],\r
10     associations: {\r
11       belongs_to: [\r
12         'author',\r
13       ],\r
14       has_many: [\r
15         'scroll_panels.by_scroll', \r
16         'panels.by_scroll'\r
17       ],\r
18     }, \r
19   },\r
20   scroll_panel: {\r
21     column_names: [\r
22       'scroll_id', \r
23       'panel_id', \r
24       't', \r
25       'author_id', \r
26     ],\r
27     associations: {\r
28       belongs_to: [\r
29         'scroll', \r
30         'panel'\r
31       ],\r
32     }, \r
33   },\r
34   comic: {\r
35     column_names: [\r
36       'title', \r
37       'description', \r
38       'visible', \r
39       'author_id', \r
40     ],\r
41     associations: {\r
42       belongs_to: [\r
43         'author',\r
44       ],\r
45       has_many: [\r
46         'stories.by_comic', \r
47       ],\r
48     }, \r
49   },\r
50   story: {\r
51     column_names: [\r
52       'comic_id', \r
53       'title', \r
54       'description', \r
55       't', \r
56       'visible', \r
57     ],\r
58     associations: {\r
59       belongs_to: [\r
60         'comic',\r
61       ],\r
62       has_many: [\r
63         'story_sheets.by_story', \r
64         'sheets.by_story'\r
65       ],\r
66     }, \r
67   },\r
68   story_sheet: {\r
69     column_names: [\r
70       'story_id', \r
71       'sheet_id', \r
72       't', \r
73       'author_id', \r
74     ],\r
75     associations: {\r
76       belongs_to: [\r
77         'story',\r
78         'sheet',\r
79       ],\r
80     }, \r
81   },\r
82   sheet: {\r
83     column_names: [\r
84       'caption', \r
85       'width', \r
86       'height', \r
87       'visible', \r
88       'author_id', \r
89     ],\r
90     associations: {\r
91       belongs_to: [\r
92         'author',\r
93       ],\r
94       has_many: [\r
95         'story_sheets.by_sheet', \r
96         'stories.by_sheet', \r
97         'sheet_panels.by_sheet'\r
98         'panels.by_sheet'\r
99       ],\r
100     }, \r
101   },\r
102   sheet_panel: {\r
103     column_names: [\r
104       'sheet_id', \r
105       'panel_id', \r
106       'x', \r
107       'y', \r
108       'z', \r
109       't', \r
110       'author_id', \r
111     ],\r
112     associations: {\r
113       belongs_to: [\r
114         'sheet',\r
115         'panel',\r
116       ],\r
117     }, \r
118   },\r
119   panel: {\r
120     column_names: [\r
121       'width', \r
122       'height', \r
123       'border', \r
124       'caption', \r
125       'publish', \r
126       'author_id', \r
127     ],\r
128     associations: {\r
129       belongs_to: [\r
130         'author',\r
131       ],\r
132       has_many: [\r
133         'scroll_panels.by_panel',\r
134         'scrolls.by_panel',\r
135         'sheet_panels.by_panel',\r
136         'sheets.by_panel',\r
137         'panel_pictures.by_panel',\r
138         'speech_balloons.by_panel',\r
139         'ground_pictures.by_panel',\r
140         'ground_colors.by_panel',\r
141       ],\r
142     }, \r
143   },\r
144   panel_picture: {\r
145     column_names: [\r
146       'panel_id', \r
147       'picture_id', \r
148       'caption', \r
149       'x', \r
150       'y', \r
151       'width', \r
152       'height', \r
153       'link', \r
154       'z', \r
155       't', \r
156     ],\r
157     associations: {\r
158       belongs_to: [\r
159         'panel',\r
160       ],\r
161     }, \r
162   },\r
163   speech_balloon: {\r
164     column_names: [\r
165       'panel_id', \r
166       'speech_balloon_template_id', \r
167       'classname', \r
168       'z', \r
169       't', \r
170       'settings', \r
171       'caption', \r
172     ],\r
173     associations: {\r
174       belongs_to: [\r
175         'panel',\r
176       ],\r
177       has_one: [\r
178         'balloon.by_speech_balloon',\r
179         'speech.by_speech_balloon',\r
180       ],\r
181     }, \r
182   },\r
183   speech: {\r
184     column_names: [\r
185       'speech_balloon_id', \r
186       'writing_format_id', \r
187       'content', \r
188       'font_size', \r
189       'text_align', \r
190       'fore_color', \r
191       'x', \r
192       'y', \r
193       'width', \r
194       'height', \r
195       'quotes', \r
196       'settings', \r
197     ],\r
198     associations: {\r
199       belongs_to: [\r
200         'speech_balloon',\r
201         'writing_format',\r
202       ],\r
203     }, \r
204   },\r
205   balloon: {\r
206     column_names: [\r
207       'speech_balloon_id', \r
208       'system_picture_id', \r
209       'x', \r
210       'y', \r
211       'width', \r
212       'height', \r
213       'r', \r
214       'settings', \r
215     ],\r
216     associations: {\r
217       belongs_to: [\r
218         'speech_balloon',\r
219         'system_picture',\r
220       ],\r
221     }, \r
222   },\r
223   ground_picture: {\r
224     column_names: [\r
225       'panel_id', \r
226       'picture_id', \r
227       'caption', \r
228       'repeat', \r
229       'x', \r
230       'y', \r
231       'z', \r
232       't', \r
233     ],\r
234     associations: {\r
235       belongs_to: [\r
236         'panel',\r
237       ],\r
238     }, \r
239   },\r
240   ground_color: {\r
241     column_names: [\r
242       'panel_id', \r
243       'caption', \r
244       'code', \r
245       'orientation', \r
246       'xy', \r
247       'wh', \r
248       'z', \r
249       't', \r
250     ],\r
251     associations: {\r
252       belongs_to: [\r
253         'panel',\r
254       ],\r
255     }, \r
256   },\r
257   original_picture: {\r
258     column_names: [\r
259       'ext', \r
260       'width', \r
261       'height', \r
262       'filesize', \r
263       'artist_id', \r
264       'md5', \r
265       'uploaded_at', \r
266       'published_at', \r
267       'stopped_at', \r
268     ],\r
269     associations: {\r
270       belongs_to: [\r
271         'artist',\r
272       ],\r
273       has_one: [\r
274         'resource_picture.by_original_picture',\r
275       ],\r
276     }, \r
277   },\r
278   picture: {\r
279     column_names: [\r
280       'original_picture_id', \r
281       'revision', \r
282       'ext', \r
283       'width', \r
284       'height', \r
285       'filesize', \r
286       'artist_id', \r
287       'license_id', \r
288       'md5', \r
289       'artist_name', \r
290       'credit', \r
291       'settings', \r
292       'classname', \r
293     ],\r
294     associations: {\r
295       belongs_to: [\r
296         'license',\r
297         'artist',\r
298       ],\r
299     }, \r
300   },\r
301   resource_picture: {\r
302     column_names: [\r
303       'original_picture_id', \r
304       'revision', \r
305       'ext', \r
306       'width', \r
307       'height', \r
308       'filesize', \r
309       'artist_id', \r
310       'license_id', \r
311       'md5', \r
312       'artist_name', \r
313       'credit', \r
314       'settings', \r
315       'picture_id', \r
316       'classname', \r
317     ],\r
318     associations: {\r
319       belongs_to: [\r
320         'original_picture',\r
321         'license',\r
322         'artist',\r
323       ],\r
324     }, \r
325   },\r
326   speech_balloon_template: {\r
327     column_names: [\r
328       'name', \r
329       'classname', \r
330       'caption', \r
331       't', \r
332       'system_picture_id', \r
333       'settings', \r
334     ],\r
335     associations: {\r
336       belongs_to: [\r
337         'system_picture',\r
338       ],\r
339     }, \r
340   },\r
341   writing_format: {\r
342     column_names: [\r
343       'name', \r
344       'classname', \r
345       'caption', \r
346       'system_picture_id', \r
347       'settings', \r
348     ],\r
349     associations: {\r
350       belongs_to: [\r
351         'system_picture',\r
352       ],\r
353       has_many: [\r
354         #'speeches.by_writing_format', \r
355       ],\r
356     }, \r
357   },\r
358   license_group: {\r
359     column_names: [\r
360       'name', \r
361       'classname', \r
362       'caption', \r
363       'url', \r
364     ],\r
365     associations: {\r
366       has_many: [\r
367         'licenses.by_license_group', \r
368       ],\r
369     }, \r
370   },\r
371   license: {\r
372     column_names: [\r
373       'license_group_id', \r
374       'name', \r
375       'caption', \r
376       'system_picture_id', \r
377       'url', \r
378       'settings', \r
379       'credit_pictures', \r
380     ],\r
381     associations: {\r
382       belongs_to: [\r
383         'license_group', \r
384         'system_picture', \r
385       ],\r
386       has_many: [\r
387         'resource_pictures.by_license', \r
388       ],\r
389     }, \r
390   },\r
391   author: {\r
392     column_names: [\r
393       'name', \r
394       'user_id', \r
395     ],\r
396     associations: {\r
397       has_many: [\r
398         'scrolls.by_author', \r
399         'scroll_panels.by_author', \r
400         'comics.by_author', \r
401         'stories.by_author', \r
402         'sheets.by_author', \r
403         'sheet_panels.by_author', \r
404         'panels.by_author', \r
405         'panel_pictures.by_author', \r
406         'speech_balloons.by_author', \r
407         'balloons.by_author', \r
408         'speeches.by_author', \r
409         'ground_pictures.by_author', \r
410         'ground_colors.by_author', \r
411       ],\r
412     }, \r
413   },\r
414   artist: {\r
415     column_names: [\r
416       'name', \r
417       'author_id', \r
418     ],\r
419     associations: {\r
420       has_many: [\r
421         'resource_pictures.by_artist', \r
422       ],\r
423     }, \r
424   },\r
425   system_picture: {\r
426     column_names: [\r
427       'ext', \r
428       'width', \r
429       'height', \r
430       'filesize', \r
431       'md5', \r
432     ],\r
433     associations: {\r
434       has_many: [\r
435         #'balloons.by_system_picture', \r
436         #'speech_balloon_templates.by_system_picture', \r
437         'licenses.by_system_picture', \r
438       ],\r
439     }, \r
440   },\r
441 }\r