]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-thread.md
HTML-escape notification contact names
[friendica.git] / doc / database / db_post-thread.md
1 Table post-thread
2 ===========
3
4 Thread related data
5
6 Fields
7 ------
8
9 | Field           | Description                                                                                             | Type         | Null | Key | Default             | Extra |
10 | --------------- | ------------------------------------------------------------------------------------------------------- | ------------ | ---- | --- | ------------------- | ----- |
11 | uri-id          | Id of the item-uri table entry that contains the item uri                                               | int unsigned | NO   | PRI | NULL                |       |
12 | conversation-id | Id of the item-uri table entry that contains the conversation uri                                       | int unsigned | YES  |     | NULL                |       |
13 | owner-id        | Item owner                                                                                              | int unsigned | NO   |     | 0                   |       |
14 | author-id       | Item author                                                                                             | int unsigned | NO   |     | 0                   |       |
15 | causer-id       | Link to the contact table with uid=0 of the contact that caused the item creation                       | int unsigned | YES  |     | NULL                |       |
16 | network         |                                                                                                         | char(4)      | NO   |     |                     |       |
17 | created         |                                                                                                         | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
18 | received        |                                                                                                         | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
19 | changed         | Date that something in the conversation changed, indicating clients should fetch the conversation again | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
20 | commented       |                                                                                                         | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
21
22 Indexes
23 ------------
24
25 | Name            | Fields          |
26 | --------------- | --------------- |
27 | PRIMARY         | uri-id          |
28 | conversation-id | conversation-id |
29 | owner-id        | owner-id        |
30 | author-id       | author-id       |
31 | causer-id       | causer-id       |
32 | received        | received        |
33 | commented       | commented       |
34
35 Foreign Keys
36 ------------
37
38 | Field | Target Table | Target Field |
39 |-------|--------------|--------------|
40 | uri-id | [item-uri](help/database/db_item-uri) | id |
41 | conversation-id | [item-uri](help/database/db_item-uri) | id |
42 | owner-id | [contact](help/database/db_contact) | id |
43 | author-id | [contact](help/database/db_contact) | id |
44 | causer-id | [contact](help/database/db_contact) | id |
45
46 Return to [database documentation](help/database)