50 lines
1.7 KiB
PHP
50 lines
1.7 KiB
PHP
<?php
|
|
namespace App\Test\Fixture;
|
|
|
|
use Cake\TestSuite\Fixture\TestFixture;
|
|
|
|
/**
|
|
* AccountMappingsFixture
|
|
*
|
|
*/
|
|
class AccountMappingsFixture extends TestFixture
|
|
{
|
|
|
|
/**
|
|
* Fields
|
|
*
|
|
* @var array
|
|
*/
|
|
// @codingStandardsIgnoreStart
|
|
public $fields = [
|
|
'id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'account_id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'shard_id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'created' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'modified' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'_constraints' => [
|
|
'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
|
|
'index_1' => ['type' => 'unique', 'columns' => ['account_id', 'shard_id'], 'length' => []],
|
|
],
|
|
'_options' => [
|
|
'engine' => 'MyISAM',
|
|
'collation' => 'latin1_swedish_ci'
|
|
],
|
|
];
|
|
// @codingStandardsIgnoreEnd
|
|
|
|
/**
|
|
* Records
|
|
*
|
|
* @var array
|
|
*/
|
|
public $records = [
|
|
[
|
|
'id' => '2beea3a4-1c1e-43b2-8378-88577c9f16d2',
|
|
'account_id' => 'a72a8d11-79d2-4120-a52f-2b37c0c04a5e',
|
|
'shard_id' => 'df0cfe5b-926f-41ad-90d4-be4489beb300',
|
|
'created' => '2016-05-06 07:55:01',
|
|
'modified' => '2016-05-06 07:55:01'
|
|
],
|
|
];
|
|
}
|