Skip to content

Commit

Permalink
Improve paradise_schema.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Aug 14, 2024
1 parent 5f46e1e commit 63d6c56
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions SQL/paradise_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ CREATE TABLE `characters` (
`custom_emotes` LONGTEXT COLLATE 'utf8mb4_unicode_ci' DEFAULT NULL,
`runechat_color` VARCHAR(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#FFFFFF',
`cyborg_brain_type` ENUM('MMI', 'Robobrain', 'Positronic') NOT NULL DEFAULT 'MMI',
`tts_seed` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ckey` (`ckey`)
) ENGINE=InnoDB AUTO_INCREMENT=125467 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Expand Down Expand Up @@ -302,7 +301,6 @@ CREATE TABLE `player` (
`server_region` VARCHAR(32) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`muted_adminsounds_ckeys` MEDIUMTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`viewrange` VARCHAR(5) NOT NULL DEFAULT '19x15' COLLATE 'utf8mb4_general_ci',
`species_whitelist` LONGTEXT COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ckey` (`ckey`),
KEY `lastseen` (`lastseen`),
Expand Down Expand Up @@ -649,9 +647,14 @@ CREATE TABLE `json_datum_saves` (


--
-- SS220 ADDITION AND EDITS
-- SS220 ADDITIONS AND EDITS
--

# Updating DB from 49 to 49.220.1
# Adds characters.tts_seed ~furior

ALTER TABLE `characters` ADD `tts_seed` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `custom_emotes`;

--
-- Table structure for table `ckey_whitelist`
--
Expand Down Expand Up @@ -681,3 +684,30 @@ CREATE TABLE `admin_wl` (
KEY `ckey` (`ckey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `discord_links` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ckey` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`discord_id` bigint(20) DEFAULT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`one_time_token` varchar(100) NOT NULL,
`valid` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE `budget` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`date` DATETIME NOT NULL DEFAULT current_timestamp(),
`ckey` VARCHAR(32) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
`amount` INT(10) UNSIGNED NOT NULL,
`source` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_general_ci',
`date_start` DATETIME NOT NULL DEFAULT current_timestamp(),
`date_end` DATETIME NULL DEFAULT (current_timestamp() + interval 1 month),
`is_valid` TINYINT(1) NOT NULL DEFAULT '1',
`discord_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;

# Updating DB from 53.220.5 to 53.220.6
# Adds species whitelist ~legendaxe

ALTER TABLE `player` ADD `species_whitelist` LONGTEXT COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '["human"]';

0 comments on commit 63d6c56

Please sign in to comment.