

INSERT INTO `{prefix}model_maps` (`subject_type`, `model_class`) VALUES
('story_items', 'Packages\\ShaunSocial\\Story\\Models\\StoryItem');

INSERT INTO `{prefix}layout_blocks` (`component`, `title`, `enable`, `class`, `support_header_footer`, `package`, `created_at`, `updated_at`) VALUES
('Stories', 'Stories Block', 1, '', 0, 'shaun_story',NOW(), NOW());

INSERT INTO `{prefix}layout_contents` (`page_id`, `position`, `type`, `title`, `content`, `enable_title`, `component`, `view_type`, `role_access`, `params`, `order`, `class` ,`created_at`, `updated_at`, `package`) VALUES
(3, 'center', 'component', 'Stories', NULL, 0, 'Stories', 'desktop', '["all"]' ,'{}', 1,'' ,NOW(), NOW(), 'shaun_story'),
(3, 'center', 'component', 'Stories', NULL, 0, 'Stories', 'mobile', '["all"]' ,'{}', 1,'' ,NOW(), NOW(), 'shaun_story');

INSERT INTO `{prefix}translations` (`table_name`, `column_name`, `foreign_key`, `locale`, `value`) VALUES
('layout_contents', 'title', (SELECT `id` FROM `{prefix}layout_contents` WHERE `page_id` = 3 AND `title` = 'Stories' AND `view_type` = 'desktop'), 'en', 'Stories Block'),
('layout_contents', 'content', (SELECT `id` FROM `{prefix}layout_contents` WHERE `page_id` = 3 AND `title` = 'Stories' AND `view_type` = 'desktop'), 'en', ''),
('layout_contents', 'title', (SELECT `id` FROM `{prefix}layout_contents` WHERE `page_id` = 3 AND `title` = 'Stories' AND `view_type` = 'mobile'), 'en', 'Stories Block'),
('layout_contents', 'content', (SELECT `id` FROM `{prefix}layout_contents` WHERE `page_id` = 3 AND `title` = 'Stories' AND `view_type` = 'mobile'), 'en', '');

INSERT INTO `{prefix}story_backgrounds` (`photo_id`, `is_core`, `is_active`, `is_delete`, `order`, `created_at`, `updated_at`) VALUES
(0, 1, 1, 0, 29, NOW(), NOW()),
(0, 1, 1, 0, 28, NOW(), NOW()),
(0, 1, 1, 0, 27, NOW(), NOW()),
(0, 1, 1, 0, 26, NOW(), NOW()),
(0, 1, 1, 0, 25, NOW(), NOW()),
(0, 1, 1, 0, 24, NOW(), NOW()),
(0, 1, 1, 0, 23, NOW(), NOW()),
(0, 1, 1, 0, 22, NOW(), NOW()),
(0, 1, 1, 0, 21, NOW(), NOW()),
(0, 1, 1, 0, 20, NOW(), NOW()),
(0, 1, 1, 0, 19, NOW(), NOW()),
(0, 1, 1, 0, 18, NOW(), NOW()),
(0, 1, 1, 0, 17, NOW(), NOW()),
(0, 1, 1, 0, 16, NOW(), NOW()),
(0, 1, 1, 0, 15, NOW(), NOW()),
(0, 1, 1, 0, 14, NOW(), NOW()),
(0, 1, 1, 0, 13, NOW(), NOW()),
(0, 1, 1, 0, 12, NOW(), NOW()),
(0, 1, 1, 0, 11, NOW(), NOW()),
(0, 1, 1, 0, 10, NOW(), NOW()),
(0, 1, 1, 0, 9, NOW(), NOW()),
(0, 1, 1, 0, 8, NOW(), NOW()),
(0, 1, 1, 0, 7, NOW(), NOW()),
(0, 1, 1, 0, 6, NOW(), NOW()),
(0, 1, 1, 0, 5, NOW(), NOW()),
(0, 1, 1, 0, 4, NOW(), NOW()),
(0, 1, 1, 0, 3, NOW(), NOW()),
(0, 1, 1, 0, 2, NOW(), NOW()),
(0, 1, 1, 0, 1, NOW(), NOW());

INSERT INTO `{prefix}packages` (`name`, `version`, `created_at`, `updated_at`) VALUES
('shaun_story', '1.6.0', NOW(), NOW());