]> git.mxchange.org Git - friendica.git/blob - doc/database/db_gserver.md
Merge remote-tracking branch 'upstream/2021.06-rc' into public-timeline
[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              |                                                    | varchar(255)     | NO   |     |                     |                |
13 | nurl             |                                                    | varchar(255)     | 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 | directory-type   | Type of directory service (Poco, Mastodon)         | tinyint          | YES  |     | 0                   |                |
20 | poco             |                                                    | varchar(255)     | NO   |     |                     |                |
21 | noscrape         |                                                    | varchar(255)     | NO   |     |                     |                |
22 | network          |                                                    | char(4)          | NO   |     |                     |                |
23 | protocol         | The protocol of the server                         | tinyint unsigned | YES  |     | NULL                |                |
24 | platform         |                                                    | varchar(255)     | NO   |     |                     |                |
25 | relay-subscribe  | Has the server subscribed to the relay system      | boolean          | NO   |     | 0                   |                |
26 | relay-scope      | The scope of messages that the server wants to get | varchar(10)      | NO   |     |                     |                |
27 | detection-method | Method that had been used to detect that server    | tinyint unsigned | YES  |     | NULL                |                |
28 | created          |                                                    | datetime         | NO   |     | 0001-01-01 00:00:00 |                |
29 | last_poco_query  |                                                    | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
30 | last_contact     | Last successful connection request                 | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
31 | last_failure     | Last failed connection request                     | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
32 | failed           | Connection failed                                  | boolean          | YES  |     | NULL                |                |
33 | next_contact     | Next connection request                            | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
34
35 Indexes
36 ------------
37
38 | Name         | Fields            |
39 | ------------ | ----------------- |
40 | PRIMARY      | id                |
41 | nurl         | UNIQUE, nurl(190) |
42 | next_contact | next_contact      |
43 | network      | network           |
44
45
46 Return to [database documentation](help/database)