From bbe1e220822e62d201727cfd3867a1eb506900cd Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 2 Sep 2023 16:21:43 -0700 Subject: [PATCH] Update Hosting Silvanus Yourself --- Hosting-Silvanus-Yourself.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Hosting-Silvanus-Yourself.md b/Hosting-Silvanus-Yourself.md index d6426de..fc4a30e 100644 --- a/Hosting-Silvanus-Yourself.md +++ b/Hosting-Silvanus-Yourself.md @@ -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` (