Guest User

Untitled

a guest
Jun 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. abstract class BaseUser extends Doctrine_Record
  2. {
  3. public function setTableDefinition()
  4. {
  5. $this->setTableName('user');
  6. $this->hasColumn('id', 'integer', 8, array('type' => 'integer', 'length' => 8, 'primary' => true, 'autoincrement' => true));
  7. $this->hasColumn('first_name', 'string', 255, array('type' => 'string', 'length' => 255));
  8. $this->hasColumn('last_name', 'string', 255, array('type' => 'string', 'length' => 255));
  9. $this->hasColumn('username', 'string', 255, array('type' => 'string', 'length' => 255));
  10. $this->hasColumn('password', 'string', 255, array('type' => 'string', 'length' => 255));
  11. $this->hasColumn('type', 'string', 255, array('type' => 'string', 'length' => 255));
  12. $this->hasColumn('is_active', 'integer', 1, array('type' => 'integer', 'length' => 1, 'default' => '1'));
  13. $this->hasColumn('is_super_admin', 'integer', 1, array('type' => 'integer', 'length' => 1, 'default' => '0'));
  14. $this->hasColumn('created_at', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
  15. $this->hasColumn('updated_at', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
  16. }
  17. }
Add Comment
Please, Sign In to add comment