chaw / branches / master / tests / fixtures / comment_fixture.php
history
<?php
/**
* Chaw : source code and project management
*
* @copyright Copyright 2009, Garrett J. Woodworth (gwoohoo@gmail.com)
* @license GNU AFFERO GENERAL PUBLIC LICENSE v3 (http://opensource.org/licenses/agpl-v3.html)
*
*/
class CommentFixture extends CakeTestFixture {
var $name = 'Comment';
var $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
'model' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 40),
'foreign_key' => array('type' => 'integer', 'null' => false, 'default' => '0'),
'user_id' => array('type' => 'integer', 'null' => false, 'default' => '0'),
'reason' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 100),
'changes' => array('type' => 'text', 'null' => true, 'default' => NULL),
'body' => array('type' => 'text', 'null' => true, 'default' => NULL),
'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
}
?>