]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_user-contact.md
2021.09 CHANGELOG some more work has been done
[friendica.git] / doc / database / db_user-contact.md
index 9bcbff7d337430a978a6fc3d61c95c23a2e6ca30..35d140cfff802ac018d575c03c063230b7615ce6 100644 (file)
@@ -3,6 +3,9 @@ Table user-contact
 
 User specific public contact data
 
+Fields
+------
+
 | Field     | Description                                 | Type               | Null | Key | Default | Extra |
 | --------- | ------------------------------------------- | ------------------ | ---- | --- | ------- | ----- |
 | cid       | Contact id of the linked public contact     | int unsigned       | NO   | PRI | 0       |       |
@@ -11,4 +14,20 @@ User specific public contact data
 | ignored   | Posts from this contact are ignored         | boolean            | YES  |     | NULL    |       |
 | collapsed | Posts from this contact are collapsed       | boolean            | YES  |     | NULL    |       |
 
+Indexes
+------------
+
+| Name    | Fields   |
+| ------- | -------- |
+| PRIMARY | uid, cid |
+| cid     | cid      |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| cid | [contact](help/database/db_contact) | id |
+| uid | [user](help/database/db_user) | uid |
+
 Return to [database documentation](help/database)