]> git.mxchange.org Git - friendica.git/blob - doc/database/db_apcontact.md
Merge branch 'stable' into develop
[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 | uuid             |                                                                     | varchar(255)   | YES  |     | NULL                |       |
13 | type             |                                                                     | varchar(20)    | NO   |     | NULL                |       |
14 | following        |                                                                     | varchar(255)   | YES  |     | NULL                |       |
15 | followers        |                                                                     | varchar(255)   | YES  |     | NULL                |       |
16 | inbox            |                                                                     | varchar(255)   | NO   |     | NULL                |       |
17 | outbox           |                                                                     | varchar(255)   | YES  |     | NULL                |       |
18 | sharedinbox      |                                                                     | varchar(255)   | YES  |     | NULL                |       |
19 | manually-approve |                                                                     | boolean        | YES  |     | NULL                |       |
20 | discoverable     | Mastodon extension: true if profile is published in their directory | boolean        | YES  |     | NULL                |       |
21 | nick             |                                                                     | varchar(255)   | NO   |     |                     |       |
22 | name             |                                                                     | varchar(255)   | YES  |     | NULL                |       |
23 | about            |                                                                     | text           | YES  |     | NULL                |       |
24 | photo            |                                                                     | varchar(255)   | YES  |     | NULL                |       |
25 | header           | Header picture                                                      | varchar(255)   | YES  |     | NULL                |       |
26 | addr             |                                                                     | varchar(255)   | YES  |     | NULL                |       |
27 | alias            |                                                                     | varchar(255)   | YES  |     | NULL                |       |
28 | pubkey           |                                                                     | text           | YES  |     | NULL                |       |
29 | subscribe        |                                                                     | varchar(255)   | YES  |     | NULL                |       |
30 | baseurl          | baseurl of the ap contact                                           | varchar(255)   | YES  |     | NULL                |       |
31 | gsid             | Global Server ID                                                    | int unsigned   | YES  |     | NULL                |       |
32 | generator        | Name of the contact's system                                        | varchar(255)   | YES  |     | NULL                |       |
33 | following_count  | Number of following contacts                                        | int unsigned   | YES  |     | 0                   |       |
34 | followers_count  | Number of followers                                                 | int unsigned   | YES  |     | 0                   |       |
35 | statuses_count   | Number of posts                                                     | int unsigned   | YES  |     | 0                   |       |
36 | updated          |                                                                     | datetime       | NO   |     | 0001-01-01 00:00:00 |       |
37
38 Indexes
39 ------------
40
41 | Name        | Fields           |
42 | ----------- | ---------------- |
43 | PRIMARY     | url              |
44 | addr        | addr(32)         |
45 | alias       | alias(190)       |
46 | followers   | followers(190)   |
47 | baseurl     | baseurl(190)     |
48 | sharedinbox | sharedinbox(190) |
49 | gsid        | gsid             |
50
51 Foreign Keys
52 ------------
53
54 | Field | Target Table | Target Field |
55 |-------|--------------|--------------|
56 | gsid | [gserver](help/database/db_gserver) | id |
57
58 Return to [database documentation](help/database)