67 lines
3.0 KiB
PHP
67 lines
3.0 KiB
PHP
<?php
|
|
/**
|
|
* MicDjJobsOpeningFixture
|
|
*
|
|
*/
|
|
class MicDjJobsOpeningFixture extends CakeTestFixture {
|
|
|
|
/**
|
|
* Table name
|
|
*
|
|
* @var string
|
|
*/
|
|
public $table = 'mic_dj_jobs_opening';
|
|
|
|
/**
|
|
* Fields
|
|
*
|
|
* @var array
|
|
*/
|
|
public $fields = array(
|
|
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
|
|
'street' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
|
|
'city' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
|
|
'postcode' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
|
|
'title' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
|
|
'company_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'index'),
|
|
'graducation_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'key' => 'index'),
|
|
'branch' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
|
|
'kindofjob_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'index'),
|
|
'startdate' => array('type' => 'date', 'null' => false, 'default' => null),
|
|
'enddate' => array('type' => 'date', 'null' => true, 'default' => null),
|
|
'active' => array('type' => 'boolean', 'null' => false, 'default' => null),
|
|
'text' => array('type' => 'text', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
|
|
'indexes' => array(
|
|
'PRIMARY' => array('column' => 'id', 'unique' => 1),
|
|
'mic_dj_jobs_opening_543518c6' => array('column' => 'company_id', 'unique' => 0),
|
|
'mic_dj_jobs_opening_b05158b4' => array('column' => 'graducation_id', 'unique' => 0),
|
|
'mic_dj_jobs_opening_840a080f' => array('column' => 'kindofjob_id', 'unique' => 0)
|
|
),
|
|
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
|
|
);
|
|
|
|
/**
|
|
* Records
|
|
*
|
|
* @var array
|
|
*/
|
|
public $records = array(
|
|
array(
|
|
'id' => 1,
|
|
'street' => 'Lorem ipsum dolor sit amet',
|
|
'city' => 'Lorem ipsum dolor sit amet',
|
|
'postcode' => 'Lorem ipsum dolor sit amet',
|
|
'title' => 'Lorem ipsum dolor sit amet',
|
|
'company_id' => 1,
|
|
'graducation_id' => 1,
|
|
'branch' => 'Lorem ipsum dolor sit amet',
|
|
'kindofjob_id' => 1,
|
|
'startdate' => '2014-02-15',
|
|
'enddate' => '2014-02-15',
|
|
'active' => 1,
|
|
'text' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
|
|
),
|
|
);
|
|
|
|
}
|