]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-user.md
Pad the lengths of the columns
[friendica.git] / doc / database / db_post-user.md
1 Table post-user
2 ===========
3 User specific post data
4
5 | Field | Description | Type | Null | Key | Default | Extra |
6 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
7 | id                |                                                                                   | int unsigned       | NO  | PRI | NULL                | auto_increment |    
8 | uri-id            | Id of the item-uri table entry that contains the item uri                         | int unsigned       | NO  |     | NULL                |                |    
9 | parent-uri-id     | Id of the item-uri table that contains the parent uri                             | int unsigned       | YES |     | NULL                |                |    
10 | thr-parent-id     | Id of the item-uri table that contains the thread parent uri                      | int unsigned       | YES |     | NULL                |                |    
11 | external-id       | Id of the item-uri table entry that contains the external uri                     | int unsigned       | YES |     | NULL                |                |    
12 | created           | Creation timestamp.                                                               | datetime           | NO  |     | 0001-01-01 00:00:00 |                |    
13 | edited            | Date of last edit (default is created)                                            | datetime           | NO  |     | 0001-01-01 00:00:00 |                |    
14 | received          | datetime                                                                          | datetime           | NO  |     | 0001-01-01 00:00:00 |                |    
15 | gravity           |                                                                                   | tinyint unsigned   | NO  |     | 0                   |                |    
16 | network           | Network from where the item comes from                                            | char(4)            | NO  |     |                     |                |    
17 | owner-id          | Link to the contact table with uid=0 of the owner of this item                    | int unsigned       | NO  |     | 0                   |                |    
18 | author-id         | Link to the contact table with uid=0 of the author of this item                   | int unsigned       | NO  |     | 0                   |                |    
19 | causer-id         | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned       | YES |     | NULL                |                |    
20 | post-type         | Post type (personal note, image, article, ...)                                    | tinyint unsigned   | NO  |     | 0                   |                |    
21 | post-reason       | Reason why the post arrived at the user                                           | tinyint unsigned   | NO  |     | 0                   |                |    
22 | vid               | Id of the verb table entry that contains the activity verbs                       | smallint unsigned  | YES |     | NULL                |                |    
23 | private           | 0=public, 1=private, 2=unlisted                                                   | tinyint unsigned   | NO  |     | 0                   |                |    
24 | global            |                                                                                   | boolean            | NO  |     | 0                   |                |    
25 | visible           |                                                                                   | boolean            | NO  |     | 0                   |                |    
26 | deleted           | item has been marked for deletion                                                 | boolean            | NO  |     | 0                   |                |    
27 | uid               | Owner id which owns this copy of the item                                         | mediumint unsigned | NO  |     | NULL                |                |    
28 | protocol          | Protocol used to deliver the item for this user                                   | tinyint unsigned   | YES |     | NULL                |                |    
29 | contact-id        | contact.id                                                                        | int unsigned       | NO  |     | 0                   |                |    
30 | event-id          | Used to link to the event.id                                                      | int unsigned       | YES |     | NULL                |                |    
31 | unseen            | post has not been seen                                                            | boolean            | NO  |     | 1                   |                |    
32 | hidden            | Marker to hide the post from the user                                             | boolean            | NO  |     | 0                   |                |    
33 | notification-type |                                                                                   | tinyint unsigned   | NO  |     | 0                   |                |    
34 | wall              | This item was posted to the wall of uid                                           | boolean            | NO  |     | 0                   |                |    
35 | origin            | item originated at this site                                                      | boolean            | NO  |     | 0                   |                |    
36 | psid              | ID of the permission set of this post                                             | int unsigned       | YES |     | NULL                |                |    
37
38 Return to [database documentation](help/database)