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
42 function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Deleted_notice',$k,$v); }
44 /* the code above is auto generated do not remove the tag below */
47 public static function schemaDef()
51 'id' => array('type' => 'int', 'not null' => true, 'description' => 'identity of notice'),
52 'profile_id' => array('type' => 'int', 'not null' => true, 'description' => 'author of the notice'),
53 'uri' => array('type' => 'varchar', 'length' => 255, 'description' => 'universally unique identifier, usually a tag URI'),
54 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the notice record was created'),
55 'deleted' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the notice record was created'),
57 'primary key' => array('id'),
58 'unique keys' => array(
59 'deleted_notice_uri_key' => array('uri'),
62 'deleted_notice_profile_id_idx' => array('profile_id'),