]> git.mxchange.org Git - friendica.git/blob - doc/database/db_gserver.md
Merge pull request #11925 from mexon/mat/dont-remove-slash
[friendica.git] / doc / database / db_gserver.md
1 Table gserver
2 ===========
3
4 Global servers
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 | url                   |                                                    | varbinary(383)   | NO   |     |                     |                |
13 | nurl                  |                                                    | varbinary(383)   | NO   |     |                     |                |
14 | version               |                                                    | varchar(255)     | NO   |     |                     |                |
15 | site_name             |                                                    | varchar(255)     | NO   |     |                     |                |
16 | info                  |                                                    | text             | YES  |     | NULL                |                |
17 | register_policy       |                                                    | tinyint          | NO   |     | 0                   |                |
18 | registered-users      | Number of registered users                         | int unsigned     | NO   |     | 0                   |                |
19 | active-week-users     | Number of active users in the last week            | int unsigned     | YES  |     | NULL                |                |
20 | active-month-users    | Number of active users in the last month           | int unsigned     | YES  |     | NULL                |                |
21 | active-halfyear-users | Number of active users in the last six month       | int unsigned     | YES  |     | NULL                |                |
22 | local-posts           | Number of local posts                              | int unsigned     | YES  |     | NULL                |                |
23 | local-comments        | Number of local comments                           | int unsigned     | YES  |     | NULL                |                |
24 | directory-type        | Type of directory service (Poco, Mastodon)         | tinyint          | YES  |     | 0                   |                |
25 | poco                  |                                                    | varbinary(383)   | NO   |     |                     |                |
26 | noscrape              |                                                    | varbinary(383)   | NO   |     |                     |                |
27 | network               |                                                    | char(4)          | NO   |     |                     |                |
28 | protocol              | The protocol of the server                         | tinyint unsigned | YES  |     | NULL                |                |
29 | platform              |                                                    | varchar(255)     | NO   |     |                     |                |
30 | relay-subscribe       | Has the server subscribed to the relay system      | boolean          | NO   |     | 0                   |                |
31 | relay-scope           | The scope of messages that the server wants to get | varchar(10)      | NO   |     |                     |                |
32 | detection-method      | Method that had been used to detect that server    | tinyint unsigned | YES  |     | NULL                |                |
33 | created               |                                                    | datetime         | NO   |     | 0001-01-01 00:00:00 |                |
34 | last_poco_query       |                                                    | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
35 | last_contact          | Last successful connection request                 | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
36 | last_failure          | Last failed connection request                     | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
37 | failed                | Connection failed                                  | boolean          | YES  |     | NULL                |                |
38 | next_contact          | Next connection request                            | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
39
40 Indexes
41 ------------
42
43 | Name         | Fields            |
44 | ------------ | ----------------- |
45 | PRIMARY      | id                |
46 | nurl         | UNIQUE, nurl(190) |
47 | next_contact | next_contact      |
48 | network      | network           |
49
50
51 Return to [database documentation](help/database)