]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Deleted_notice.php
Merge branch 'master' into social-master
[quix0rs-gnu-social.git] / classes / Deleted_notice.php
1 <?php
2 /*
3  * Laconica - a distributed open-source microblogging tool
4  * Copyright (C) 2008, 2009, Control Yourself, Inc.
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Affero General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the
14  * GNU Affero General Public License for more details.
15  *
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program.     If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 if (!defined('STATUSNET')) {
21     exit(1);
22 }
23
24 /**
25  * Table Definition for notice
26  */
27 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
28
29 class Deleted_notice extends Managed_DataObject
30 {
31     ###START_AUTOCODE
32     /* the code below is auto generated do not remove the above tag */
33
34     public $__table = 'deleted_notice';                  // table name
35     public $id;                              // int(4)  primary_key not_null
36     public $profile_id;                      // int(4)   not_null
37     public $uri;                             // varchar(255)  unique_key
38     public $created;                         // datetime()   not_null
39     public $deleted;                         // datetime()   not_null
40
41     /* the code above is auto generated do not remove the tag below */
42     ###END_AUTOCODE
43
44     public static function schemaDef()
45     {
46         return array(
47             'fields' => array(
48                 'id' => array('type' => 'int', 'not null' => true, 'description' => 'identity of notice'),
49                 'profile_id' => array('type' => 'int', 'not null' => true, 'description' => 'author of the notice'),
50                 'uri' => array('type' => 'varchar', 'length' => 255, 'description' => 'universally unique identifier, usually a tag URI'),
51                 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the notice record was created'),
52                 'deleted' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the notice record was created'),
53             ),
54             'primary key' => array('id'),
55             'unique keys' => array(
56                 'deleted_notice_uri_key' => array('uri'),
57             ),
58             'indexes' => array(
59                 'deleted_notice_profile_id_idx' => array('profile_id'),
60             ),
61         );
62     }
63 }