]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-engagement.md
Use the owner, not the author
[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 | 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 | owner-id | owner-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 | owner-id | [contact](help/database/db_contact) | id |
34
35 Return to [database documentation](help/database)