]> git.mxchange.org Git - friendica.git/blob - doc/database/db_contact.md
340f95e0677bc1c78f2d8c2819df37df4a8186d7
[friendica.git] / doc / database / db_contact.md
1 Table contact
2 ===========
3
4 contact table
5
6 | Field                     | Description                                               | Type               | Null | Key | Default             | Extra          |
7 | ------------------------- | --------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
8 | id                        | sequential ID                                             | int unsigned       | NO   | PRI | NULL                | auto_increment |
9 | uid                       | Owner User id                                             | mediumint unsigned | NO   |     | 0                   |                |
10 | created                   |                                                           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
11 | updated                   | Date of last contact update                               | datetime           | YES  |     | 0001-01-01 00:00:00 |                |
12 | self                      | 1 if the contact is the user him/her self                 | boolean            | NO   |     | 0                   |                |
13 | remote_self               |                                                           | boolean            | NO   |     | 0                   |                |
14 | rel                       | The kind of the relation between the user and the contact | tinyint unsigned   | NO   |     | 0                   |                |
15 | duplex                    |                                                           | boolean            | NO   |     | 0                   |                |
16 | network                   | Network of the contact                                    | char(4)            | NO   |     |                     |                |
17 | protocol                  | Protocol of the contact                                   | char(4)            | NO   |     |                     |                |
18 | name                      | Name that this contact is known by                        | varchar(255)       | NO   |     |                     |                |
19 | nick                      | Nick- and user name of the contact                        | varchar(255)       | NO   |     |                     |                |
20 | location                  |                                                           | varchar(255)       | YES  |     |                     |                |
21 | about                     |                                                           | text               | YES  |     | NULL                |                |
22 | keywords                  | public keywords (interests) of the contact                | text               | YES  |     | NULL                |                |
23 | gender                    | Deprecated                                                | varchar(32)        | NO   |     |                     |                |
24 | xmpp                      |                                                           | varchar(255)       | NO   |     |                     |                |
25 | attag                     |                                                           | varchar(255)       | NO   |     |                     |                |
26 | avatar                    |                                                           | varchar(255)       | NO   |     |                     |                |
27 | photo                     | Link to the profile photo of the contact                  | varchar(255)       | YES  |     |                     |                |
28 | thumb                     | Link to the profile photo (thumb size)                    | varchar(255)       | YES  |     |                     |                |
29 | micro                     | Link to the profile photo (micro size)                    | varchar(255)       | YES  |     |                     |                |
30 | site-pubkey               |                                                           | text               | YES  |     | NULL                |                |
31 | issued-id                 |                                                           | varchar(255)       | NO   |     |                     |                |
32 | dfrn-id                   |                                                           | varchar(255)       | NO   |     |                     |                |
33 | url                       |                                                           | varchar(255)       | NO   |     |                     |                |
34 | nurl                      |                                                           | varchar(255)       | NO   |     |                     |                |
35 | addr                      |                                                           | varchar(255)       | NO   |     |                     |                |
36 | alias                     |                                                           | varchar(255)       | NO   |     |                     |                |
37 | pubkey                    | RSA public key 4096 bit                                   | text               | YES  |     | NULL                |                |
38 | prvkey                    | RSA private key 4096 bit                                  | text               | YES  |     | NULL                |                |
39 | batch                     |                                                           | varchar(255)       | NO   |     |                     |                |
40 | request                   |                                                           | varchar(255)       | YES  |     | NULL                |                |
41 | notify                    |                                                           | varchar(255)       | YES  |     | NULL                |                |
42 | poll                      |                                                           | varchar(255)       | YES  |     | NULL                |                |
43 | confirm                   |                                                           | varchar(255)       | YES  |     | NULL                |                |
44 | subscribe                 |                                                           | varchar(255)       | YES  |     | NULL                |                |
45 | poco                      |                                                           | varchar(255)       | YES  |     | NULL                |                |
46 | aes_allow                 |                                                           | boolean            | NO   |     | 0                   |                |
47 | ret-aes                   |                                                           | boolean            | NO   |     | 0                   |                |
48 | usehub                    |                                                           | boolean            | NO   |     | 0                   |                |
49 | subhub                    |                                                           | boolean            | NO   |     | 0                   |                |
50 | hub-verify                |                                                           | varchar(255)       | NO   |     |                     |                |
51 | last-update               | Date of the last try to update the contact info           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
52 | success_update            | Date of the last successful contact update                | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
53 | failure_update            | Date of the last failed update                            | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
54 | failed                    | Connection failed                                         | boolean            | YES  |     | NULL                |                |
55 | name-date                 |                                                           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
56 | uri-date                  |                                                           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
57 | avatar-date               |                                                           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
58 | term-date                 |                                                           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
59 | last-item                 | date of the last post                                     | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
60 | last-discovery            | date of the last follower discovery                       | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
61 | priority                  |                                                           | tinyint unsigned   | NO   |     | 0                   |                |
62 | blocked                   | Node-wide block status                                    | boolean            | NO   |     | 1                   |                |
63 | block_reason              | Node-wide block reason                                    | text               | YES  |     | NULL                |                |
64 | readonly                  | posts of the contact are readonly                         | boolean            | NO   |     | 0                   |                |
65 | writable                  |                                                           | boolean            | NO   |     | 0                   |                |
66 | forum                     | contact is a forum                                        | boolean            | NO   |     | 0                   |                |
67 | prv                       | contact is a private group                                | boolean            | NO   |     | 0                   |                |
68 | contact-type              |                                                           | tinyint            | NO   |     | 0                   |                |
69 | manually-approve          |                                                           | boolean            | YES  |     | NULL                |                |
70 | hidden                    |                                                           | boolean            | NO   |     | 0                   |                |
71 | archive                   |                                                           | boolean            | NO   |     | 0                   |                |
72 | pending                   |                                                           | boolean            | NO   |     | 1                   |                |
73 | deleted                   | Contact has been deleted                                  | boolean            | NO   |     | 0                   |                |
74 | rating                    |                                                           | tinyint            | NO   |     | 0                   |                |
75 | unsearchable              | Contact prefers to not be searchable                      | boolean            | NO   |     | 0                   |                |
76 | sensitive                 | Contact posts sensitive content                           | boolean            | NO   |     | 0                   |                |
77 | baseurl                   | baseurl of the contact                                    | varchar(255)       | YES  |     |                     |                |
78 | gsid                      | Global Server ID                                          | int unsigned       | YES  |     | NULL                |                |
79 | reason                    |                                                           | text               | YES  |     | NULL                |                |
80 | closeness                 |                                                           | tinyint unsigned   | NO   |     | 99                  |                |
81 | info                      |                                                           | mediumtext         | YES  |     | NULL                |                |
82 | profile-id                | Deprecated                                                | int unsigned       | YES  |     | NULL                |                |
83 | bdyear                    |                                                           | varchar(4)         | NO   |     |                     |                |
84 | bd                        |                                                           | date               | NO   |     | 0001-01-01          |                |
85 | notify_new_posts          |                                                           | boolean            | NO   |     | 0                   |                |
86 | fetch_further_information |                                                           | tinyint unsigned   | NO   |     | 0                   |                |
87 | ffi_keyword_denylist      |                                                           | text               | YES  |     | NULL                |                |
88
89 Return to [database documentation](help/database)