<?php
namespace App\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

/**
 * PlanAddonsFixture
 *
 */
class PlanAddonsFixture extends TestFixture
{

    /**
     * Fields
     *
     * @var array
     */
    // @codingStandardsIgnoreStart
    public $fields = [
        'id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
        'plan_id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
        'addon_id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
        'price' => ['type' => 'decimal', 'length' => 10, 'precision' => 2, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => ''],
        'created' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'modified' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        '_indexes' => [
            'fk_plans_has_addons_addons1_idx' => ['type' => 'index', 'columns' => ['addon_id'], 'length' => []],
            'fk_plans_has_addons_plans1_idx' => ['type' => 'index', 'columns' => ['plan_id'], 'length' => []],
        ],
        '_constraints' => [
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
            'fk_plans_has_addons_addons1' => ['type' => 'foreign', 'columns' => ['addon_id'], 'references' => ['addons', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
            'fk_plans_has_addons_plans1' => ['type' => 'foreign', 'columns' => ['plan_id'], 'references' => ['plans', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
        ],
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'utf8_general_ci'
        ],
    ];
    // @codingStandardsIgnoreEnd

    /**
     * Records
     *
     * @var array
     */
    public $records = [
        [
            'id' => 'c6c9c734-d7aa-4cae-997e-6dd937da3242',
            'plan_id' => '250deac0-8095-4f4a-a78e-2fe22981aec8',
            'addon_id' => '3b5b11bf-100e-46b5-b522-277fb34c3686',
            'price' => 1.5,
            'created' => '2018-02-20 10:09:50',
            'modified' => '2018-02-20 10:09:50'
        ],
    ];
}
