]> git.mxchange.org Git - friendica.git/blob - doc/database/db_user-contact.md
Insert and update some more fields
[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 | rel                       | The kind of the relation between the user and the contact    | tinyint unsigned   | YES  |     | NULL    |       |
18 | info                      |                                                              | mediumtext         | YES  |     | NULL    |       |
19 | notify_new_posts          |                                                              | boolean            | YES  |     | NULL    |       |
20 | fetch_further_information |                                                              | tinyint unsigned   | YES  |     | NULL    |       |
21 | ffi_keyword_denylist      |                                                              | text               | YES  |     | NULL    |       |
22
23 Indexes
24 ------------
25
26 | Name       | Fields              |
27 | ---------- | ------------------- |
28 | PRIMARY    | uid, cid            |
29 | cid        | cid                 |
30 | uri-id_uid | UNIQUE, uri-id, uid |
31
32 Foreign Keys
33 ------------
34
35 | Field | Target Table | Target Field |
36 |-------|--------------|--------------|
37 | cid | [contact](help/database/db_contact) | id |
38 | uid | [user](help/database/db_user) | uid |
39 | uri-id | [item-uri](help/database/db_item-uri) | id |
40
41 Return to [database documentation](help/database)