Update Hosting Silvanus Yourself
parent
35c3f2ef0b
commit
bbe1e22082
@ -7,7 +7,26 @@ This guide is a work in progress but a rough overview is below. Silvanus can be
|
||||
Here is the `CREATE TABLE` structure for the two tables required by Silvanus
|
||||
|
||||
### `guild_info`
|
||||
|
||||
```
|
||||
*guild_id | VARCHAR(50) | NOT NULL
|
||||
owner_id | VARCHAR(50) | NOT NULL DEFAULT "Unknown"
|
||||
tree_name | VARCHAR(100) | NOT NULL DEFAULT "Unknown"
|
||||
tree_height | FLOAT | NOT NULL DEFAULT 0.0
|
||||
tree_message_id | VARCHAR(50) | NOT NULL DEFAULT "Unknown"
|
||||
tree_channel_id | VARCHAR(50) | NOT NULL DEFAULT "Unknown"
|
||||
leaderboard_message_id | VARCHAR(50) | NOT NULL DEFAULT "Unknown"
|
||||
leaderboard_channel_id | VARCHAR(50) | NOT NULL DEFAULT "Unknown"
|
||||
water_message | VARCHAR(1500) | NOT NULL DEFAULT "Not Set"
|
||||
water_role_id | VARCHAR(50) | NOT NULL DEFAULT "Not Set"
|
||||
fruit_message | VARCHAR(1500) | NOT NULL DEFAULT "Not Set"
|
||||
fruit_role_id | VARCHAR(50) | NOT NULL DEFAULT "Not Set"
|
||||
reminder_channel_id | VARCHAR(50) | NOT NULL DEFAULT "Not Set"
|
||||
watch_channel_id | VARCHAR(50) | NOT NULL DEFAULT "Not Set"
|
||||
notifications_enabled | VARCHAR(5) | NOT NULL DEFAULT "false"
|
||||
compare_channel_id | VARCHAR(50) | NOT NULL DEFAULT "Unknown"
|
||||
compare_message_id | VARCHAR(50) | NOT NULL DEFAULT "Unknown"
|
||||
* = PRIMARY KEY
|
||||
```
|
||||
```plaintext
|
||||
CREATE TABLE `guild_info` (
|
||||
`guild_id` varchar(50) NOT NULL,
|
||||
@ -32,6 +51,17 @@ CREATE TABLE `guild_info` (
|
||||
```
|
||||
|
||||
### `leaderboard`
|
||||
```
|
||||
*id | INT(10) | NOT NULL | AUTO_INCREMENT
|
||||
guild_id | VARCHAR(50) | NOT NULL |
|
||||
tree_name | VARCHAR(100) | NOT NULL |
|
||||
tree_rank | INT(10) | NOT NULL |
|
||||
tree_height | FLOAT | NOT NULL | DEFAULT 1
|
||||
has_pin | TINYINT(1) | NOT NULL | DEFAULT 0
|
||||
timestamp | DATETIME | | DEFAULT current_timestamp()
|
||||
* = PRIMARY KEY
|
||||
```
|
||||
|
||||
|
||||
```plaintext
|
||||
CREATE TABLE `leaderboard` (
|
||||
|
Loading…
Reference in New Issue
Block a user