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