]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-thread.md
Formatted index list
[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 | owner-id  | Item owner                                                                                              | int unsigned | NO   |     | 0                   |       |
13 | author-id | Item author                                                                                             | int unsigned | NO   |     | 0                   |       |
14 | causer-id | Link to the contact table with uid=0 of the contact that caused the item creation                       | int unsigned | YES  |     | NULL                |       |
15 | network   |                                                                                                         | char(4)      | NO   |     |                     |       |
16 | created   |                                                                                                         | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
17 | received  |                                                                                                         | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
18 | changed   | Date that something in the conversation changed, indicating clients should fetch the conversation again | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
19 | commented |                                                                                                         | datetime     | NO   |     | 0001-01-01 00:00:00 |       |
20
21 Indexes
22 ------------
23
24 | Name      | Fields    |
25 | --------- | --------- |
26 | PRIMARY   | uri-id    |
27 | owner-id  | owner-id  |
28 | author-id | author-id |
29 | causer-id | causer-id |
30 | received  | received  |
31 | commented | commented |
32
33 Foreign Keys
34 ------------
35
36 | Field | Target Table | Target Field |
37 |-------|--------------|--------------|
38 | uri-id | [item-uri](help/database/db_item-uri) | id |
39 | owner-id | [contact](help/database/db_contact) | id |
40 | author-id | [contact](help/database/db_contact) | id |
41 | causer-id | [contact](help/database/db_contact) | id |
42
43 Return to [database documentation](help/database)