]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post.md
Updates database structure documentation
[friendica.git] / doc / database / db_post.md
1 Table post
2 ===========
3 Structure for all posts
4
5 | Field | Description | Type | Null | Key | Default | Extra |
6 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
7 | uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
8 | parent-uri-id | Id of the item-uri table that contains the parent uri | int unsigned | NO |  |  |  |    
9 | thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | NO |  |  |  |    
10 | external-id | Id of the item-uri table entry that contains the external uri | int unsigned | NO |  |  |  |    
11 | created | Creation timestamp. | datetime | YES |  | 0001-01-01 00:00:00 |  |    
12 | edited | Date of last edit (default is created) | datetime | YES |  | 0001-01-01 00:00:00 |  |    
13 | received | datetime | datetime | YES |  | 0001-01-01 00:00:00 |  |    
14 | gravity |  | tinyint unsigned | YES |  | 0 |  |    
15 | network | Network from where the item comes from | char(4) | YES |  |  |  |    
16 | owner-id | Link to the contact table with uid=0 of the owner of this item | int unsigned | YES |  | 0 |  |    
17 | author-id | Link to the contact table with uid=0 of the author of this item | int unsigned | YES |  | 0 |  |    
18 | causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  |  |  |    
19 | post-type | Post type (personal note, image, article, ...) | tinyint unsigned | YES |  | 0 |  |    
20 | vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | NO |  |  |  |    
21 | private | 0=public, 1=private, 2=unlisted | tinyint unsigned | YES |  | 0 |  |    
22 | global |  | boolean | YES |  | 0 |  |    
23 | visible |  | boolean | YES |  | 0 |  |    
24 | deleted | item has been marked for deletion | boolean | YES |  | 0 |  |    
25
26 Return to [database documentation](help/database)