]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-thread.md
Merge pull request #10411 from annando/header-noscrape
[friendica.git] / doc / database / db_post-thread.md
index 8b847e628303f3c78e21f26bc276156dc56b502b..96fd0d42756e3bc7774c07ebe0d99f9c719e5ada 100644 (file)
@@ -3,6 +3,9 @@ Table post-thread
 
 Thread related data
 
+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                |       |
@@ -15,4 +18,26 @@ Thread related data
 | 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)