dreamjob/app/Test/Fixture/MicSysMicaccFixture.php

72 lines
3.0 KiB
PHP
Raw Normal View History

2014-02-18 12:10:29 +01:00
<?php
/**
* MicSysMicaccFixture
*
*/
class MicSysMicaccFixture extends CakeTestFixture {
/**
* Table name
*
* @var string
*/
public $table = 'mic_sys_micacc';
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
'first_name' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 30, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'last_name' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 30, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'is_staff' => array('type' => 'boolean', 'null' => false, 'default' => null),
'is_active' => array('type' => 'boolean', 'null' => false, 'default' => null),
'is_superuser' => array('type' => 'boolean', 'null' => false, 'default' => null),
'last_login' => array('type' => 'datetime', 'null' => true, 'default' => null),
'date_joined' => array('type' => 'datetime', 'null' => true, 'default' => null),
'password' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 128, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'mail' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 75, 'key' => 'unique', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'code' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'mannerofaddress_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'key' => 'index'),
'avatar' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'nickname' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'bday' => array('type' => 'date', 'null' => true, 'default' => null),
'comment' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'indexes' => array(
'PRIMARY' => array('column' => 'id', 'unique' => 1),
'mail' => array('column' => 'mail', 'unique' => 1),
'mic_sys_micacc_6bef5955' => array('column' => 'mannerofaddress_id', 'unique' => 0)
),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
);
/**
* Records
*
* @var array
*/
public $records = array(
array(
'id' => 1,
'first_name' => 'Lorem ipsum dolor sit amet',
'last_name' => 'Lorem ipsum dolor sit amet',
'is_staff' => 1,
'is_active' => 1,
'is_superuser' => 1,
'last_login' => '2014-01-26 13:53:30',
'date_joined' => '2014-01-26 13:53:30',
'password' => 'Lorem ipsum dolor sit amet',
'mail' => 'Lorem ipsum dolor sit amet',
'code' => 'Lorem ipsum dolor sit amet',
'mannerofaddress_id' => 1,
'avatar' => 'Lorem ipsum dolor sit amet',
'nickname' => 'Lorem ipsum dolor sit amet',
'bday' => '2014-01-26',
'comment' => 'Lorem ipsum dolor sit amet'
),
);
}