]> git.mxchange.org Git - friendica.git/blob - doc/database/db_user-contact.md
Merge remote-tracking branch 'upstream/2023.09-rc' into user-defined-channels
[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 | channel-frequency         | Controls the frequency of the appearance of this contact in channels    | tinyint unsigned   | YES  |     | NULL    |       |
20 | pending                   |                                                                         | boolean            | YES  |     | NULL    |       |
21 | rel                       | The kind of the relation between the user and the contact               | tinyint unsigned   | YES  |     | NULL    |       |
22 | info                      |                                                                         | mediumtext         | YES  |     | NULL    |       |
23 | notify_new_posts          |                                                                         | boolean            | YES  |     | NULL    |       |
24 | remote_self               | 0 => No mirroring, 1-2 => Mirror as own post, 3 => Mirror as reshare    | tinyint unsigned   | YES  |     | NULL    |       |
25 | fetch_further_information | 0 => None, 1 => Fetch information, 3 => Fetch keywords, 2 => Fetch both | tinyint unsigned   | YES  |     | NULL    |       |
26 | ffi_keyword_denylist      |                                                                         | text               | YES  |     | NULL    |       |
27 | subhub                    |                                                                         | boolean            | YES  |     | NULL    |       |
28 | hub-verify                |                                                                         | varbinary(383)     | YES  |     | NULL    |       |
29 | protocol                  | Protocol of the contact                                                 | char(4)            | YES  |     | NULL    |       |
30 | rating                    | Automatically detected feed poll frequency                              | tinyint            | YES  |     | NULL    |       |
31 | priority                  | Feed poll priority                                                      | tinyint unsigned   | YES  |     | NULL    |       |
32
33 Indexes
34 ------------
35
36 | Name       | Fields              |
37 | ---------- | ------------------- |
38 | PRIMARY    | uid, cid            |
39 | cid        | cid                 |
40 | uri-id_uid | UNIQUE, uri-id, uid |
41
42 Foreign Keys
43 ------------
44
45 | Field | Target Table | Target Field |
46 |-------|--------------|--------------|
47 | cid | [contact](help/database/db_contact) | id |
48 | uid | [user](help/database/db_user) | uid |
49 | uri-id | [item-uri](help/database/db_item-uri) | id |
50
51 Return to [database documentation](help/database)