X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_post-category.md;h=b825a8f4b1e90fc28ad770bef87307df9e7415c2;hb=c608d857077cc3c830637dbcbd40a92f842f456d;hp=14663cf5bbfe9048987909d12853202a26675c84;hpb=2cd0c1d30d237806e9c3853aa0645f786e31855c;p=friendica.git diff --git a/doc/database/db_post-category.md b/doc/database/db_post-category.md index 14663cf5bb..b825a8f4b1 100644 --- a/doc/database/db_post-category.md +++ b/doc/database/db_post-category.md @@ -3,6 +3,9 @@ Table post-category post relation to categories +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 | | @@ -10,4 +13,22 @@ post relation to categories | type | | tinyint unsigned | NO | PRI | 0 | | | tid | | int unsigned | NO | PRI | 0 | | +Indexes +------------ + +| Name | Fields | +| ------- | ---------------------- | +| PRIMARY | uri-id, uid, type, tid | +| uri-id | tid | +| uid | uid | + +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)