Inhalt
Field | Description | Type | Null | Key | Default | Extra |
---|---|---|---|---|---|---|
id | Sequential ID | int(10) unsigned | NO | PRI | NULL | auto_increment |
mid | Message-id - globally unique, there can be several items with the same message-ID in the table as they may have different uid owners | char(255) | NO | MUL | ||
aid | channel_account_id of the channel_id (uid) which owns this copy of the item | int(10) unsigned | NO | MUL | 0 | |
uid | channel_id (uid) which owns this copy of the item | int(10) unsigned | NO | MUL | 0 | |
parent | item.id of the parent to this item if it is a reply of some form; otherwise this must be set to the id of this item | int(10) unsigned | NO | MUL | 0 | |
parent_mid | Globally unique message-id of the parent to this item | char(255) | NO | MUL | ||
thr_parent | If the parent of this item is not the top-level item in the conversation, the message-id of the immediate parent; otherwise set to parent_mid | char(255) | NO | |||
created | Creation timestamp. If creation is more than ten minutes into the future, set item_delayed to 1; it will automatically be delivered by the poller once the created time has passed | datetime | NO | MUL | 0000-00-00 00:00:00 | |
edited | Date of last edit (default is created) | datetime | NO | MUL | 0000-00-00 00:00:00 | |
expires | Date this item expires and will be removed | datetime | NO | MUL | 0000-00-00 00:00:00 | |
commented | Date of last comment/reply to this item | datetime | NO | MUL | 0000-00-00 00:00:00 | |
received | [Date the item was received at this sitetd][/td]datetime | NO | MUL | 0000-00-00 00:00:00 | ||
changed | Date that something in the conversation changed, indicating clients should fetch the conversation again | datetime | NO | MUL | 0000-00-00 00:00:00 | |
comments_closed | Date after which no more comments will be accepted | datetime | NO | MUL | 0000-00-00 00:00:00 | |
owner_xchan | xchan_hash of the owner of this conversation (this is who replies are sent to) | char(255) | NO | MUL | ||
author_xchan | xchan_hash of the author of this item | char(255) | NO | MUL | ||
source_xchan | xchan_hash of the external source of this item belongs to multiple delivery chains and comments need to be uplinked | char(255) | NO | |||
mimetype | mime type of the content body | char(255) | NO | MUL | ||
title | item title | text | NO | MUL | NULL | |
body | item body content | mediumtext | NO | MUL | NULL | |
app | application which generated this item | char(255) | NO | |||
lang | auto-detected language | char(64) | NO | |||
revision | future use, version control | int(10) unsigned | NO | MUL | 0 | |
verb | ActivityStreams verb (old style URI) | char(255) | NO | MUL | ||
obj_type | ActivityStreams object type (old style URI) | char(255) | NO | |||
obj | JSON encoded object structure unless it is an implied object (normal post) | text | NO | NULL | ||
tgt_type | ActivityStreams target type if applicable (URI) | char(255) | NO | |||
target | JSON encoded target structure if used | text | NO | NULL | ||
layout_mid | For webpages, which layout (mid or message_id) to use when displaying this page | char(255) | NO | MUL | ||
postopts | External post connectors add their network name to this comma-separated string to identify that they should be delivered to these networks during delivery | text | NO | NULL | ||
route | comma separated xchan list of xchans where this message was routed on its way to this destination, used for route loop discovery and rejection of comments which arrived by alternate routes and may have different permissions | text | NO | NULL | ||
llink | URL of a displayable copy of this post/conversation on this site | char(255) | NO | MUL | ||
plink | permalink or URL toa displayable copy of the message at its source | char(255) | NO | |||
resource_id | Used to link other tables to items, it identifies the linked resource and if set must also set resource_type | char(255) | NO | |||
resource_type | default none, if a linked resource this should be the name of the resource type such as "photo" or "event" | char(16) | NO | MUL | ||
attach | JSON structure representing attachments to this item | mediumtext | NO | NULL | ||
sig | RSA signature of the item body by the original author if the private key is available | text | NO | NULL | ||
diaspora_meta | Used to store Diaspora comment signatures with their weird requirements | mediumtext | NO | NULL | ||
location | text location where this item originated | char(255) | NO | |||
coord | longitude/latitude pair representing location where this item originated | char(255) | NO | |||
public_policy | If the author has specified restrictions (this network, this site) etc. for distribution, the corresponding policy text is present here and item_private = 1 | char(255) | NO | MUL | ||
comment_policy | If the author has specified comment restrictions (thei network, this site, etc.) the corresponding policy text is present here | char(255) | NO | MUL | ||
allow_cid | Access Control - list of allowed xchans '<xchan1><xchan2>...' | mediumtext | NO | MUL | NULL | |
allow_gid | Access Control - list of allowed group hashes, see allow_cidmediumtext | NO | MUL | NULL | ||
deny_cid | Access Control - list of denied xchans | mediumtext | NO | MUL | NULL | |
deny_gid | Access Control - list of denied groups | mediumtext | NO | MUL | NULL | |
item_restrict | no longer usedint(11) | NO | MUL | 0 | ||
item_flags | no longer used | int(11) | NO | MUL | 0 | |
item_private | distribution is restricted | tinyint(4) | NO | MUL | 0 | |
item_origin | item originated at this site | tinyint(4) | NO | MUL | 0 | |
item_unseen | item has not been seen | tinyint(4) | NO | MUL | 0 | |
item_starred | item has been favourited | tinyint(4) | NO | MUL | 0 | |
item_uplink | This item is part of a multiple delivery chain and must be uplinked to the original sender (source_xchan) | tinyint(4) | NO | MUL | 0 | |
item_consensus | This item allows voting tools | tinyint(4) | NO | MUL | 0 | |
item_wall | This item was posted to the wall of uid | tinyint(4) | NO | MUL | 0 | |
item_thread_top | parent = id, this is the top post in a conversation | tinyint(4) | NO | MUL | 0 | |
item_notshown | tinyint(4) | NO | MUL | 0 | ||
item_nsfw | tinyint(4) | NO | MUL | 0 | ||
item_relay | tinyint(4) | NO | MUL | 0 | ||
item_mentionsme | The owner of this item was mentioned in it | tinyint(4) | NO | MUL | 0 | |
item_nocomment | if 1, no comments are allowed | tinyint(4) | NO | MUL | 0 | |
item_obscured | no longer used | tinyint(4) | NO | MUL | 0 | |
item_verified | the signature has been verified on this site | tinyint(4) | NO | MUL | 0 | |
item_retained | tinyint(4) | NO | MUL | 0 | ||
item_rss | item originated in a feed | tinyint(4) | NO | MUL | 0 | |
item_deleted | item has been deleted | tinyint(4) | NO | MUL | 0 | |
item_type | used to identify webpage and design element types, 0 is a normal conversation item | tinyint(4) | NO | MUL | 0 | |
item_hidden | 0 or 1 if item is not to be displayed | tinyint(4) | NO | MUL | 0 | |
item_unpublished | tinyint(4) | NO | MUL | 0 | ||
item_delayed | item is posted in the future | tinyint(4) | NO | MUL | 0 | |
item_pending_remove | item is in the process of being removed | tinyint(4) | NO | MUL | 0 | |
item_blocked | tinyint(4) | NO | MUL | 0 |
Return to database documentation