OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add peta model_manifest
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
manifest
/
work
/
models.js.coffee.erb
diff --git
a/app/assets/javascripts/manifest/work/models.js.coffee.erb
b/app/assets/javascripts/manifest/work/models.js.coffee.erb
index
a198d4f
..
70340de
100644
(file)
--- a/
app/assets/javascripts/manifest/work/models.js.coffee.erb
+++ b/
app/assets/javascripts/manifest/work/models.js.coffee.erb
@@
-1,34
+1,20
@@
#マニフェスト
\r
@models = {
\r
scroll: {
\r
#マニフェスト
\r
@models = {
\r
scroll: {
\r
- class_name: 'Scroll',
\r
- table_name: 'scrolls',
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
- id_column: 'author_id'
\r
},
\r
},
\r
has_many: {
\r
scroll_panels: {
\r
},
\r
},
\r
has_many: {
\r
scroll_panels: {
\r
- foreign_key: 'scroll_id',
\r
- model_name: 'scroll_panel',
\r
},
\r
panels: {
\r
through: 'scroll_panel',
\r
},
\r
panels: {
\r
through: 'scroll_panel',
\r
- foreign_key: 'scroll_id',
\r
- model_name: 'panel',
\r
},
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
title: {
\r
type: 'text',
\r
rules : {
\r
title: {
\r
type: 'text',
\r
rules : {
\r
@@
-60,33
+46,23
@@
number: true,
\r
},
\r
},
\r
number: true,
\r
},
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_author: {
\r
type: 'filter',
\r
args: {
\r
type: 'private',
\r
},
\r
by_author: {
\r
type: 'filter',
\r
args: {
\r
- filter_item_name: 'author',
\r
- filter_key: 'author_id',
\r
},
\r
},
\r
by_panel: {
\r
type: 'through_filter',
\r
args: {
\r
},
\r
},
\r
by_panel: {
\r
type: 'through_filter',
\r
args: {
\r
- filter_item_name: 'panel',
\r
through: 'scroll_panels',
\r
through: 'scroll_panels',
\r
- filter_key: 'panel_id',
\r
},
\r
},
\r
play: {
\r
},
\r
},
\r
play: {
\r
@@
-100,28
+76,17
@@
},
\r
},
\r
scroll_panel: {
\r
},
\r
},
\r
scroll_panel: {
\r
- class_name: 'ScrollPanel',
\r
- table_name: 'scroll_panels',
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
- id_column: 'panel_id'
\r
},
\r
scroll: {
\r
},
\r
scroll: {
\r
- id_column: 'scroll_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
scroll_id: {
\r
type: 'number',
\r
rules : {
\r
scroll_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-151,18
+116,15
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'scroll',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_scroll: {
\r
type: 'private',
\r
},
\r
by_scroll: {
\r
@@
-174,31
+136,17
@@
},
\r
},
\r
comic: {
\r
},
\r
},
\r
comic: {
\r
- class_name: 'Comic',
\r
- table_name: 'comics',
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
- id_column: 'author_id'
\r
},
\r
},
\r
has_many: {
\r
stories: {
\r
},
\r
},
\r
has_many: {
\r
stories: {
\r
- foreign_key: 'comic_id',
\r
- model_name: 'story',
\r
},
\r
},
\r
},
\r
},
\r
- has_many_through: {
\r
- },
\r
},
\r
attributes: {
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
title: {
\r
type: 'text',
\r
rules : {
\r
title: {
\r
type: 'text',
\r
rules : {
\r
@@
-230,18
+178,12
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_author: {
\r
type: 'private',
\r
},
\r
by_author: {
\r
@@
-250,34
+192,20
@@
},
\r
},
\r
story: {
\r
},
\r
},
\r
story: {
\r
- class_name: 'Story',
\r
- table_name: 'stories',
\r
associations: {
\r
belongs_to: {
\r
comic: {
\r
associations: {
\r
belongs_to: {
\r
comic: {
\r
- id_column: 'comic_id'
\r
},
\r
},
\r
has_many: {
\r
story_sheets: {
\r
},
\r
},
\r
has_many: {
\r
story_sheets: {
\r
- foreign_key: 'story_id',
\r
- model_name: 'story_sheet',
\r
},
\r
sheets: {
\r
through: 'story_sheets',
\r
},
\r
sheets: {
\r
through: 'story_sheets',
\r
- foreign_key: 'story_id',
\r
- model_name: 'sheet',
\r
},
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
comic_id: {
\r
type: 'number',
\r
rules : {
\r
comic_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-315,18
+243,15
@@
},
\r
},
\r
},
\r
},
\r
},
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'comic',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_comic: {
\r
type: 'private',
\r
},
\r
by_comic: {
\r
@@
-334,9
+259,12
@@
},
\r
by_sheet: {
\r
type: 'through_filter',
\r
},
\r
by_sheet: {
\r
type: 'through_filter',
\r
+ args: {
\r
+ through: 'story_sheets',
\r
+ },
\r
},
\r
by_author: {
\r
},
\r
by_author: {
\r
- type: '
element
_filter',
\r
+ type: '
foreign
_filter',
\r
},
\r
play: {
\r
type: 'play',
\r
},
\r
play: {
\r
type: 'play',
\r
@@
-344,28
+272,17
@@
},
\r
},
\r
story_sheet: {
\r
},
\r
},
\r
story_sheet: {
\r
- class_name: 'StorySheet',
\r
- table_name: 'story_sheets',
\r
associations: {
\r
belongs_to: {
\r
story: {
\r
associations: {
\r
belongs_to: {
\r
story: {
\r
- id_column: 'story_id'
\r
},
\r
sheet: {
\r
},
\r
sheet: {
\r
- id_column: 'sheet_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
story_id: {
\r
type: 'number',
\r
rules : {
\r
story_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-393,18
+310,15
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'story',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_story: {
\r
type: 'private',
\r
},
\r
by_story: {
\r
@@
-416,43
+330,25
@@
},
\r
},
\r
sheet: {
\r
},
\r
},
\r
sheet: {
\r
- class_name: 'Sheet',
\r
- table_name: 'sheets',
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
- id_column: 'author_id'
\r
},
\r
},
\r
has_many: {
\r
story_sheets: {
\r
},
\r
},
\r
has_many: {
\r
story_sheets: {
\r
- foreign_key: 'story_id',
\r
- model_name: 'story_sheet',
\r
},
\r
stories: {
\r
through: 'story_sheets',
\r
},
\r
stories: {
\r
through: 'story_sheets',
\r
- foreign_key: 'sheet_id',
\r
- model_name: 'story',
\r
},
\r
sheet_panels: {
\r
},
\r
sheet_panels: {
\r
- foreign_key: 'sheet_id',
\r
- model_name: 'sheet_panel',
\r
},
\r
panels: {
\r
through: 'sheet_panels',
\r
},
\r
panels: {
\r
through: 'sheet_panels',
\r
- foreign_key: 'sheet_id',
\r
- model_name: 'panel',
\r
},
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
caption: {
\r
type: 'text',
\r
rules : {
\r
caption: {
\r
type: 'text',
\r
rules : {
\r
@@
-492,25
+388,25
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_story: {
\r
type: 'through_filter',
\r
type: 'private',
\r
},
\r
by_story: {
\r
type: 'through_filter',
\r
+ args: {
\r
+ through: 'story_sheets',
\r
+ },
\r
},
\r
by_panel: {
\r
type: 'through_filter',
\r
},
\r
by_panel: {
\r
type: 'through_filter',
\r
+ args: {
\r
+ through: 'sheet_panels',
\r
+ },
\r
},
\r
by_author: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
type: 'filter',
\r
@@
-521,28
+417,17
@@
},
\r
},
\r
sheet_panel: {
\r
},
\r
},
\r
sheet_panel: {
\r
- class_name: 'SheetPanel',
\r
- table_name: 'sheet_panels',
\r
associations: {
\r
belongs_to: {
\r
sheet: {
\r
associations: {
\r
belongs_to: {
\r
sheet: {
\r
- id_column: 'sheet_id'
\r
},
\r
panel: {
\r
},
\r
panel: {
\r
- id_column: 'panel_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
sheet_id: {
\r
type: 'number',
\r
rules : {
\r
sheet_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-591,18
+476,15
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'sheet',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_sheet: {
\r
type: 'private',
\r
},
\r
by_sheet: {
\r
@@
-614,59
+496,39
@@
},
\r
},
\r
panel: {
\r
},
\r
},
\r
panel: {
\r
- class_name: 'Panel',
\r
- table_name: 'panels',
\r
+ peta: {
\r
+ type: 'root',
\r
+ args: {
\r
+ element_tree_name: 'panel',
\r
+ },
\r
+ },
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
associations: {
\r
belongs_to: {
\r
author: {
\r
- id_column: 'author_id'
\r
},
\r
},
\r
has_many: {
\r
scroll_panels: {
\r
},
\r
},
\r
has_many: {
\r
scroll_panels: {
\r
- foreign_key: 'panel_id',
\r
- model_name: 'scroll_panel',
\r
},
\r
scrolls: {
\r
through: 'scroll_panels',
\r
},
\r
scrolls: {
\r
through: 'scroll_panels',
\r
- foreign_key: 'panel_id',
\r
- model_name: 'scroll',
\r
},
\r
sheet_panels: {
\r
},
\r
sheet_panels: {
\r
- foreign_key: 'panel_id',
\r
- model_name: 'sheet_panel',
\r
},
\r
sheets: {
\r
through: 'sheet_panels',
\r
},
\r
sheets: {
\r
through: 'sheet_panels',
\r
- foreign_key: 'panel_id',
\r
- model_name: 'sheet',
\r
},
\r
panel_pictures: {
\r
},
\r
panel_pictures: {
\r
- foreign_key: 'panel_id',
\r
- model_name: 'panel_picture',
\r
},
\r
speech_balloons: {
\r
},
\r
speech_balloons: {
\r
- foreign_key: 'panel_id',
\r
- model_name: 'speech_balloon',
\r
},
\r
ground_pictures: {
\r
},
\r
ground_pictures: {
\r
- foreign_key: 'panel_id',
\r
- model_name: 'ground_picture',
\r
},
\r
ground_colors: {
\r
},
\r
ground_colors: {
\r
- foreign_key: 'panel_id',
\r
- model_name: 'ground_color',
\r
},
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
width: {
\r
type: 'number',
\r
rules : {
\r
width: {
\r
type: 'number',
\r
rules : {
\r
@@
-716,25
+578,25
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_scroll: {
\r
type: 'through_filter',
\r
type: 'private',
\r
},
\r
by_scroll: {
\r
type: 'through_filter',
\r
+ args: {
\r
+ through: 'scroll_panels',
\r
+ },
\r
},
\r
by_sheet: {
\r
type: 'through_filter',
\r
},
\r
by_sheet: {
\r
type: 'through_filter',
\r
+ args: {
\r
+ through: 'sheet_panels',
\r
+ },
\r
},
\r
by_author: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
type: 'filter',
\r
@@
-745,25
+607,15
@@
},
\r
},
\r
panel_picture: {
\r
},
\r
},
\r
panel_picture: {
\r
- class_name: 'PanelPicture',
\r
- table_name: 'panel_pictures',
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
- id_column: 'panel_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-832,59
+684,43
@@
min: 0,
\r
}
\r
},
\r
min: 0,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'panel',
\r
+ panel: 'panel',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
- type: '
element
_filter',
\r
+ type: '
foreign
_filter',
\r
},
\r
},
\r
},
\r
speech_balloon: {
\r
},
\r
},
\r
},
\r
speech_balloon: {
\r
- class_name: 'SpeechBalloon',
\r
- table_name: 'speech_balloons',
\r
- extend: 'classname',
\r
+ extend_column_name: 'classname',
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
- id_column: 'panel_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
has_one: {
\r
balloon: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
has_one: {
\r
balloon: {
\r
- foreign_key: 'speech_balloon_id',
\r
- model_name: 'balloon',
\r
},
\r
speech: {
\r
},
\r
speech: {
\r
- foreign_key: 'speech_balloon_id',
\r
- model_name: 'speech',
\r
},
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-930,18
+766,16
@@
rules : {
\r
}
\r
},
\r
rules : {
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'panel',
\r
+ panel: 'panel',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
@@
-951,33
+785,22
@@
type: 'filter',
\r
},
\r
by_author: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
- type: '
element
_filter',
\r
+ type: '
foreign
_filter',
\r
},
\r
},
\r
},
\r
balloon: {
\r
},
\r
},
\r
},
\r
balloon: {
\r
- class_name: 'Balloon',
\r
- table_name: 'balloons',
\r
associations: {
\r
belongs_to: {
\r
speech_balloon: {
\r
associations: {
\r
belongs_to: {
\r
speech_balloon: {
\r
- id_column: 'speech_balloon_id'
\r
},
\r
system_picture: {
\r
},
\r
system_picture: {
\r
- id_column: 'system_picture_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
speech_balloon_id: {
\r
type: 'number',
\r
rules : {
\r
speech_balloon_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-1033,18
+856,16
@@
rules : {
\r
}
\r
},
\r
rules : {
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'speech_balloon',
\r
+ panel: 'speech_balloon',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
@@
-1054,33
+875,22
@@
type: 'filter',
\r
},
\r
by_author: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
- type: '
element
_filter',
\r
+ type: '
foreign
_filter',
\r
},
\r
},
\r
},
\r
speech: {
\r
},
\r
},
\r
},
\r
speech: {
\r
- class_name: 'Speech',
\r
- table_name: 'speeches',
\r
associations: {
\r
belongs_to: {
\r
speech_balloon: {
\r
associations: {
\r
belongs_to: {
\r
speech_balloon: {
\r
- id_column: 'speech_balloon_id'
\r
},
\r
writing_format: {
\r
},
\r
writing_format: {
\r
- id_column: 'writing_format_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
speech_balloon_id: {
\r
type: 'number',
\r
rules : {
\r
speech_balloon_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-1178,15
+988,13
@@
rules : {
\r
}
\r
},
\r
rules : {
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'speech_balloon',
\r
+ panel: 'speech_balloon',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
by_speech_balloon: {
\r
type: 'public',
\r
},
\r
by_speech_balloon: {
\r
@@
-1198,25
+1006,15
@@
},
\r
},
\r
ground_picture: {
\r
},
\r
},
\r
ground_picture: {
\r
- class_name: 'GroundPicture',
\r
- table_name: 'ground_pictures',
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
- id_column: 'panel_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-1279,48
+1077,36
@@
min: 0,
\r
}
\r
},
\r
min: 0,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'panel',
\r
+ panel: 'panel',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
- type: '
element
_filter',
\r
+ type: '
foreign
_filter',
\r
},
\r
},
\r
},
\r
ground_color: {
\r
},
\r
},
\r
},
\r
ground_color: {
\r
- class_name: 'GroundColor',
\r
- table_name: 'ground_colors',
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
associations: {
\r
belongs_to: {
\r
panel: {
\r
- id_column: 'panel_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
panel_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-1382,58
+1168,42
@@
min: 0,
\r
}
\r
},
\r
min: 0,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
+ },
\r
+ tree: {
\r
+ owner: 'panel',
\r
+ panel: 'panel',
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
type: 'private',
\r
},
\r
by_panel: {
\r
type: 'filter',
\r
},
\r
by_author: {
\r
- type: '
element
_filter',
\r
+ type: '
foreign
_filter',
\r
},
\r
},
\r
},
\r
original_picture: {
\r
},
\r
},
\r
},
\r
original_picture: {
\r
- class_name: 'OriginalPicture',
\r
- table_name: 'original_pictures',
\r
associations: {
\r
belongs_to: {
\r
artist: {
\r
associations: {
\r
belongs_to: {
\r
artist: {
\r
- id_column: 'artist_id'
\r
},
\r
},
\r
has_many: {
\r
pictures: {
\r
},
\r
},
\r
has_many: {
\r
pictures: {
\r
- foreign_key: 'original_picture_id',
\r
- model_name: 'picture',
\r
},
\r
},
\r
has_one: {
\r
resource_picture: {
\r
},
\r
},
\r
has_one: {
\r
resource_picture: {
\r
- foreign_key: 'original_picture_id',
\r
- model_name: 'resource_picture',
\r
},
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
ext: {
\r
type: 'text',
\r
rules : {
\r
ext: {
\r
type: 'text',
\r
rules : {
\r
@@
-1484,29
+1254,19
@@
stopped_at: {
\r
type: 'datetime',
\r
},
\r
stopped_at: {
\r
type: 'datetime',
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
},
\r
},
\r
picture: {
\r
type: 'private',
\r
},
\r
},
\r
},
\r
picture: {
\r
- class_name: 'Picture',
\r
- table_name: 'pictures',
\r
associations: {
\r
belongs_to: {
\r
license: {
\r
associations: {
\r
belongs_to: {
\r
license: {
\r
- id_column: 'license_id'
\r
},
\r
artist: {
\r
},
\r
artist: {
\r
- id_column: 'artist_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
has_many: {
\r
@@
-1515,13
+1275,6
@@
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
original_picture_id: {
\r
type: 'number',
\r
rules : {
\r
original_picture_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-1605,27
+1358,16
@@
required: true,
\r
}
\r
},
\r
required: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
}
\r
},
\r
resource_picture: {
\r
}
\r
},
\r
resource_picture: {
\r
- class_name: 'ResourcePicture',
\r
- table_name: 'resource_pictures',
\r
associations: {
\r
belongs_to: {
\r
original_picture: {
\r
associations: {
\r
belongs_to: {
\r
original_picture: {
\r
- id_column: 'original_picture_id'
\r
},
\r
license: {
\r
},
\r
license: {
\r
- id_column: 'license_id'
\r
},
\r
artist: {
\r
},
\r
artist: {
\r
- id_column: 'artist_id'
\r
},
\r
},
\r
has_many: {
\r
},
\r
},
\r
has_many: {
\r
@@
-1634,13
+1376,6
@@
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
original_picture_id: {
\r
type: 'number',
\r
rules : {
\r
original_picture_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-1731,20
+1466,17
@@
required: true,
\r
}
\r
},
\r
required: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
type: 'public',
\r
},
\r
- private
_list
: {
\r
+ private: {
\r
type: 'private',
\r
},
\r
type: 'private',
\r
},
\r
+ by_original_picture: {
\r
+ type: 'filter',
\r
+ },
\r
by_license: {
\r
type: 'filter',
\r
},
\r
by_license: {
\r
type: 'filter',
\r
},
\r
@@
-1754,36
+1486,23
@@
},
\r
},
\r
speech_balloon_template: {
\r
},
\r
},
\r
speech_balloon_template: {
\r
- class_name: 'SpeechBalloonTemplate',
\r
- table_name: 'speech_balloon_templates',
\r
+ extend_column_name: 'classname',
\r
associations: {
\r
belongs_to: {
\r
system_picture: {
\r
associations: {
\r
belongs_to: {
\r
system_picture: {
\r
- id_column: 'system_picture_id'
\r
},
\r
},
\r
has_many: {
\r
speech_balloons: {
\r
},
\r
},
\r
has_many: {
\r
speech_balloons: {
\r
- foreign_key: 'speech_balloon_template_id',
\r
- model_name: 'speech_balloon',
\r
},
\r
panels: {
\r
through: 'speech_balloons',
\r
},
\r
panels: {
\r
through: 'speech_balloons',
\r
- foreign_key: 'speech_balloon_template_id',
\r
- model_name: 'panel',
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
name: {
\r
type: 'text',
\r
rules : {
\r
name: {
\r
type: 'text',
\r
rules : {
\r
@@
-1823,15
+1542,9
@@
required: true,
\r
}
\r
},
\r
required: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
select_items: {
\r
type: 'public',
\r
},
\r
select_items: {
\r
@@
-1843,31
+1556,20
@@
},
\r
},
\r
writing_format: {
\r
},
\r
},
\r
writing_format: {
\r
- class_name: 'WritingFormat',
\r
- table_name: 'writing_formats',
\r
+ extend_column_name: 'classname',
\r
associations: {
\r
belongs_to: {
\r
system_picture: {
\r
associations: {
\r
belongs_to: {
\r
system_picture: {
\r
- id_column: 'system_picture_id'
\r
},
\r
},
\r
has_many: {
\r
speeches: {
\r
},
\r
},
\r
has_many: {
\r
speeches: {
\r
- foreign_key: 'writing_format_id',
\r
- model_name: 'speech',
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
name: {
\r
type: 'text',
\r
rules : {
\r
name: {
\r
type: 'text',
\r
rules : {
\r
@@
-1899,15
+1601,9
@@
required: true,
\r
}
\r
},
\r
required: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
select_items: {
\r
type: 'public',
\r
},
\r
select_items: {
\r
@@
-1919,28
+1615,18
@@
},
\r
},
\r
license_group: {
\r
},
\r
},
\r
license_group: {
\r
- class_name: 'LicenseGroup',
\r
- table_name: 'license_groups',
\r
+ extend_column_name: 'classname',
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
licenses: {
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
licenses: {
\r
- foreign_key: 'license_group_id',
\r
- model_name: 'license',
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
name: {
\r
type: 'text',
\r
rules : {
\r
name: {
\r
type: 'text',
\r
rules : {
\r
@@
-1965,15
+1651,9
@@
required: true,
\r
}
\r
},
\r
required: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
select_items: {
\r
type: 'public',
\r
},
\r
select_items: {
\r
@@
-1982,34
+1662,21
@@
},
\r
},
\r
license: {
\r
},
\r
},
\r
license: {
\r
- class_name: 'License',
\r
- table_name: 'licenses',
\r
associations: {
\r
belongs_to: {
\r
license_group: {
\r
associations: {
\r
belongs_to: {
\r
license_group: {
\r
- id_column: 'license_group_id'
\r
},
\r
system_picture: {
\r
},
\r
system_picture: {
\r
- id_column: 'system_picture_id'
\r
},
\r
},
\r
has_many: {
\r
resource_pictures: {
\r
},
\r
},
\r
has_many: {
\r
resource_pictures: {
\r
- foreign_key: 'license_id',
\r
- model_name: 'resource_picture',
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
license_group_id: {
\r
type: 'number',
\r
rules : {
\r
license_group_id: {
\r
type: 'number',
\r
rules : {
\r
@@
-2051,15
+1718,9
@@
rules : {
\r
}
\r
},
\r
rules : {
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
by_license_group: {
\r
type: 'public',
\r
},
\r
by_license_group: {
\r
@@
-2071,44
+1732,25
@@
},
\r
},
\r
author: {
\r
},
\r
},
\r
author: {
\r
- class_name: 'Author',
\r
- table_name: 'authors',
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
scrolls: {
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
scrolls: {
\r
- foreign_key: 'author_id',
\r
- model_name: 'scroll',
\r
},
\r
comics: {
\r
},
\r
comics: {
\r
- foreign_key: 'author_id',
\r
- model_name: 'comic',
\r
},
\r
stories: {
\r
},
\r
stories: {
\r
- foreign_key: 'author_id',
\r
- model_name: 'story',
\r
},
\r
sheets: {
\r
},
\r
sheets: {
\r
- foreign_key: 'author_id',
\r
- model_name: 'sheet',
\r
},
\r
panels: {
\r
},
\r
panels: {
\r
- foreign_key: 'author_id',
\r
- model_name: 'panel',
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
name: {
\r
type: 'text',
\r
rules : {
\r
name: {
\r
type: 'text',
\r
rules : {
\r
@@
-2122,42
+1764,25
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
},
\r
},
\r
artist: {
\r
type: 'public',
\r
},
\r
},
\r
},
\r
artist: {
\r
- class_name: 'Artist',
\r
- table_name: 'artists',
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
resource_pictures: {
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
resource_pictures: {
\r
- foreign_key: 'artist_id',
\r
- model_name: 'resource_picture',
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
name: {
\r
type: 'text',
\r
rules : {
\r
name: {
\r
type: 'text',
\r
rules : {
\r
@@
-2171,50
+1796,29
@@
number: true,
\r
}
\r
},
\r
number: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
},
\r
},
\r
system_picture: {
\r
type: 'public',
\r
},
\r
},
\r
},
\r
system_picture: {
\r
- class_name: 'SystemPicture',
\r
- table_name: 'system_pictures',
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
balloons: {
\r
associations: {
\r
belongs_to: {
\r
},
\r
has_many: {
\r
balloons: {
\r
- foreign_key: 'system_picture_id',
\r
- model_name: 'balloon',
\r
},
\r
},
\r
- balloon_templates: {
\r
- foreign_key: 'system_picture_id',
\r
- model_name: 'balloon_template',
\r
+ speech_balloon_templates: {
\r
},
\r
licenses: {
\r
},
\r
licenses: {
\r
- foreign_key: 'system_picture_id',
\r
- model_name: 'license',
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
},
\r
},
\r
has_one: {
\r
},
\r
},
\r
attributes: {
\r
- id: {
\r
- type: 'number',
\r
- primary_key: 1,
\r
- rules : {
\r
- number: true,
\r
- }
\r
- },
\r
ext: {
\r
type: 'text',
\r
rules : {
\r
ext: {
\r
type: 'text',
\r
rules : {
\r
@@
-2249,15
+1853,9
@@
required: true,
\r
}
\r
},
\r
required: true,
\r
}
\r
},
\r
- created_at: {
\r
- type: 'datetime',
\r
- },
\r
- updated_at: {
\r
- type: 'datetime',
\r
- }
\r
},
\r
lists: {
\r
},
\r
lists: {
\r
- public
_list
: {
\r
+ public: {
\r
type: 'public',
\r
},
\r
},
\r
type: 'public',
\r
},
\r
},
\r