]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-tag.md
Merge remote-tracking branch 'origin/2022.12-rc' into fixes
[friendica.git] / doc / database / db_post-tag.md
index ae65cf983209351346caefec0b6ed9fb76a791b3..7811f32e07d8fae9e4978608fc70c6a1eaee8016 100644 (file)
@@ -1,12 +1,34 @@
 Table post-tag
 ===========
+
 post relation to tags
 
-| Field | Description | Type | Null | Key | Default | Extra |
-| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned     | NO | PRI | NULL |  |    
-| type   |                                                           | tinyint unsigned | NO | PRI | 0    |  |    
-| tid    |                                                           | int unsigned     | NO | PRI | 0    |  |    
-| cid    | Contact id of the mentioned public contact                | int unsigned     | NO | PRI | 0    |  |    
+Fields
+------
+
+| Field  | Description                                               | Type             | Null | Key | Default | Extra |
+| ------ | --------------------------------------------------------- | ---------------- | ---- | --- | ------- | ----- |
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned     | NO   | PRI | NULL    |       |
+| type   |                                                           | tinyint unsigned | NO   | PRI | 0       |       |
+| tid    |                                                           | int unsigned     | NO   | PRI | 0       |       |
+| cid    | Contact id of the mentioned public contact                | int unsigned     | NO   | PRI | 0       |       |
+
+Indexes
+------------
+
+| Name    | Fields                 |
+| ------- | ---------------------- |
+| PRIMARY | uri-id, type, tid, cid |
+| tid     | tid                    |
+| cid     | cid                    |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uri-id | [item-uri](help/database/db_item-uri) | id |
+| tid | [tag](help/database/db_tag) | id |
+| cid | [contact](help/database/db_contact) | id |
 
 Return to [database documentation](help/database)