+ public static function schemaDef()
+ {
+ return array(
+ 'fields' => array(
+ 'id' => array('type' => 'serial', 'not null' => true, 'description' => 'unique identifier'),
+ 'frame' => array('type' => 'blob', 'not null' => true, 'description' => 'data: object reference or opaque string'),
+ 'transport' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'queue for what? "email", "xmpp", "sms", "irc", ...'),
+ 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
+ 'claimed' => array('type' => 'datetime', 'description' => 'date this item was claimed'),
+ ),
+ 'primary key' => array('id'),
+ 'indexes' => array(
+ 'queue_item_created_idx' => array('created'),
+ ),
+ );
+ }
+