3 * Laconica - a distributed open-source microblogging tool
4 * Copyright (C) 2008, 2009, Control Yourself, Inc.
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.
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.
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/>.
20 if (!defined('STATUSNET')) {
25 * Table Definition for notice
27 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
29 class Deleted_notice extends Managed_DataObject
32 /* the code below is auto generated do not remove the above tag */
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
41 /* the code above is auto generated do not remove the tag below */
44 public static function schemaDef()
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'),
54 'primary key' => array('id'),
55 'unique keys' => array(
56 'deleted_notice_uri_key' => array('uri'),
59 'deleted_notice_profile_id_idx' => array('profile_id'),