]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-engagement.md
Use the owner, not the author
[friendica.git] / doc / database / db_post-engagement.md
index e49881502c4d461d96e293dce1719fa577a2371f..8c4a2ae0066fbc9e2f30d63d872ed216fb1259c7 100644 (file)
@@ -6,23 +6,23 @@ 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    |       |
-| author-id    | Link to the contact table with uid=0 of the author of this item | int unsigned       | NO   |     | 0       |       |
-| contact-type | Person, organisation, news, community, relay                    | 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       |       |
+| created      |                                                           | datetime           | YES  |     | NULL    |       |
+| comments     | Number of comments                                        | mediumint unsigned | YES  |     | NULL    |       |
+| activities   | Number of activities (like, dislike, ...)                 | mediumint unsigned | YES  |     | NULL    |       |
 
 Indexes
 ------------
 
-| Name      | Fields    |
-| --------- | --------- |
-| PRIMARY   | uri-id    |
-| author-id | author-id |
-| created   | created   |
+| Name     | Fields   |
+| -------- | -------- |
+| PRIMARY  | uri-id   |
+| owner-id | owner-id |
+| created  | created  |
 
 Foreign Keys
 ------------
@@ -30,6 +30,6 @@ Foreign Keys
 | Field | Target Table | Target Field |
 |-------|--------------|--------------|
 | uri-id | [item-uri](help/database/db_item-uri) | id |
-| author-id | [contact](help/database/db_contact) | id |
+| owner-id | [contact](help/database/db_contact) | id |
 
 Return to [database documentation](help/database)