]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Foreign_service.php
8ba73521c1986d41442f45a9a846ff289f90a5e3
[quix0rs-gnu-social.git] / classes / Foreign_service.php
1 <?php
2 /**
3  * Table Definition for foreign_service
4  */
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
6
7 class Foreign_service extends Managed_DataObject
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
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(255)
16     public $created;                         // datetime()   not_null
17     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
18
19     /* Static get */
20     function staticGet($k,$v=null)
21     { return Memcached_DataObject::staticGet('Foreign_service',$k,$v); }
22
23     /* the code above is auto generated do not remove the tag below */
24     ###END_AUTOCODE
25
26     public static function schemaDef()
27     {
28         return array(
29             'fields' => array(
30                 'id' => array('type' => 'int', 'not null' => true, 'description' => 'numeric key for service'),
31                 'name' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'name of the service'),
32                 'description' => array('type' => 'varchar', 'length' => 255, 'description' => 'description'),
33                 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
34                 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
35             ),
36             'primary key' => array('id'),
37             'unique keys' => array(
38                 'foreign_service_name_key' => array('name'),
39             ),
40         );
41     }
42 }