]> git.mxchange.org Git - friendica.git/blob - doc/database/db_apcontact.md
The Matrix and XMPP address is now transported via AP as well
[friendica.git] / doc / database / db_apcontact.md
1 Table apcontact
2 ===========
3
4 ActivityPub compatible contacts - used in the ActivityPub implementation
5
6 Fields
7 ------
8
9 | Field            | Description                                                         | Type           | Null | Key | Default             | Extra |
10 | ---------------- | ------------------------------------------------------------------- | -------------- | ---- | --- | ------------------- | ----- |
11 | url              | URL of the contact                                                  | varbinary(255) | NO   | PRI | NULL                |       |
12 | uri-id           | Id of the item-uri table entry that contains the apcontact url      | int unsigned   | YES  |     | NULL                |       |
13 | uuid             |                                                                     | varchar(255)   | YES  |     | NULL                |       |
14 | type             |                                                                     | varchar(20)    | NO   |     | NULL                |       |
15 | following        |                                                                     | varchar(255)   | YES  |     | NULL                |       |
16 | followers        |                                                                     | varchar(255)   | YES  |     | NULL                |       |
17 | inbox            |                                                                     | varchar(255)   | NO   |     | NULL                |       |
18 | outbox           |                                                                     | varchar(255)   | YES  |     | NULL                |       |
19 | sharedinbox      |                                                                     | varchar(255)   | YES  |     | NULL                |       |
20 | manually-approve |                                                                     | boolean        | YES  |     | NULL                |       |
21 | discoverable     | Mastodon extension: true if profile is published in their directory | boolean        | YES  |     | NULL                |       |
22 | nick             |                                                                     | varchar(255)   | NO   |     |                     |       |
23 | name             |                                                                     | varchar(255)   | YES  |     | NULL                |       |
24 | about            |                                                                     | text           | YES  |     | NULL                |       |
25 | xmpp             | XMPP address                                                        | varchar(255)   | YES  |     | NULL                |       |
26 | matrix           | Matrix address                                                      | varchar(255)   | YES  |     | NULL                |       |
27 | photo            |                                                                     | varchar(255)   | YES  |     | NULL                |       |
28 | header           | Header picture                                                      | varchar(255)   | YES  |     | NULL                |       |
29 | addr             |                                                                     | varchar(255)   | YES  |     | NULL                |       |
30 | alias            |                                                                     | varchar(255)   | YES  |     | NULL                |       |
31 | pubkey           |                                                                     | text           | YES  |     | NULL                |       |
32 | subscribe        |                                                                     | varchar(255)   | YES  |     | NULL                |       |
33 | baseurl          | baseurl of the ap contact                                           | varchar(255)   | YES  |     | NULL                |       |
34 | gsid             | Global Server ID                                                    | int unsigned   | YES  |     | NULL                |       |
35 | generator        | Name of the contact's system                                        | varchar(255)   | YES  |     | NULL                |       |
36 | following_count  | Number of following contacts                                        | int unsigned   | YES  |     | 0                   |       |
37 | followers_count  | Number of followers                                                 | int unsigned   | YES  |     | 0                   |       |
38 | statuses_count   | Number of posts                                                     | int unsigned   | YES  |     | 0                   |       |
39 | updated          |                                                                     | datetime       | NO   |     | 0001-01-01 00:00:00 |       |
40
41 Indexes
42 ------------
43
44 | Name        | Fields           |
45 | ----------- | ---------------- |
46 | PRIMARY     | url              |
47 | addr        | addr(32)         |
48 | alias       | alias(190)       |
49 | followers   | followers(190)   |
50 | baseurl     | baseurl(190)     |
51 | sharedinbox | sharedinbox(190) |
52 | gsid        | gsid             |
53 | uri-id      | UNIQUE, uri-id   |
54
55 Foreign Keys
56 ------------
57
58 | Field | Target Table | Target Field |
59 |-------|--------------|--------------|
60 | uri-id | [item-uri](help/database/db_item-uri) | id |
61 | gsid | [gserver](help/database/db_gserver) | id |
62
63 Return to [database documentation](help/database)