2023-09-01 21:56:59 +00:00
|
|
|
Table post-engagement
|
|
|
|
===========
|
|
|
|
|
|
|
|
Engagement data per post
|
|
|
|
|
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2023-09-17 19:28:38 +00:00
|
|
|
| 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 | |
|
2024-02-01 23:08:53 +00:00
|
|
|
| iso-639-1 | Language information about this post in the ISO 639-1 format | char(2) | YES | | NULL | |
|
2023-09-21 23:27:05 +00:00
|
|
|
| searchtext | Simplified text for the full text search | mediumtext | YES | | NULL | |
|
2024-01-30 10:05:05 +00:00
|
|
|
| size | Body size | int unsigned | YES | | NULL | |
|
2023-09-17 19:28:38 +00:00
|
|
|
| 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 | |
|
2023-09-01 21:56:59 +00:00
|
|
|
|
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2023-09-21 23:27:05 +00:00
|
|
|
| Name | Fields |
|
|
|
|
| ---------- | -------------------- |
|
|
|
|
| PRIMARY | uri-id |
|
|
|
|
| owner-id | owner-id |
|
|
|
|
| created | created |
|
|
|
|
| searchtext | FULLTEXT, searchtext |
|
2023-09-01 21:56:59 +00:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| uri-id | [item-uri](help/database/db_item-uri) | id |
|
2023-09-02 14:19:52 +00:00
|
|
|
| owner-id | [contact](help/database/db_contact) | id |
|
2023-09-01 21:56:59 +00:00
|
|
|
|
|
|
|
Return to [database documentation](help/database)
|