]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-tag.md
Merge pull request #12407 from HankG/friendica-api-photo-endpoint-updates
[friendica.git] / doc / database / db_post-tag.md
1 Table post-tag
2 ===========
3
4 post relation to tags
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   |                                                           | tinyint unsigned | NO   | PRI | 0       |       |
13 | tid    |                                                           | int unsigned     | NO   | PRI | 0       |       |
14 | cid    | Contact id of the mentioned public contact                | int unsigned     | NO   | PRI | 0       |       |
15
16 Indexes
17 ------------
18
19 | Name    | Fields                 |
20 | ------- | ---------------------- |
21 | PRIMARY | uri-id, type, tid, cid |
22 | tid     | tid                    |
23 | cid     | cid                    |
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 | tid | [tag](help/database/db_tag) | id |
32 | cid | [contact](help/database/db_contact) | id |
33
34 Return to [database documentation](help/database)