Location_namespace.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /*
  3. * StatusNet - the distributed open-source microblogging tool
  4. * Copyright (C) 2009, StatusNet, 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') && !defined('LACONICA')) { exit(1); }
  20. /**
  21. * Table Definition for location_namespace
  22. */
  23. require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
  24. class Location_namespace extends Managed_DataObject
  25. {
  26. ###START_AUTOCODE
  27. /* the code below is auto generated do not remove the above tag */
  28. public $__table = 'location_namespace'; // table name
  29. public $id; // int(4) primary_key not_null
  30. public $description; // varchar(255)
  31. public $created; // datetime() not_null
  32. public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
  33. /* the code above is auto generated do not remove the tag below */
  34. ###END_AUTOCODE
  35. public static function schemaDef()
  36. {
  37. return array(
  38. 'fields' => array(
  39. 'id' => array('type' => 'int', 'not null' => true, 'description' => 'identity for this namespace'),
  40. 'description' => array('type' => 'varchar', 'length' => 255, 'description' => 'description of the namespace'),
  41. 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date the record was created'),
  42. 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
  43. ),
  44. 'primary key' => array('id'),
  45. );
  46. }
  47. }