X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_post-thread-user.md;h=7307dc78d67b4d73c810441d82c547d2a97c30ce;hb=a2532ad7554602d631d9caabb5c74564328d1fff;hp=29e5617d35519600bbdd9b932dd4fd419fc38c3e;hpb=2cd0c1d30d237806e9c3853aa0645f786e31855c;p=friendica.git diff --git a/doc/database/db_post-thread-user.md b/doc/database/db_post-thread-user.md index 29e5617d35..7307dc78d6 100644 --- a/doc/database/db_post-thread-user.md +++ b/doc/database/db_post-thread-user.md @@ -3,6 +3,9 @@ Table post-thread-user Thread related data per user +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 | | @@ -29,4 +32,40 @@ Thread related data per user | psid | ID of the permission set of this post | int unsigned | YES | | NULL | | | post-user-id | Id of the post-user table | int unsigned | YES | | NULL | | +Indexes +------------ + +| Name | Fields | +| ----------------- | ------------------- | +| PRIMARY | uid, uri-id | +| uri-id | uri-id | +| owner-id | owner-id | +| author-id | author-id | +| causer-id | causer-id | +| uid | uid | +| contact-id | contact-id | +| psid | psid | +| post-user-id | post-user-id | +| commented | commented | +| uid_received | uid, received | +| uid_wall_received | uid, wall, received | +| uid_pinned | uid, pinned | +| uid_commented | uid, commented | +| uid_starred | uid, starred | +| uid_mention | uid, mention | + +Foreign Keys +------------ + +| Field | Target Table | Target Field | +|-------|--------------|--------------| +| uri-id | [item-uri](help/database/db_item-uri) | id | +| owner-id | [contact](help/database/db_contact) | id | +| author-id | [contact](help/database/db_contact) | id | +| causer-id | [contact](help/database/db_contact) | id | +| uid | [user](help/database/db_user) | uid | +| contact-id | [contact](help/database/db_contact) | id | +| psid | [permissionset](help/database/db_permissionset) | id | +| post-user-id | [post-user](help/database/db_post-user) | id | + Return to [database documentation](help/database)