MesuresFixture.php 1.45 KB
<?php
namespace App\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

/**
 * MesuresFixture
 *
 */
class MesuresFixture extends TestFixture
{

    /**
     * Fields
     *
     * @var array
     */
    // @codingStandardsIgnoreStart
    public $fields = [
        'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
        'fichemetrologique_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'comment' => '', 'precision' => null],
        'valeur' => ['type' => 'double', 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'erreur' => ['type' => 'double', 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        '_indexes' => [
            'fk_mesure_fichemetrologique_id_idx' => ['type' => 'index', 'columns' => ['fichemetrologique_id'], 'length' => []],
        	],
        '_constraints' => [
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
            'fk_mesure_fichemetrologique_id' => ['type' => 'foreign', 'columns' => ['fichemetrologique_id'], 'references' => ['fichemetrologiques', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
        	],
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'latin1_swedish_ci'
        ],
    ];
  
}