]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Notice_source.php
If there's no Happening, we can't use the RSVP.
[quix0rs-gnu-social.git] / classes / Notice_source.php
1 <?php
2 /**
3  * Table Definition for notice_source
4  */
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
6
7 class Notice_source extends Managed_DataObject
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
12     public $__table = 'notice_source';                   // table name
13     public $code;                            // varchar(32)  primary_key not_null
14     public $name;                            // varchar(191)   not_null   not 255 because utf8mb4 takes more space
15     public $url;                             // varchar(191)   not_null   not 255 because utf8mb4 takes more space
16     public $created;                         // datetime()   not_null
17     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
18
19     /* the code above is auto generated do not remove the tag below */
20     ###END_AUTOCODE
21
22     public static function schemaDef()
23     {
24         return array(
25             'fields' => array(
26                 'code' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'source code'),
27                 'name' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'name of the source'),
28                 'url' => array('type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'url to link to'),
29                 'notice_id' => array('type' => 'int', 'not null' => true, 'description' => 'date this record was created'),
30                 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
31                 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
32             ),
33             'primary key' => array('code'),
34         );
35     }
36 }