+ "inbox-entry" => [
+ "comment" => "Incoming activity",
+ "fields" => [
+ "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
+ "activity-id" => ["type" => "varbinary(255)", "comment" => "id of the incoming activity"],
+ "object-id" => ["type" => "varbinary(255)", "comment" => ""],
+ "in-reply-to-id" => ["type" => "varbinary(255)", "comment" => ""],
+ "conversation" => ["type" => "varbinary(255)", "comment" => ""],
+ "type" => ["type" => "varchar(64)", "comment" => "Type of the activity"],
+ "object-type" => ["type" => "varchar(64)", "comment" => "Type of the object activity"],
+ "object-object-type" => ["type" => "varchar(64)", "comment" => "Type of the object's object activity"],
+ "received" => ["type" => "datetime", "comment" => "Receiving date"],
+ "activity" => ["type" => "mediumtext", "comment" => "The JSON activity"],
+ "signer" => ["type" => "varchar(255)", "comment" => ""],
+ "push" => ["type" => "boolean", "comment" => "Is the entry pushed or have pulled it?"],
+ "trust" => ["type" => "boolean", "comment" => "Do we trust this entry?"],
+ "wid" => ["type" => "int unsigned", "foreign" => ["workerqueue" => "id"], "comment" => "Workerqueue id"], ],
+ "indexes" => [
+ "PRIMARY" => ["id"],
+ "activity-id" => ["UNIQUE", "activity-id"],
+ "object-id" => ["object-id"],
+ "received" => ["received"],
+ "wid" => ["wid"],
+ ]
+ ],
+ "inbox-entry-receiver" => [
+ "comment" => "Receiver for the incoming activity",
+ "fields" => [
+ "queue-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["inbox-entry" => "id"], "comment" => ""],
+ "uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "foreign" => ["user" => "uid"], "comment" => "User id"],
+ ],
+ "indexes" => [
+ "PRIMARY" => ["queue-id", "uid"],
+ "uid" => ["uid"],
+ ]
+ ],