friendica/doc/database/db_post-tag.md

35 lines
1.3 KiB
Markdown
Raw Normal View History

Table post-tag
===========
2021-06-14 08:10:11 +02:00
post relation to tags
2021-06-14 10:53:37 +02:00
Fields
------
2021-06-14 08:10:11 +02:00
| 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 | |
2021-06-14 10:53:37 +02:00
Indexes
------------
2021-06-14 14:15:10 +02:00
| Name | Fields |
| ------- | ---------------------- |
2021-06-14 10:53:37 +02:00
| PRIMARY | uri-id, type, tid, cid |
2021-06-14 14:15:10 +02:00
| tid | tid |
| cid | cid |
2021-06-14 10:53:37 +02:00
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)