]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-engagement.md
Channels are a new way to see different content
[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 | author-id    | Link to the contact table with uid=0 of the author of this item | int unsigned       | NO   |     | 0       |       |
13 | contact-type | Person, organisation, news, community, relay                    | tinyint            | NO   |     | 0       |       |
14 | created      |                                                                 | datetime           | YES  |     | NULL    |       |
15 | comments     | Number of comments                                              | mediumint unsigned | YES  |     | NULL    |       |
16 | activities   | Number of activities (like, dislike, ...)                       | mediumint unsigned | YES  |     | NULL    |       |
17
18 Indexes
19 ------------
20
21 | Name      | Fields    |
22 | --------- | --------- |
23 | PRIMARY   | uri-id    |
24 | author-id | author-id |
25 | created   | created   |
26
27 Foreign Keys
28 ------------
29
30 | Field | Target Table | Target Field |
31 |-------|--------------|--------------|
32 | uri-id | [item-uri](help/database/db_item-uri) | id |
33 | author-id | [contact](help/database/db_contact) | id |
34
35 Return to [database documentation](help/database)