]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-category.md
Merge remote-tracking branch 'upstream/2021.06-rc' into public-timeline
[friendica.git] / doc / database / db_post-category.md
1 Table post-category
2 ===========
3
4 post relation to categories
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 | uid    | User id                                                   | mediumint unsigned | NO   | PRI | 0       |       |
13 | type   |                                                           | tinyint unsigned   | NO   | PRI | 0       |       |
14 | tid    |                                                           | int unsigned       | NO   | PRI | 0       |       |
15
16 Indexes
17 ------------
18
19 | Name    | Fields                 |
20 | ------- | ---------------------- |
21 | PRIMARY | uri-id, uid, type, tid |
22 | uri-id  | tid                    |
23 | uid     | uid                    |
24
25 Foreign Keys
26 ------------
27
28 | Field | Target Table | Target Field |
29 |-------|--------------|--------------|
30 | uri-id | [item-uri](help/database/db_item-uri) | id |
31 | uid | [user](help/database/db_user) | uid |
32 | tid | [tag](help/database/db_tag) | id |
33
34 Return to [database documentation](help/database)