]> git.mxchange.org Git - friendica.git/blob - doc/database/db_user-contact.md
Merge pull request #10969 from MrPetovan/task/remove-private-contacts
[friendica.git] / doc / database / db_user-contact.md
1 Table user-contact
2 ===========
3
4 User specific public contact data
5
6 Fields
7 ------
8
9 | Field                     | Description                                                  | Type               | Null | Key | Default | Extra |
10 | ------------------------- | ------------------------------------------------------------ | ------------------ | ---- | --- | ------- | ----- |
11 | cid                       | Contact id of the linked public contact                      | int unsigned       | NO   | PRI | 0       |       |
12 | uid                       | User id                                                      | mediumint unsigned | NO   | PRI | 0       |       |
13 | uri-id                    | Id of the item-uri table entry that contains the contact url | int unsigned       | YES  |     | NULL    |       |
14 | blocked                   | Contact is completely blocked for this user                  | boolean            | YES  |     | NULL    |       |
15 | ignored                   | Posts from this contact are ignored                          | boolean            | YES  |     | NULL    |       |
16 | collapsed                 | Posts from this contact are collapsed                        | boolean            | YES  |     | NULL    |       |
17 | hidden                    | This contact is hidden from the others                       | boolean            | YES  |     | NULL    |       |
18 | pending                   |                                                              | boolean            | YES  |     | NULL    |       |
19 | rel                       | The kind of the relation between the user and the contact    | tinyint unsigned   | YES  |     | NULL    |       |
20 | info                      |                                                              | mediumtext         | YES  |     | NULL    |       |
21 | notify_new_posts          |                                                              | boolean            | YES  |     | NULL    |       |
22 | remote_self               |                                                              | boolean            | YES  |     | NULL    |       |
23 | fetch_further_information |                                                              | tinyint unsigned   | YES  |     | NULL    |       |
24 | ffi_keyword_denylist      |                                                              | text               | YES  |     | NULL    |       |
25 | subhub                    |                                                              | boolean            | YES  |     | NULL    |       |
26 | hub-verify                |                                                              | varchar(255)       | YES  |     | NULL    |       |
27 | protocol                  | Protocol of the contact                                      | char(4)            | YES  |     | NULL    |       |
28 | rating                    | Automatically detected feed poll frequency                   | tinyint            | YES  |     | NULL    |       |
29 | priority                  | Feed poll priority                                           | tinyint unsigned   | YES  |     | NULL    |       |
30
31 Indexes
32 ------------
33
34 | Name       | Fields              |
35 | ---------- | ------------------- |
36 | PRIMARY    | uid, cid            |
37 | cid        | cid                 |
38 | uri-id_uid | UNIQUE, uri-id, uid |
39
40 Foreign Keys
41 ------------
42
43 | Field | Target Table | Target Field |
44 |-------|--------------|--------------|
45 | cid | [contact](help/database/db_contact) | id |
46 | uid | [user](help/database/db_user) | uid |
47 | uri-id | [item-uri](help/database/db_item-uri) | id |
48
49 Return to [database documentation](help/database)