X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_post-tag.md;h=7811f32e07d8fae9e4978608fc70c6a1eaee8016;hb=bc58cb9b94e2553fa02a874b6c52ebe50e487833;hp=5223ef9f4f8ca9a94c2e2ac4560d33e06d52f738;hpb=a827f948c867ceebf60d82b0740032512be23302;p=friendica.git diff --git a/doc/database/db_post-tag.md b/doc/database/db_post-tag.md index 5223ef9f4f..7811f32e07 100644 --- a/doc/database/db_post-tag.md +++ b/doc/database/db_post-tag.md @@ -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)