]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-engagement.md
Merge remote-tracking branch 'upstream/2023.09-rc' into user-defined-channels
[friendica.git] / doc / database / db_post-engagement.md
index c261586b3111e92d8aee1737e6771965e6ea5805..edca447f3d4ddbbdded372007ef692cd8fd6ffa7 100644 (file)
@@ -6,24 +6,28 @@ Engagement data per post
 Fields
 ------
 
-| Field        | Description                                                   | Type               | Null | Key | Default | Extra |
-| ------------ | ------------------------------------------------------------- | ------------------ | ---- | --- | ------- | ----- |
-| uri-id       | Id of the item-uri table entry that contains the item uri     | int unsigned       | NO   | PRI | NULL    |       |
-| owner-id     | Item owner                                                    | int unsigned       | NO   |     | 0       |       |
-| contact-type | Person, organisation, news, community, relay                  | tinyint            | NO   |     | 0       |       |
-| media-type   | Type of media in a bit array (1 = image, 2 = video, 4 = audio | tinyint            | NO   |     | 0       |       |
-| created      |                                                               | datetime           | YES  |     | NULL    |       |
-| comments     | Number of comments                                            | mediumint unsigned | YES  |     | NULL    |       |
-| activities   | Number of activities (like, dislike, ...)                     | mediumint unsigned | YES  |     | NULL    |       |
+| Field        | Description                                                           | Type               | Null | Key | Default | Extra |
+| ------------ | --------------------------------------------------------------------- | ------------------ | ---- | --- | ------- | ----- |
+| uri-id       | Id of the item-uri table entry that contains the item uri             | int unsigned       | NO   | PRI | NULL    |       |
+| owner-id     | Item owner                                                            | int unsigned       | NO   |     | 0       |       |
+| contact-type | Person, organisation, news, community, relay                          | tinyint            | NO   |     | 0       |       |
+| media-type   | Type of media in a bit array (1 = image, 2 = video, 4 = audio         | tinyint            | NO   |     | 0       |       |
+| language     | Language information about this post                                  | varbinary(128)     | YES  |     | NULL    |       |
+| searchtext   | Simplified text for the full text search                              | mediumtext         | YES  |     | NULL    |       |
+| created      |                                                                       | datetime           | YES  |     | NULL    |       |
+| restricted   | If true, this post is either unlisted or not from a federated network | boolean            | NO   |     | 0       |       |
+| comments     | Number of comments                                                    | mediumint unsigned | YES  |     | NULL    |       |
+| activities   | Number of activities (like, dislike, ...)                             | mediumint unsigned | YES  |     | NULL    |       |
 
 Indexes
 ------------
 
-| Name     | Fields   |
-| -------- | -------- |
-| PRIMARY  | uri-id   |
-| owner-id | owner-id |
-| created  | created  |
+| Name       | Fields               |
+| ---------- | -------------------- |
+| PRIMARY    | uri-id               |
+| owner-id   | owner-id             |
+| created    | created              |
+| searchtext | FULLTEXT, searchtext |
 
 Foreign Keys
 ------------