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

17 lines
906 B
PHP

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