1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/models/ZeroValueTest.php

20 lines
928 B
PHP

<?php
class ZeroValueTest extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true,));
$this->hasColumn('username', 'string', 128, array('notnull' => true,));
$this->hasColumn('algorithm', 'string', 128, array('default' => 'sha1', 'notnull' => true,));
$this->hasColumn('salt', 'string', 128, array('notnull' => true,));
$this->hasColumn('password', 'string', 128, array('notnull' => true,));
$this->hasColumn('created_at', 'timestamp', null, array());
$this->hasColumn('last_login', 'timestamp', null, array());
$this->hasColumn('is_active', 'boolean', null, array('default' => true, 'notnull' => true,));
$this->hasColumn('is_super_admin', 'boolean', null, array('default' => false, 'notnull' => true,));
}
public function setUp()
{ }
}