]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-category.md
Merge pull request #13390 from annando/channel
[friendica.git] / doc / database / db_post-category.md
index c5bf26e8fc00f468bdbcaa28b08e164bd9316c52..f28e306f1743c3a8b0d4be096bbbd981dbda423b 100644 (file)
@@ -1,12 +1,34 @@
 Table post-category
 ===========
+
 post relation to categories
 
-| 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    |       |    
-| uid    | User id                                                   | mediumint unsigned | NO   | PRI | 0       |       |    
-| type   |                                                           | tinyint unsigned   | NO   | PRI | 0       |       |    
-| tid    |                                                           | 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    |       |
+| uid    | User id                                                   | mediumint unsigned | NO   | PRI | 0       |       |
+| type   |                                                           | tinyint unsigned   | NO   | PRI | 0       |       |
+| tid    |                                                           | int unsigned       | NO   | PRI | 0       |       |
+
+Indexes
+------------
+
+| Name       | Fields                 |
+| ---------- | ---------------------- |
+| PRIMARY    | uri-id, uid, type, tid |
+| tid        | tid                    |
+| uid_uri-id | uid, uri-id            |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uri-id | [item-uri](help/database/db_item-uri) | id |
+| uid | [user](help/database/db_user) | uid |
+| tid | [tag](help/database/db_tag) | id |
 
 Return to [database documentation](help/database)