]> git.mxchange.org Git - friendica.git/blob - doc/database/db_fcontact.md
Merge pull request #12288 from annando/api-tags
[friendica.git] / doc / database / db_fcontact.md
1 Table fcontact
2 ===========
3
4 Diaspora compatible contacts - used in the Diaspora implementation
5
6 Fields
7 ------
8
9 | Field             | Description                                                   | Type             | Null | Key | Default             | Extra          |
10 | ----------------- | ------------------------------------------------------------- | ---------------- | ---- | --- | ------------------- | -------------- |
11 | id                | sequential ID                                                 | int unsigned     | NO   | PRI | NULL                | auto_increment |
12 | guid              | unique id                                                     | varbinary(255)   | NO   |     |                     |                |
13 | url               |                                                               | varbinary(383)   | NO   |     |                     |                |
14 | uri-id            | Id of the item-uri table entry that contains the fcontact url | int unsigned     | YES  |     | NULL                |                |
15 | name              |                                                               | varchar(255)     | NO   |     |                     |                |
16 | photo             |                                                               | varbinary(383)   | NO   |     |                     |                |
17 | request           |                                                               | varbinary(383)   | NO   |     |                     |                |
18 | nick              |                                                               | varchar(255)     | NO   |     |                     |                |
19 | addr              |                                                               | varchar(255)     | NO   |     |                     |                |
20 | batch             |                                                               | varbinary(383)   | NO   |     |                     |                |
21 | notify            |                                                               | varbinary(383)   | NO   |     |                     |                |
22 | poll              |                                                               | varbinary(383)   | NO   |     |                     |                |
23 | confirm           |                                                               | varbinary(383)   | NO   |     |                     |                |
24 | priority          |                                                               | tinyint unsigned | NO   |     | 0                   |                |
25 | network           |                                                               | char(4)          | NO   |     |                     |                |
26 | alias             |                                                               | varbinary(383)   | NO   |     |                     |                |
27 | pubkey            |                                                               | text             | YES  |     | NULL                |                |
28 | created           |                                                               | datetime         | NO   |     | 0001-01-01 00:00:00 |                |
29 | updated           |                                                               | datetime         | NO   |     | 0001-01-01 00:00:00 |                |
30 | interacting_count | Number of contacts this contact interactes with               | int unsigned     | YES  |     | 0                   |                |
31 | interacted_count  | Number of contacts that interacted with this contact          | int unsigned     | YES  |     | 0                   |                |
32 | post_count        | Number of posts and comments                                  | int unsigned     | YES  |     | 0                   |                |
33
34 Indexes
35 ------------
36
37 | Name    | Fields           |
38 | ------- | ---------------- |
39 | PRIMARY | id               |
40 | addr    | addr(32)         |
41 | url     | UNIQUE, url(190) |
42 | uri-id  | UNIQUE, uri-id   |
43
44 Foreign Keys
45 ------------
46
47 | Field | Target Table | Target Field |
48 |-------|--------------|--------------|
49 | uri-id | [item-uri](help/database/db_item-uri) | id |
50
51 Return to [database documentation](help/database)