]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-engagement.md
Merge remote-tracking branch 'upstream/develop' into restricted
[friendica.git] / doc / database / db_post-engagement.md
1 Table post-engagement
2 ===========
3
4 Engagement data per post
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 | contact-type | Person, organisation, news, community, relay                          | tinyint            | NO   |     | 0       |       |
14 | media-type   | Type of media in a bit array (1 = image, 2 = video, 4 = audio         | tinyint            | NO   |     | 0       |       |
15 | language     | Language information about this post                                  | varbinary(128)     | YES  |     | NULL    |       |
16 | created      |                                                                       | datetime           | YES  |     | NULL    |       |
17 | restricted   | If true, this post is either unlisted or not from a federated network | boolean            | NO   |     | 0       |       |
18 | comments     | Number of comments                                                    | mediumint unsigned | YES  |     | NULL    |       |
19 | activities   | Number of activities (like, dislike, ...)                             | mediumint unsigned | YES  |     | NULL    |       |
20
21 Indexes
22 ------------
23
24 | Name     | Fields   |
25 | -------- | -------- |
26 | PRIMARY  | uri-id   |
27 | owner-id | owner-id |
28 | created  | created  |
29
30 Foreign Keys
31 ------------
32
33 | Field | Target Table | Target Field |
34 |-------|--------------|--------------|
35 | uri-id | [item-uri](help/database/db_item-uri) | id |
36 | owner-id | [contact](help/database/db_contact) | id |
37
38 Return to [database documentation](help/database)