]> git.mxchange.org Git - friendica.git/blob - doc/database/db_apcontact.md
Handling of special characters
[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 | nick             |                              | varchar(255)   | NO   |     |                     |       |
21 | name             |                              | varchar(255)   | YES  |     | NULL                |       |
22 | about            |                              | text           | YES  |     | NULL                |       |
23 | photo            |                              | varchar(255)   | YES  |     | NULL                |       |
24 | addr             |                              | varchar(255)   | YES  |     | NULL                |       |
25 | alias            |                              | varchar(255)   | YES  |     | NULL                |       |
26 | pubkey           |                              | text           | YES  |     | NULL                |       |
27 | subscribe        |                              | varchar(255)   | YES  |     | NULL                |       |
28 | baseurl          | baseurl of the ap contact    | varchar(255)   | YES  |     | NULL                |       |
29 | gsid             | Global Server ID             | int unsigned   | YES  |     | NULL                |       |
30 | generator        | Name of the contact's system | varchar(255)   | YES  |     | NULL                |       |
31 | following_count  | Number of following contacts | int unsigned   | YES  |     | 0                   |       |
32 | followers_count  | Number of followers          | int unsigned   | YES  |     | 0                   |       |
33 | statuses_count   | Number of posts              | int unsigned   | YES  |     | 0                   |       |
34 | updated          |                              | datetime       | NO   |     | 0001-01-01 00:00:00 |       |
35
36 Indexes
37 ------------
38
39 | Name        | Fields           |
40 | ----------- | ---------------- |
41 | PRIMARY     | url              |
42 | addr        | addr(32)         |
43 | alias       | alias(190)       |
44 | followers   | followers(190)   |
45 | baseurl     | baseurl(190)     |
46 | sharedinbox | sharedinbox(190) |
47 | gsid        | gsid             |
48
49 Foreign Keys
50 ------------
51
52 | Field | Target Table | Target Field |
53 |-------|--------------|--------------|
54 | gsid | [gserver](help/database/db_gserver) | id |
55
56 Return to [database documentation](help/database)