]> 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 762c350395288d0611c673c98133265ceb81db4c..35d140cfff802ac018d575c03c063230b7615ce6 100644 (file)
@@ -1,13 +1,33 @@
 Table user-contact
 ===========
+
 User specific public contact data
 
-| Field | Description | Type | Null | Key | Default | Extra |
-| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| cid | Contact id of the linked public contact | int unsigned | NO | PRI | 0 |  |    
-| uid | User id | mediumint unsigned | NO | PRI | 0 |  |    
-| blocked | Contact is completely blocked for this user | boolean | YES |  | NULL |  |    
-| ignored | Posts from this contact are ignored | boolean | YES |  | NULL |  |    
-| collapsed | Posts from this contact are collapsed | boolean | YES |  | NULL |  |    
+Fields
+------
+
+| Field     | Description                                 | Type               | Null | Key | Default | Extra |
+| --------- | ------------------------------------------- | ------------------ | ---- | --- | ------- | ----- |
+| cid       | Contact id of the linked public contact     | int unsigned       | NO   | PRI | 0       |       |
+| uid       | User id                                     | mediumint unsigned | NO   | PRI | 0       |       |
+| blocked   | Contact is completely blocked for this user | boolean            | YES  |     | NULL    |       |
+| 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)