]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-engagement.md
HTML-escape notification contact names
[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 | searchtext   | Simplified text for the full text search                              | mediumtext         | YES  |     | NULL    |       |
17 | created      |                                                                       | datetime           | YES  |     | NULL    |       |
18 | restricted   | If true, this post is either unlisted or not from a federated network | boolean            | NO   |     | 0       |       |
19 | comments     | Number of comments                                                    | mediumint unsigned | YES  |     | NULL    |       |
20 | activities   | Number of activities (like, dislike, ...)                             | mediumint unsigned | YES  |     | NULL    |       |
21
22 Indexes
23 ------------
24
25 | Name       | Fields               |
26 | ---------- | -------------------- |
27 | PRIMARY    | uri-id               |
28 | owner-id   | owner-id             |
29 | created    | created              |
30 | searchtext | FULLTEXT, searchtext |
31
32 Foreign Keys
33 ------------
34
35 | Field | Target Table | Target Field |
36 |-------|--------------|--------------|
37 | uri-id | [item-uri](help/database/db_item-uri) | id |
38 | owner-id | [contact](help/database/db_contact) | id |
39
40 Return to [database documentation](help/database)