public $__table = 'conversation'; // table name
public $id; // int(4) primary_key not_null
- public $uri; // varchar(225) unique_key
+ public $uri; // varchar(255) unique_key
public $created; // datetime not_null
public $modified; // timestamp not_null default_CURRENT_TIMESTAMP
return array(
'fields' => array(
'id' => array('type' => 'serial', 'not null' => true, 'description' => 'unique identifier'),
- 'uri' => array('type' => 'varchar', 'length' => 225, 'description' => 'URI of the conversation'),
+ 'uri' => array('type' => 'varchar', 'length' => 255, 'description' => 'URI of the conversation'),
'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
),
class Group_message extends Managed_DataObject
{
public $__table = 'group_message'; // table name
- public $id; // varchar(36) primary_key not_null
+ public $id; // char(36) primary_key not_null
public $uri; // varchar(255)
public $from_profile; // int
public $to_group; // int
{
return array(
'fields' => array(
- 'id' => array('type' => 'varchar', 'not null' => true, 'length' => 36, 'description' => 'message uuid'),
+ 'id' => array('type' => 'char', 'not null' => true, 'length' => 36, 'description' => 'message uuid'),
'uri' => array('type' => 'varchar', 'not null' => true, 'length' => 255, 'description' => 'message uri'),
'url' => array('type' => 'varchar', 'not null' => true, 'length' => 255, 'description' => 'representation url'),
'from_profile' => array('type' => 'int', 'not null' => true, 'description' => 'sending profile ID'),
return array(
'fields' => array(
'to_profile' => array('type' => 'int', 'not null' => true, 'description' => 'id of group direct message'),
- 'group_message_id' => array('type' => 'varchar', 'not null' => true, 'length' => 36, 'description' => 'group message uuid'),
+ 'group_message_id' => array('type' => 'char', 'not null' => true, 'length' => 36, 'description' => 'related group message uuid'),
'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
),
{\r
return array(\r
'fields' => array(\r
- 'id' => array('type' => 'int', 'not null' => true, 'description' => 'Unique ID for entry'),\r
+ 'id' => array('type' => 'serial', 'not null' => true, 'description' => 'Unique ID for entry'),\r
'data' => array('type' => 'blob', 'not null' => true, 'description' => 'data blob'),\r
'prioritise' => array('type' => 'int', 'size' => 'tiny', 'description' => 'tinyint priority value'),\r
'attempts' => array('type' => 'int', 'not null' => true, 'description' => 'attempts count'),\r
{\r
return array(\r
'fields' => array(\r
- 'id' => array('type' => 'int', 'not null' => true, 'description' => 'Unique ID for entry'),\r
+ 'id' => array('type' => 'serial', 'not null' => true, 'description' => 'Unique ID for entry'),\r
'screenname' => array('type' => 'varchar', 'length' => 255, 'description' => 'from screenname'),\r
'message' => array('type' => 'text', 'not null' => true, 'description' => 'MSN message text'),\r
'claimed' => array('type' => 'datetime', 'description' => 'date this irc message was claimed'),\r
{
return array(
'fields' => array(
- 'id' => array('type' => 'int', 'not null' => true, 'description' => 'FeedSub local unique id'),
+ 'id' => array('type' => 'serial', 'not null' => true, 'description' => 'FeedSub local unique id'),
'uri' => array('type' => 'varchar', 'not null' => true, 'length' => 255, 'description' => 'FeedSub uri'),
'huburi' => array('type' => 'text', 'description' => 'FeedSub hub-uri'),
'verify_token' => array('type' => 'text', 'description' => 'FeedSub verify-token'),