]> git.mxchange.org Git - friendica.git/blob - doc/database/db_user-contact.md
Merge pull request #11925 from mexon/mat/dont-remove-slash
[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 | is-blocked                | User is blocked by this contact                              | boolean            | YES  |     | NULL    |       |
19 | pending                   |                                                              | boolean            | YES  |     | NULL    |       |
20 | rel                       | The kind of the relation between the user and the contact    | tinyint unsigned   | YES  |     | NULL    |       |
21 | info                      |                                                              | mediumtext         | YES  |     | NULL    |       |
22 | notify_new_posts          |                                                              | boolean            | YES  |     | NULL    |       |
23 | remote_self               |                                                              | boolean            | YES  |     | NULL    |       |
24 | fetch_further_information |                                                              | tinyint unsigned   | YES  |     | NULL    |       |
25 | ffi_keyword_denylist      |                                                              | text               | YES  |     | NULL    |       |
26 | subhub                    |                                                              | boolean            | YES  |     | NULL    |       |
27 | hub-verify                |                                                              | varbinary(383)     | YES  |     | NULL    |       |
28 | protocol                  | Protocol of the contact                                      | char(4)            | YES  |     | NULL    |       |
29 | rating                    | Automatically detected feed poll frequency                   | tinyint            | YES  |     | NULL    |       |
30 | priority                  | Feed poll priority                                           | tinyint unsigned   | YES  |     | NULL    |       |
31
32 Indexes
33 ------------
34
35 | Name       | Fields              |
36 | ---------- | ------------------- |
37 | PRIMARY    | uid, cid            |
38 | cid        | cid                 |
39 | uri-id_uid | UNIQUE, uri-id, uid |
40
41 Foreign Keys
42 ------------
43
44 | Field | Target Table | Target Field |
45 |-------|--------------|--------------|
46 | cid | [contact](help/database/db_contact) | id |
47 | uid | [user](help/database/db_user) | uid |
48 | uri-id | [item-uri](help/database/db_item-uri) | id |
49
50 Return to [database documentation](help/database)