php-censor/tests/B8Framework/data/generation/models/Uno.php
Dmitry Khomutov 047311c481 Code style fixes
2016-06-23 21:21:15 +06:00

27 lines
No EOL
859 B
PHP
Executable file

<?php
namespace Test\Model\Base;
use b8\Model;
class Uno extends Model
{
protected $_tableName = 'uno';
public $columns = [
'id' => ['type' => 'int', 'primary_key' => true, 'auto_increment' => true],
'field_varchar' => ['type' => 'varchar', 'length' => '250'],
'field_text' => ['type' => 'text'],
'field_ltext' => ['type' => 'longtext'],
'field_mtext' => ['type' => 'mediumtext'],
'field_date' => ['type' => 'date'],
'field_datetime' => ['type' => 'datetime'],
'field_int' => ['type' => 'int'],
'field_tinyint' => ['type' => 'tinyint', 'length' => '1'],
'field_float' => ['type' => 'float'],
'field_double' => ['type' => 'double', 'length' => '15,2'],
];
public $indexes = [];
public $foreignKeys = [];
}