- "iid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "primary" => "1"),
- "uid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0"),
- "contact-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0"),
- "gcontact-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0"),
- "owner-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0"),
- "author-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0"),
- "created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
- "edited" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
- "commented" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
- "received" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
- "changed" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
+ "iid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "primary" => "1", "relation" => array("item" => "id")),
+ "uid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "relation" => array("user" => "uid")),
+ "contact-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0", "relation" => array("contact" => "id")),
+ "gcontact-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0", "relation" => array("gcontact" => "id")),
+ "owner-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0", "relation" => array("contact" => "id")),
+ "author-id" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0", "relation" => array("contact" => "id")),
+ "created" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE),
+ "edited" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE),
+ "commented" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE),
+ "received" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE),
+ "changed" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE),