<?php
declare(strict_types=1);

/**
 * BEdita, API-first content management framework
 * Copyright 2016 ChannelWeb Srl, Chialab Srl
 *
 * This file is part of BEdita: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details.
 */
namespace BEdita\Core\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

/**
 * Fixture for `object_types` table.
 */
class ObjectTypesFixture extends TestFixture
{
    /**
     * Records
     *
     * @var array
     */
    public $records = [
        // 1
        [
            'singular' => 'object',
            'name' => 'objects',
            'is_abstract' => true,
            'parent_id' => null,
            'tree_left' => 1,
            'tree_right' => 24,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Objects',
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => false,
        ],
        // 2
        [
            'singular' => 'document',
            'name' => 'documents',
            'is_abstract' => false,
            'parent_id' => 1,
            'tree_left' => 2,
            'tree_right' => 3,
            'description' => null,
            'associations' => ['Categories'],
            'plugin' => 'BEdita/Core',
            'model' => 'Objects',
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 3
        [
            'singular' => 'profile',
            'name' => 'profiles',
            'is_abstract' => false,
            'parent_id' => 1,
            'tree_left' => 4,
            'tree_right' => 5,
            'description' => null,
            'associations' => ['Tags'],
            'plugin' => 'BEdita/Core',
            'model' => 'Profiles',
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 4
        [
            'singular' => 'user',
            'name' => 'users',
            'is_abstract' => false,
            'parent_id' => 1,
            'tree_left' => 6,
            'tree_right' => 7,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Users',
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 5
        [
            'singular' => 'news_item',
            'name' => 'news',
            'is_abstract' => false,
            'parent_id' => 1,
            'tree_left' => 8,
            'tree_right' => 9,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Objects',
            'hidden' => ['body'],
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => false,
            'core_type' => false,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 6
        [
            'singular' => 'location',
            'name' => 'locations',
            'is_abstract' => false,
            'parent_id' => 1,
            'tree_left' => 10,
            'tree_right' => 11,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Locations',
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 7
        [
            'singular' => 'event',
            'name' => 'events',
            'is_abstract' => false,
            'parent_id' => 1,
            'tree_left' => 12,
            'tree_right' => 13,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Objects',
            'associations' => ['DateRanges'],
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 8
        [
            'singular' => 'media_item',
            'name' => 'media',
            'is_abstract' => true,
            'parent_id' => 1,
            'tree_left' => 14,
            'tree_right' => 21,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Media',
            'associations' => ['Streams'],
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => false,
        ],
        // 9
        [
            'singular' => 'file',
            'name' => 'files',
            'is_abstract' => false,
            'parent_id' => 8,
            'tree_left' => 15,
            'tree_right' => 16,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Media',
            'associations' => ['Streams'],
            'created' => '2017-11-10 09:27:23',
            'modified' => '2017-11-10 09:27:23',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => [
                'name' => true,
            ],
            'is_translatable' => true,
        ],
        // 10
        [
            'singular' => 'folder',
            'name' => 'folders',
            'is_abstract' => false,
            'parent_id' => 1,
            'tree_left' => 22,
            'tree_right' => 23,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Objects',
            'created' => '2018-01-29 08:47:29',
            'modified' => '2018-01-29 08:47:29',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 11
        [
            'singular' => 'image',
            'name' => 'images',
            'is_abstract' => false,
            'parent_id' => 8,
            'tree_left' => 17,
            'tree_right' => 18,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Media',
            'associations' => ['Streams'],
            'created' => '2024-03-08 11:21:51',
            'modified' => '2024-03-08 11:21:51',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
        // 12
        [
            'singular' => 'video',
            'name' => 'videos',
            'is_abstract' => false,
            'parent_id' => 8,
            'tree_left' => 19,
            'tree_right' => 20,
            'description' => null,
            'plugin' => 'BEdita/Core',
            'model' => 'Media',
            'associations' => ['Streams', 'Captions'],
            'created' => '2024-10-29 11:40:00',
            'modified' => '2024-10-29 11:40:00',
            'enabled' => true,
            'core_type' => true,
            'translation_rules' => null,
            'is_translatable' => true,
        ],
    ];
}
