]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-engagement.md
Channels for audio, video and images
[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 | created      |                                                               | datetime           | YES  |     | NULL    |       |
16 | comments     | Number of comments                                            | mediumint unsigned | YES  |     | NULL    |       |
17 | activities   | Number of activities (like, dislike, ...)                     | mediumint unsigned | YES  |     | NULL    |       |
18
19 Indexes
20 ------------
21
22 | Name     | Fields   |
23 | -------- | -------- |
24 | PRIMARY  | uri-id   |
25 | owner-id | owner-id |
26 | created  | created  |
27
28 Foreign Keys
29 ------------
30
31 | Field | Target Table | Target Field |
32 |-------|--------------|--------------|
33 | uri-id | [item-uri](help/database/db_item-uri) | id |
34 | owner-id | [contact](help/database/db_contact) | id |
35
36 Return to [database documentation](help/database)