X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_post-thread.md;h=96fd0d42756e3bc7774c07ebe0d99f9c719e5ada;hb=a2532ad7554602d631d9caabb5c74564328d1fff;hp=301a16a66fab36a0bf8e01e9835825929c283d2c;hpb=84ab5d61594ed92e0e28415d6c33df267a3636c5;p=friendica.git diff --git a/doc/database/db_post-thread.md b/doc/database/db_post-thread.md index 301a16a66f..96fd0d4275 100644 --- a/doc/database/db_post-thread.md +++ b/doc/database/db_post-thread.md @@ -1,17 +1,43 @@ Table post-thread =========== + Thread related data -| Field | Description | Type | Null | Key | Default | Extra | -| ----- | ----------- | ---- | ---- | --- | ------- | ----- | -| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | | | -| owner-id | Item owner | int unsigned | YES | | 0 | | -| author-id | Item author | int unsigned | YES | | 0 | | -| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO | | | | -| network | | char(4) | YES | | | | -| created | | datetime | YES | | 0001-01-01 00:00:00 | | -| received | | datetime | YES | | 0001-01-01 00:00:00 | | -| changed | Date that something in the conversation changed, indicating clients should fetch the conversation again | datetime | YES | | 0001-01-01 00:00:00 | | -| commented | | datetime | YES | | 0001-01-01 00:00:00 | | +Fields +------ + +| Field | Description | Type | Null | Key | Default | Extra | +| --------- | ------------------------------------------------------------------------------------------------------- | ------------ | ---- | --- | ------------------- | ----- | +| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | NO | PRI | NULL | | +| owner-id | Item owner | int unsigned | NO | | 0 | | +| author-id | Item author | int unsigned | NO | | 0 | | +| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | YES | | NULL | | +| network | | char(4) | NO | | | | +| created | | datetime | NO | | 0001-01-01 00:00:00 | | +| received | | datetime | NO | | 0001-01-01 00:00:00 | | +| changed | Date that something in the conversation changed, indicating clients should fetch the conversation again | datetime | NO | | 0001-01-01 00:00:00 | | +| commented | | datetime | NO | | 0001-01-01 00:00:00 | | + +Indexes +------------ + +| Name | Fields | +| --------- | --------- | +| PRIMARY | uri-id | +| owner-id | owner-id | +| author-id | author-id | +| causer-id | causer-id | +| received | received | +| commented | commented | + +Foreign Keys +------------ + +| Field | Target Table | Target Field | +|-------|--------------|--------------| +| uri-id | [item-uri](help/database/db_item-uri) | id | +| owner-id | [contact](help/database/db_contact) | id | +| author-id | [contact](help/database/db_contact) | id | +| causer-id | [contact](help/database/db_contact) | id | Return to [database documentation](help/database)