contributions/usermanagement/model/classes/userroles.model.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Table Definition for userroles 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Usermanagement 00007 */ 00008 class DAOUserroles extends DataObjectBase { 00009 public $id; // int(10) not_null primary_key unsigned auto_increment 00010 public $name; 00011 00012 // now define your table structure. 00013 // key is column name, value is type 00014 protected function create_table_object() { 00015 return new DBTable( 00016 'userroles', 00017 array( 00018 new DBFieldInt('id', null, DBFieldInt::AUTOINCREMENT | DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL), 00019 new DBFieldText('name', 45, null, DBFieldText::NOT_NULL) 00020 ), 00021 'id' 00022 ); 00023 } 00024 }