]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-collection.md
Merge pull request #11845 from annando/performance
[friendica.git] / doc / database / db_post-collection.md
1 Table post-collection
2 ===========
3
4 Collection of posts
5
6 Fields
7 ------
8
9 | Field     | Description                                               | Type             | Null | Key | Default | Extra |
10 | --------- | --------------------------------------------------------- | ---------------- | ---- | --- | ------- | ----- |
11 | uri-id    | Id of the item-uri table entry that contains the item uri | int unsigned     | NO   | PRI | NULL    |       |
12 | type      | 0 - Featured                                              | tinyint unsigned | NO   | PRI | 0       |       |
13 | author-id | Author of the featured post                               | int unsigned     | YES  |     | NULL    |       |
14
15 Indexes
16 ------------
17
18 | Name      | Fields       |
19 | --------- | ------------ |
20 | PRIMARY   | uri-id, type |
21 | type      | type         |
22 | author-id | author-id    |
23
24 Foreign Keys
25 ------------
26
27 | Field | Target Table | Target Field |
28 |-------|--------------|--------------|
29 | uri-id | [item-uri](help/database/db_item-uri) | id |
30 | author-id | [contact](help/database/db_contact) | id |
31
32 Return to [database documentation](help/database)