Deleted_notice.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. if (!defined('STATUSNET')) {
  20. exit(1);
  21. }
  22. /**
  23. * Table Definition for notice
  24. */
  25. require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
  26. class Deleted_notice extends Managed_DataObject
  27. {
  28. ###START_AUTOCODE
  29. /* the code below is auto generated do not remove the above tag */
  30. public $__table = 'deleted_notice'; // table name
  31. public $id; // int(4) primary_key not_null
  32. public $profile_id; // int(4) not_null
  33. public $uri; // varchar(255) unique_key
  34. public $created; // datetime() not_null
  35. public $deleted; // datetime() not_null
  36. /* the code above is auto generated do not remove the tag below */
  37. ###END_AUTOCODE
  38. public static function schemaDef()
  39. {
  40. return array(
  41. 'fields' => array(
  42. 'id' => array('type' => 'int', 'not null' => true, 'description' => 'identity of notice'),
  43. 'profile_id' => array('type' => 'int', 'not null' => true, 'description' => 'author of the notice'),
  44. 'uri' => array('type' => 'varchar', 'length' => 255, 'description' => 'universally unique identifier, usually a tag URI'),
  45. 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the notice record was created'),
  46. 'deleted' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the notice record was created'),
  47. ),
  48. 'primary key' => array('id'),
  49. 'unique keys' => array(
  50. 'deleted_notice_uri_key' => array('uri'),
  51. ),
  52. 'indexes' => array(
  53. 'deleted_notice_profile_id_idx' => array('profile_id'),
  54. ),
  55. );
  56. }
  57. }