php-censor/B8Framework/tests/data/generation/update_models/Dos.php
2016-06-23 21:18:41 +06:00

24 lines
714 B
PHP
Executable file

<?php
namespace Update\Model\Base;
use b8\Model;
class Dos extends Model
{
protected $_tableName = 'dos';
public $columns = array(
'id' => array('type' => 'int', 'primary_key' => true, 'auto_increment' => true),
'field_varchar' => array('type' => 'varchar', 'length' => '250', 'default' => 'Hello World'),
'field_datetime'=> array('type' => 'datetime'),
'field_int' => array('type' => 'int'),
);
public $indexes = array(
'PRIMARY' => array('unique' => true, 'columns' => 'id'),
'idx_test_1' => array('unique' => false, 'columns' => 'field_int'),
'idx_test_2' => array('columns' => 'field_datetime'),
);
public $foreignKeys = array(
);
}