3 * Table Definition for foreign_service
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
7 class Foreign_service extends Managed_DataObject
10 /* the code below is auto generated do not remove the above tag */
12 public $__table = 'foreign_service'; // table name
13 public $id; // int(4) primary_key not_null
14 public $name; // varchar(32) unique_key not_null
15 public $description; // varchar(191) not 255 because utf8mb4 takes more space
16 public $created; // datetime() not_null
17 public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
19 /* the code above is auto generated do not remove the tag below */
22 public static function schemaDef()
26 'id' => array('type' => 'int', 'not null' => true, 'description' => 'numeric key for service'),
27 'name' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'name of the service'),
28 'description' => array('type' => 'varchar', 'length' => 191, 'description' => 'description'),
29 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
30 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
32 'primary key' => array('id'),
33 'unique keys' => array(
34 'foreign_service_name_key' => array('name'),