Files
layonara-forge/db/schema.sql
T

1114 lines
53 KiB
SQL

/*M!999999\- enable the sandbox mode */
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `area_grass`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `area_grass` (
`area_id` int(11) unsigned NOT NULL,
`material` int(11) NOT NULL,
`overrides` text DEFAULT NULL,
`last_modder` mediumint(8) unsigned DEFAULT NULL,
`last_updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`area_id`,`material`),
KEY `last_modder` (`last_modder`),
CONSTRAINT `area_grass_ibfk_1` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `area_grass_ibfk_2` FOREIGN KEY (`last_modder`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `areas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `areas` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`tag` varchar(32) NOT NULL,
`name` varchar(96) DEFAULT NULL,
`times_visited` mediumint(7) unsigned NOT NULL DEFAULT 0,
`last_visited` datetime DEFAULT current_timestamp(),
`last_visitor` mediumint(8) unsigned NOT NULL,
`settlement` tinyint(1) unsigned NOT NULL DEFAULT 0,
`current` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `tag` (`tag`),
KEY `last_visitor` (`last_visitor`),
KEY `settlement` (`settlement`),
CONSTRAINT `areas_ibfk_1` FOREIGN KEY (`last_visitor`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=94934 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `bank_items`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `bank_items` (
`player_id` mediumint(8) unsigned NOT NULL,
`bank_item_id` tinyint(3) unsigned NOT NULL,
`uti_data` mediumblob NOT NULL,
`uti_name` varchar(128) NOT NULL,
`uti_count` tinyint(2) unsigned NOT NULL DEFAULT 1,
`uti_stack` mediumint(5) unsigned NOT NULL DEFAULT 1,
`uti_md5` binary(16) NOT NULL,
PRIMARY KEY (`player_id`,`bank_item_id`),
UNIQUE KEY `id_data` (`player_id`,`uti_md5`),
KEY `player_id` (`player_id`),
CONSTRAINT `bank_items_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `boss_xp_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `boss_xp_log` (
`player_id` mediumint(8) unsigned NOT NULL,
`bosskilled` varchar(64) NOT NULL,
`xpgiven` smallint(4) unsigned NOT NULL DEFAULT 0,
`area_id` int(11) unsigned DEFAULT NULL,
`timestamp` datetime DEFAULT current_timestamp(),
KEY `player_id` (`player_id`),
KEY `bosskilled` (`bosskilled`),
KEY `area_id` (`area_id`),
CONSTRAINT `boss_xp_log_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `boss_xp_log_ibfk_2` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `changelog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `changelog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`repo` varchar(100) NOT NULL,
`change_type` enum('bug','enhancement','content','other') NOT NULL DEFAULT 'other',
`title` varchar(500) NOT NULL,
`description` text DEFAULT NULL,
`github_issue_number` int(11) DEFAULT NULL,
`github_pr_number` int(11) DEFAULT NULL,
`github_url` varchar(500) DEFAULT NULL,
`discord_thread_id` varchar(20) DEFAULT NULL,
`reporter_player` varchar(100) DEFAULT NULL,
`author` varchar(100) DEFAULT NULL,
`release_version` varchar(50) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`),
KEY `idx_changelog_created` (`created_at`),
KEY `idx_changelog_release` (`release_version`),
KEY `idx_changelog_repo_issue` (`repo`,`github_issue_number`)
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `cnr_components`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `cnr_components` (
`sKeyToComponent` varchar(32) NOT NULL DEFAULT '',
`sTag` varchar(16) NOT NULL,
`nQty` smallint(5) unsigned NOT NULL DEFAULT 1,
`nRetainQty` smallint(4) unsigned NOT NULL DEFAULT 0,
`recipe_id` smallint(4) unsigned NOT NULL,
`device_id` tinyint(2) unsigned NOT NULL,
`nCompEnabled` tinyint(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`sKeyToComponent`),
KEY `sTag` (`sTag`),
KEY `recipe_id` (`recipe_id`),
KEY `device_id` (`device_id`),
CONSTRAINT `cnr_components_ibfk_1` FOREIGN KEY (`device_id`) REFERENCES `cnr_devices` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
CONSTRAINT `cnr_components_ibfk_2` FOREIGN KEY (`recipe_id`) REFERENCES `cnr_recipes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `cnr_devices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `cnr_devices` (
`id` tinyint(2) unsigned NOT NULL AUTO_INCREMENT,
`sDeviceTag` varchar(16) DEFAULT NULL,
`sAnimation` varchar(16) DEFAULT NULL,
`bSpawnInDevice` char(1) DEFAULT NULL,
`sInvTool` varchar(16) DEFAULT NULL,
`sEqpTool` varchar(16) DEFAULT NULL,
`nTradeType` tinyint(2) DEFAULT NULL,
`fInvToolBP` float DEFAULT NULL,
`fEqpToolBP` float DEFAULT NULL,
`sCertificate` varchar(16) DEFAULT NULL,
`iMaxAtOnce` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `sDeviceTag` (`sDeviceTag`)
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `cnr_misc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `cnr_misc` (
`player_id` mediumint(8) unsigned NOT NULL,
`name` varchar(32) NOT NULL DEFAULT '',
`val` mediumint(6) unsigned NOT NULL,
PRIMARY KEY (`player_id`,`name`),
KEY `player_id` (`player_id`),
KEY `val` (`val`),
CONSTRAINT `fk_cnr_misc_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `cnr_recipes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `cnr_recipes` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`sKeyToRecipe` varchar(32) NOT NULL DEFAULT '',
`device_id` tinyint(2) unsigned NOT NULL,
`sDescription` varchar(64) NOT NULL DEFAULT '',
`sTag` varchar(16) NOT NULL DEFAULT '',
`nQty` tinyint(3) unsigned NOT NULL DEFAULT 1,
`sKeyToParent` varchar(32) NOT NULL DEFAULT '',
`nStr` tinyint(3) unsigned NOT NULL DEFAULT 0,
`nDex` tinyint(3) unsigned NOT NULL DEFAULT 0,
`nCon` tinyint(3) unsigned NOT NULL DEFAULT 0,
`nInt` tinyint(3) unsigned NOT NULL DEFAULT 0,
`nWis` tinyint(3) unsigned NOT NULL DEFAULT 0,
`nCha` tinyint(3) unsigned NOT NULL DEFAULT 0,
`nLevel` tinyint(2) unsigned NOT NULL DEFAULT 1,
`nGameXP` smallint(3) unsigned NOT NULL DEFAULT 10,
`nTradeXP` smallint(3) unsigned NOT NULL DEFAULT 10,
`sBiTag` varchar(16) DEFAULT NULL,
`nBiQty` tinyint(3) unsigned NOT NULL DEFAULT 0,
`nOnFailBiQty` tinyint(3) unsigned NOT NULL DEFAULT 0,
`sExRecipeTag` varchar(32) NOT NULL DEFAULT '',
`iMaxOverride` tinyint(2) NOT NULL DEFAULT -1,
`nCompEnabled` tinyint(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`id`),
UNIQUE KEY `sKeyToRecipe` (`sKeyToRecipe`),
KEY `sTag` (`sTag`),
KEY `sKeyToParent` (`sKeyToParent`),
KEY `sDescription` (`sDescription`),
KEY `device_id` (`device_id`),
CONSTRAINT `cnr_recipes_ibfk_1` FOREIGN KEY (`device_id`) REFERENCES `cnr_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2224 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `cnr_submenus`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `cnr_submenus` (
`sKeyToMenu` varchar(64) NOT NULL DEFAULT '',
`sKeyToParent` varchar(64) NOT NULL DEFAULT '',
`sTitle` varchar(64) NOT NULL DEFAULT '',
`device_id` tinyint(2) unsigned NOT NULL,
PRIMARY KEY (`sKeyToMenu`),
KEY `sKeyToParent` (`sKeyToParent`),
KEY `device_id` (`device_id`),
CONSTRAINT `cnr_submenus_ibfk_1` FOREIGN KEY (`device_id`) REFERENCES `cnr_devices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `crafting_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `crafting_log` (
`player_id` mediumint(8) unsigned NOT NULL,
`area_id` int(11) unsigned DEFAULT NULL,
`recipe_id` smallint(5) unsigned NOT NULL DEFAULT 1,
`success` tinyint(2) NOT NULL,
`roll` tinyint(2) unsigned NOT NULL,
`timestamp` datetime DEFAULT current_timestamp(),
KEY `player_id` (`player_id`),
KEY `recipe_id` (`recipe_id`),
KEY `area_id` (`area_id`),
KEY `timestamp` (`timestamp`),
CONSTRAINT `crafting_log_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `crafting_log_ibfk_2` FOREIGN KEY (`recipe_id`) REFERENCES `cnr_recipes` (`id`),
CONSTRAINT `crafting_log_ibfk_3` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `death_penalty`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `death_penalty` (
`player_id` int(11) NOT NULL,
`magnitude` tinyint(4) NOT NULL DEFAULT 0,
`applied_at` int(11) DEFAULT NULL,
`cleared_at` int(11) DEFAULT NULL,
`source` varchar(32) DEFAULT NULL,
PRIMARY KEY (`player_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `deities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `deities` (
`id` tinyint(1) unsigned NOT NULL,
`name` varchar(16) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
`influence` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `deityname` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `deity_relations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `deity_relations` (
`id` tinyint(2) unsigned NOT NULL,
`otherId` tinyint(2) unsigned NOT NULL,
`relation` enum('A','E','F','N','U') NOT NULL DEFAULT 'N',
PRIMARY KEY (`id`,`otherId`),
KEY `relation` (`relation`),
KEY `id` (`id`),
KEY `otherId` (`otherId`),
CONSTRAINT `deity_relations_ibfk_1` FOREIGN KEY (`id`) REFERENCES `deities` (`id`),
CONSTRAINT `deity_relations_ibfk_2` FOREIGN KEY (`otherId`) REFERENCES `deities` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `dm_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `dm_settings` (
`player_id` mediumint(8) unsigned NOT NULL,
`name` varchar(24) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '',
`val` int(10) unsigned NOT NULL,
PRIMARY KEY (`player_id`,`name`),
KEY `name` (`name`),
KEY `player_id` (`player_id`),
CONSTRAINT `fk_dm_settings_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `dms`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `dms` (
`dm_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`cdkey` varchar(8) NOT NULL,
`playername` varchar(40) NOT NULL,
`role` tinyint(1) NOT NULL,
PRIMARY KEY (`dm_id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `donated_items`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `donated_items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`donation_id` int(11) NOT NULL DEFAULT 0,
`name` varchar(72) DEFAULT NULL,
`item` varchar(32) NOT NULL,
`count` mediumint(7) unsigned NOT NULL DEFAULT 1,
`value` mediumint(7) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `donation_id` (`donation_id`),
KEY `value` (`value`),
CONSTRAINT `donated_items_ibfk_1` FOREIGN KEY (`donation_id`) REFERENCES `donations` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=262878 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `donation_causes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `donation_causes` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`cause` varchar(48) NOT NULL,
`active` tinyint(1) unsigned NOT NULL DEFAULT 1,
`deity` tinyint(1) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `cause` (`cause`),
KEY `active` (`active`),
KEY `deity` (`deity`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `donations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `donations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`recipient` tinyint(3) unsigned NOT NULL,
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`player_deity` tinyint(2) unsigned DEFAULT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`anon` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `recipient` (`recipient`),
KEY `player_id` (`player_id`),
KEY `anon` (`anon`),
KEY `recipient_2` (`recipient`,`player_id`),
CONSTRAINT `donations_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `donations_ibfk_2` FOREIGN KEY (`recipient`) REFERENCES `donation_causes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29361 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `dynamic_names`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `dynamic_names` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`pc1` mediumint(8) unsigned NOT NULL,
`pc2` mediumint(8) unsigned NOT NULL,
`name` varchar(40) NOT NULL,
`dub` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `pair` (`pc1`,`pc2`),
KEY `pc1` (`pc1`),
KEY `pc2` (`pc2`),
CONSTRAINT `dynamic_names_ibfk_1` FOREIGN KEY (`pc1`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `dynamic_names_ibfk_2` FOREIGN KEY (`pc2`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=26352 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `explorer_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `explorer_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`pointname` varchar(64) NOT NULL DEFAULT '',
`pointtag` varchar(20) NOT NULL DEFAULT '',
`pointstep` int(10) unsigned NOT NULL DEFAULT 0,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `player_id` (`player_id`),
CONSTRAINT `explorer_log_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=52929 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `horses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `horses` (
`id` tinyint(1) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(13) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `item_use`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `item_use` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`target_name` varchar(64) NOT NULL DEFAULT '',
`item_name` varchar(64) NOT NULL DEFAULT '',
`user_location` varchar(200) DEFAULT NULL,
`target_location` varchar(200) DEFAULT NULL,
`notes` varchar(200) DEFAULT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `player_id` (`player_id`),
CONSTRAINT `item_use_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=242913 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `ldh_furniture`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `ldh_furniture` (
`owner_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`unique_address` varchar(6) NOT NULL DEFAULT '',
`unique_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`unique_tag` varchar(25) NOT NULL DEFAULT '',
`resref` varchar(16) NOT NULL DEFAULT '',
`state` tinyint(4) NOT NULL DEFAULT 0,
`cost` int(11) NOT NULL DEFAULT 0,
`location` text NOT NULL,
`locked` tinyint(1) unsigned NOT NULL DEFAULT 0,
`container` tinyint(1) unsigned NOT NULL DEFAULT 0,
`plot` smallint(4) unsigned NOT NULL DEFAULT 0,
`scale` float(7,6) DEFAULT 1.000000,
`purchase_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`name` varchar(128) DEFAULT '',
`description` mediumtext DEFAULT NULL,
`version` tinyint(1) unsigned DEFAULT NULL,
PRIMARY KEY (`unique_id`),
KEY `owner_id` (`owner_id`),
KEY `unique_address` (`unique_address`),
CONSTRAINT `ldh_furniture_ibfk_1` FOREIGN KEY (`unique_address`) REFERENCES `ldh_house` (`unique_address`),
CONSTRAINT `ldh_furniture_ibfk_2` FOREIGN KEY (`owner_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=1290088 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `ldh_furniture_items`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `ldh_furniture_items` (
`unique_id` int(10) unsigned NOT NULL,
`uti_data` mediumblob NOT NULL,
`uti_name` varchar(128) NOT NULL,
`uti_count` tinyint(2) unsigned NOT NULL DEFAULT 1,
`uti_stack` mediumint(5) unsigned NOT NULL DEFAULT 1,
`uti_md5` binary(16) NOT NULL,
UNIQUE KEY `id_data` (`unique_id`,`uti_md5`),
KEY `unique_id` (`unique_id`),
CONSTRAINT `ldh_furniture_items_ibfk_1` FOREIGN KEY (`unique_id`) REFERENCES `ldh_furniture` (`unique_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `ldh_house`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `ldh_house` (
`door_tag` varchar(32) NOT NULL DEFAULT '',
`unique_address` varchar(6) NOT NULL DEFAULT '',
`region` varchar(4) NOT NULL DEFAULT '',
`owner_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`last_owner_id` mediumint(8) unsigned DEFAULT 0,
`purchase_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`total_cost` mediumint(7) unsigned NOT NULL DEFAULT 0,
`total_paid` mediumint(7) unsigned NOT NULL DEFAULT 0,
`payments_left` tinyint(1) unsigned NOT NULL DEFAULT 0,
`payment_amt` smallint(4) unsigned NOT NULL DEFAULT 0,
`loan_length_yrs` tinyint(2) unsigned NOT NULL DEFAULT 0,
`interest_rate` double NOT NULL DEFAULT 0,
`tax_rate` double NOT NULL DEFAULT 0,
`insurance_cost` tinyint(3) unsigned NOT NULL DEFAULT 0,
`last_renovated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`last_roofed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`last_swept_chimney` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`last_sealed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`damage_structural` tinyint(1) unsigned NOT NULL DEFAULT 0,
`damage_roof` tinyint(1) unsigned NOT NULL DEFAULT 0,
`damage_fire` tinyint(1) unsigned NOT NULL DEFAULT 0,
`roof_type` tinyint(1) unsigned NOT NULL DEFAULT 0,
`wall_type` tinyint(1) unsigned NOT NULL DEFAULT 0,
`building_type` tinyint(1) unsigned NOT NULL DEFAULT 0,
`building_race` tinyint(1) unsigned NOT NULL DEFAULT 0,
`building_class` tinyint(1) unsigned NOT NULL DEFAULT 0,
`building_furniture` tinyint(1) unsigned NOT NULL DEFAULT 0,
`locked` tinyint(1) unsigned NOT NULL DEFAULT 0,
`for_sale` tinyint(1) unsigned NOT NULL DEFAULT 0,
`lockversion` tinyint(2) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`door_tag`),
UNIQUE KEY `unique_address` (`unique_address`),
KEY `owner_id` (`owner_id`),
KEY `last_owner_id` (`last_owner_id`),
CONSTRAINT `ldh_house_ibfk_1` FOREIGN KEY (`owner_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `ldh_house_ibfk_2` FOREIGN KEY (`last_owner_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `ldh_house_key`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `ldh_house_key` (
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`unique_address` varchar(32) NOT NULL DEFAULT '',
`owner_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`player_id`,`unique_address`,`owner_id`),
KEY `player_id` (`player_id`),
KEY `owner_id` (`owner_id`),
KEY `unique_address` (`unique_address`),
CONSTRAINT `ldh_house_key_ibfk_1` FOREIGN KEY (`unique_address`) REFERENCES `ldh_house` (`unique_address`),
CONSTRAINT `ldh_house_key_ibfk_2` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `ldh_house_key_ibfk_3` FOREIGN KEY (`owner_id`) REFERENCES `player_tracking` (`identifier`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `lore_folders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `lore_folders` (
`id` smallint(5) unsigned NOT NULL,
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`name` varchar(64) NOT NULL DEFAULT 'Parchment Folder',
`state` tinyint(1) NOT NULL DEFAULT 0,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `player_id` (`player_id`),
CONSTRAINT `lore_folders_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `lore_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `lore_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`from` varchar(32) NOT NULL,
`subject` varchar(50) NOT NULL,
`message` text NOT NULL,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `player_id` (`player_id`),
CONSTRAINT `lore_messages_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=17478 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `lore_parchments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `lore_parchments` (
`id` mediumint(8) NOT NULL,
`folder_id` smallint(5) unsigned NOT NULL DEFAULT 0,
`tag` varchar(32) NOT NULL,
`title` varchar(96) NOT NULL,
`content` text NOT NULL,
`ordering` tinyint(1) unsigned NOT NULL DEFAULT 0,
`locked` tinyint(1) unsigned NOT NULL DEFAULT 0,
`state` tinyint(1) unsigned NOT NULL DEFAULT 0,
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`max_length` smallint(5) unsigned NOT NULL DEFAULT 25000,
PRIMARY KEY (`id`),
KEY `title` (`title`),
KEY `folder_id` (`folder_id`),
CONSTRAINT `lore_parchments_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `lore_folders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `lottery`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `lottery` (
`number` int(3) NOT NULL DEFAULT 0,
`player` varchar(64) NOT NULL DEFAULT '',
`position` int(3) NOT NULL DEFAULT 0,
PRIMARY KEY (`number`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `magic_mouth`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `magic_mouth` (
`id` smallint(5) unsigned NOT NULL,
`category` varchar(24) NOT NULL DEFAULT '',
`topic` varchar(96) NOT NULL DEFAULT '',
`message` text NOT NULL,
`xp_multiplier` float NOT NULL DEFAULT 1,
`deleted` tinyint(1) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `category` (`category`),
KEY `topic` (`topic`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `magic_mouth_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `magic_mouth_log` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`message_id` smallint(5) unsigned NOT NULL DEFAULT 0,
`xp_given` smallint(4) unsigned NOT NULL DEFAULT 0,
`timestamp` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `player_id` (`player_id`),
KEY `message_id` (`message_id`),
CONSTRAINT `magic_mouth_log_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `magic_mouth_log_ibfk_2` FOREIGN KEY (`message_id`) REFERENCES `magic_mouth` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=7618 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `npc_quest`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `npc_quest` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`giver_id` smallint(5) unsigned NOT NULL,
`taker_id` smallint(5) unsigned NOT NULL,
`status` tinyint(1) unsigned NOT NULL DEFAULT 0,
`recipe_id` smallint(5) unsigned NOT NULL,
`num_items` tinyint(1) unsigned NOT NULL DEFAULT 1,
`date_initialized` datetime DEFAULT NULL,
`date_progressed` datetime DEFAULT NULL,
`date_required` datetime DEFAULT NULL,
`date_completed` datetime DEFAULT NULL,
`fortune_progress` float DEFAULT NULL,
`fortune_completion` float DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `taker_id` (`taker_id`),
KEY `giver_id` (`giver_id`),
KEY `recipe_key` (`recipe_id`),
KEY `status` (`status`),
CONSTRAINT `npc_quest_ibfk_1` FOREIGN KEY (`giver_id`) REFERENCES `random_npc` (`id`),
CONSTRAINT `npc_quest_ibfk_2` FOREIGN KEY (`taker_id`) REFERENCES `random_npc` (`id`),
CONSTRAINT `npc_quest_ibfk_3` FOREIGN KEY (`recipe_id`) REFERENCES `cnr_recipes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12051 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `npc_quest_pcs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `npc_quest_pcs` (
`quest_id` mediumint(8) unsigned NOT NULL,
`player_id` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`quest_id`,`player_id`),
KEY `quest_id` (`quest_id`),
KEY `player_id` (`player_id`),
CONSTRAINT `npc_quest_pcs_ibfk_1` FOREIGN KEY (`quest_id`) REFERENCES `npc_quest` (`id`),
CONSTRAINT `npc_quest_pcs_ibfk_2` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `oxen`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `oxen` (
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`item` varchar(32) NOT NULL,
`count` smallint(5) unsigned DEFAULT NULL,
`identified` tinyint(1) unsigned NOT NULL,
`charges` mediumint(8) unsigned NOT NULL,
`stack` smallint(5) unsigned NOT NULL,
KEY `player_id` (`player_id`),
KEY `oxenidx` (`player_id`,`item`),
CONSTRAINT `oxen_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `pawn_quest_triggers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `pawn_quest_triggers` (
`id` tinyint(3) unsigned NOT NULL,
`text_trigger` varchar(32) NOT NULL,
`prefix` varchar(128) NOT NULL,
`suffix` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `trigger` (`text_trigger`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `pc_deaths`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `pc_deaths` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`location` int(11) unsigned DEFAULT NULL,
`killername` varchar(128) DEFAULT NULL,
`level` tinyint(2) DEFAULT 1,
`token` tinyint(1) unsigned DEFAULT 0,
`soulsave` tinyint(3) NOT NULL DEFAULT -1,
`timestamp` datetime DEFAULT current_timestamp(),
PRIMARY KEY (`id`),
KEY `player_id` (`player_id`),
KEY `deathloc` (`location`),
KEY `killer` (`killername`),
KEY `timestamp` (`timestamp`),
CONSTRAINT `pc_deaths_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `pc_deaths_ibfk_2` FOREIGN KEY (`location`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=204850 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `pc_locs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `pc_locs` (
`player_id` mediumint(8) unsigned NOT NULL,
`loc_type` tinyint(1) NOT NULL DEFAULT 0,
`area_tag` varchar(64) DEFAULT '',
`posX` float(11,8) DEFAULT 0.00000000,
`posY` float(11,8) DEFAULT 0.00000000,
`posZ` float(11,8) DEFAULT 0.00000000,
`orientation` float(11,8) DEFAULT 0.00000000,
PRIMARY KEY (`player_id`,`loc_type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_area_tiles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_area_tiles` (
`player_id` mediumint(8) unsigned NOT NULL,
`area_id` int(11) unsigned NOT NULL,
`x` tinyint(2) unsigned NOT NULL,
`y` tinyint(2) unsigned NOT NULL,
`explored` tinyint(1) unsigned DEFAULT NULL,
PRIMARY KEY (`player_id`,`area_id`,`x`,`y`),
KEY `player_area_tiles_ibfk_2` (`area_id`),
CONSTRAINT `player_area_tiles_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `player_area_tiles_ibfk_2` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_areas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_areas` (
`player_id` mediumint(8) unsigned NOT NULL,
`area_id` int(11) unsigned NOT NULL,
`times_visited` smallint(4) unsigned NOT NULL,
`last_visited` datetime DEFAULT current_timestamp(),
`latest` tinyint(1) unsigned NOT NULL DEFAULT 0,
`mapped` tinyint(1) unsigned DEFAULT 0,
`visited_since_reset` tinyint(1) unsigned DEFAULT 0,
`tile_explored_data` varchar(172) DEFAULT NULL,
PRIMARY KEY (`player_id`,`area_id`),
KEY `area_id` (`area_id`),
KEY `latest` (`latest`),
KEY `player_id_latest` (`player_id`,`latest`),
CONSTRAINT `player_areas_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `player_areas_ibfk_2` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_horses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_horses` (
`player_id` mediumint(8) unsigned NOT NULL,
`name` varchar(96) DEFAULT NULL,
`fast` tinyint(1) unsigned NOT NULL,
`mounted` tinyint(1) unsigned NOT NULL,
`pc_pheno` tinyint(1) unsigned NOT NULL,
`pc_tail` tinyint(1) unsigned NOT NULL,
`type` tinyint(1) unsigned NOT NULL,
PRIMARY KEY (`player_id`),
KEY `horse_type` (`type`),
CONSTRAINT `fk_player_horses_2` FOREIGN KEY (`type`) REFERENCES `horses` (`id`),
CONSTRAINT `fk_player_horses_3` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_maps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_maps` (
`pin_id` mediumint(8) unsigned NOT NULL,
`player_id` mediumint(8) unsigned NOT NULL,
`area_id` int(11) unsigned DEFAULT NULL,
`fX` float(8,4) NOT NULL,
`fY` float(8,4) NOT NULL,
`name` text NOT NULL,
PRIMARY KEY (`pin_id`,`player_id`),
KEY `player_id` (`player_id`),
KEY `area_id` (`area_id`),
CONSTRAINT `player_maps_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `player_maps_ibfk_2` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_merchants`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_merchants` (
`player_id` mediumint(8) unsigned NOT NULL,
`merchantname` varchar(64) NOT NULL DEFAULT '',
`area_id` int(11) unsigned NOT NULL,
`skill_id` tinyint(2) unsigned NOT NULL,
`discount` tinyint(3) NOT NULL DEFAULT 0,
`timestamp` datetime DEFAULT current_timestamp(),
PRIMARY KEY (`player_id`,`merchantname`,`area_id`),
KEY `player_id_idx` (`player_id`),
KEY `area_id_idx` (`area_id`),
CONSTRAINT `player_merchants_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `player_merchants_ibfk_2` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_oxen`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_oxen` (
`player_id` mediumint(8) unsigned NOT NULL,
`name` varchar(96) DEFAULT NULL,
`pack_off` tinyint(1) unsigned DEFAULT NULL,
PRIMARY KEY (`player_id`),
CONSTRAINT `fk_player_oxen_2` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_qb`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_qb` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`player_id` mediumint(8) unsigned NOT NULL,
`name` varchar(16) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `player_name` (`player_id`,`name`),
KEY `player_id` (`player_id`),
CONSTRAINT `player_qb_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=732 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_qb_slots`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_qb_slots` (
`qb_id` mediumint(8) unsigned NOT NULL,
`slot` tinyint(2) unsigned NOT NULL,
`slot_type` tinyint(1) unsigned NOT NULL,
`special_id` int(11) DEFAULT NULL,
`meta` int(11) DEFAULT NULL,
`class` int(11) DEFAULT NULL,
`domain` int(11) DEFAULT NULL,
`label` varchar(96) DEFAULT NULL,
`command` varchar(255) DEFAULT NULL,
`item_one` mediumint(8) DEFAULT NULL,
`item_two` mediumint(8) DEFAULT NULL,
PRIMARY KEY (`qb_id`,`slot`),
KEY `qb_id` (`qb_id`),
CONSTRAINT `player_qb_slots_ibfk_1` FOREIGN KEY (`qb_id`) REFERENCES `player_qb` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_qj`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_qj` (
`player_id` mediumint(8) unsigned NOT NULL,
`journal_string` text NOT NULL,
PRIMARY KEY (`player_id`),
CONSTRAINT `fk_player_qj_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_sb`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_sb` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`player_id` mediumint(8) unsigned NOT NULL,
`name` varchar(16) NOT NULL,
`class` tinyint(1) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `player_name` (`player_id`,`name`),
KEY `player_id` (`player_id`),
CONSTRAINT `player_sb_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=4007 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_sb_spells`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_sb_spells` (
`book_id` smallint(5) unsigned NOT NULL,
`level` tinyint(1) unsigned NOT NULL,
`slot` tinyint(1) unsigned NOT NULL,
`spell` smallint(4) NOT NULL,
`meta` tinyint(1) NOT NULL,
`domain` tinyint(1) NOT NULL,
UNIQUE KEY `book_level_slot` (`book_id`,`level`,`slot`),
CONSTRAINT `player_sb_spells_ibfk_1` FOREIGN KEY (`book_id`) REFERENCES `player_sb` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_tracking`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_tracking` (
`identifier` mediumint(8) unsigned NOT NULL,
`playername` varchar(64) NOT NULL DEFAULT '',
`charname` varchar(64) NOT NULL DEFAULT '',
`gender` char(1) NOT NULL DEFAULT '',
`subrace` varchar(100) NOT NULL DEFAULT '',
`deity` varchar(100) NOT NULL DEFAULT '',
`pc_dm` varchar(4) NOT NULL DEFAULT '',
`experience` bigint(20) NOT NULL DEFAULT 0,
`level_1` int(11) NOT NULL DEFAULT 0,
`level_2` int(11) NOT NULL DEFAULT 0,
`level_3` int(11) NOT NULL DEFAULT 0,
`class_1` varchar(16) NOT NULL DEFAULT '',
`class_2` varchar(32) DEFAULT NULL,
`class_3` varchar(32) DEFAULT NULL,
`public_cdkey` varchar(64) NOT NULL DEFAULT '',
`ip_address` varchar(25) NOT NULL DEFAULT '',
`last_seen` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`servertag` varchar(64) NOT NULL DEFAULT '',
`race` varchar(100) NOT NULL DEFAULT '',
`lawchaos` int(3) DEFAULT 0,
`goodevil` int(3) DEFAULT 0,
`location` varchar(128) DEFAULT NULL,
`banned` tinyint(1) DEFAULT 0,
`world_leader` tinyint(1) DEFAULT 0,
`wl_title` varchar(100) DEFAULT NULL,
`inactive_world_leader` tinyint(1) NOT NULL DEFAULT 0,
`pleas` tinyint(4) DEFAULT 0,
`adjust_xp` int(11) DEFAULT 0,
`adjust_level` int(11) DEFAULT 0,
`adjust_reason` varchar(200) DEFAULT NULL,
`karma` int(11) NOT NULL DEFAULT 1,
`karma_factor` float NOT NULL DEFAULT 1,
`gold` mediumint(8) unsigned NOT NULL DEFAULT 0,
`portrait` varchar(24) DEFAULT NULL,
`bic_file` varchar(24) DEFAULT NULL,
`logged_in` tinyint(1) unsigned NOT NULL DEFAULT 0,
`persistent_locs_loaded` tinyint(1) NOT NULL DEFAULT 0,
`discord_id` bigint(20) unsigned DEFAULT NULL,
PRIMARY KEY (`identifier`),
UNIQUE KEY `playchar` (`playername`,`charname`),
KEY `charname` (`charname`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `player_xp_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `player_xp_log` (
`player_id` mediumint(8) unsigned NOT NULL DEFAULT 0,
`experience` int(8) unsigned NOT NULL DEFAULT 0,
`timestamp` datetime DEFAULT current_timestamp(),
`area_id` int(11) unsigned DEFAULT NULL,
KEY `player_id` (`player_id`),
KEY `area_id` (`area_id`),
KEY `timestamp` (`timestamp`),
CONSTRAINT `player_xp_log_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `player_xp_log_ibfk_2` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `pwdata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `pwdata` (
`player_id` mediumint(8) unsigned NOT NULL,
`name` varchar(24) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '',
`val` int(10) unsigned NOT NULL,
PRIMARY KEY (`player_id`,`name`),
KEY `name` (`name`),
KEY `player_id` (`player_id`),
CONSTRAINT `fk_pwdata_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `racial_heads`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `racial_heads` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`race` tinyint(1) unsigned NOT NULL,
`gender` tinyint(1) unsigned NOT NULL,
`phenotype` tinyint(1) unsigned NOT NULL,
`head_name` varchar(16) NOT NULL,
PRIMARY KEY (`id`),
KEY `race_gender_pheno` (`race`,`gender`,`phenotype`)
) ENGINE=InnoDB AUTO_INCREMENT=1446 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `random_loc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `random_loc` (
`id` mediumint(5) unsigned NOT NULL AUTO_INCREMENT,
`area_id` int(11) unsigned DEFAULT NULL,
`vector` varchar(160) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `vector` (`vector`),
KEY `area_id` (`area_id`),
CONSTRAINT `random_loc_ibfk_1` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=90710 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `random_npc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `random_npc` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(48) NOT NULL,
`utc_data` blob NOT NULL,
`random_loc` mediumint(5) unsigned NOT NULL,
`last_used` datetime NOT NULL DEFAULT '1974-10-25 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `random_loc` (`random_loc`),
KEY `last_used` (`last_used`),
CONSTRAINT `random_npc_ibfk_1` FOREIGN KEY (`random_loc`) REFERENCES `random_loc` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=898 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPRESSED;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `serverdata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `serverdata` (
`welcome_msg` text NOT NULL,
`last_reset` int(11) unsigned NOT NULL,
`last_login` int(11) DEFAULT NULL,
`report_type` tinyint(1) unsigned NOT NULL,
`soul_mother` tinyint(1) unsigned NOT NULL DEFAULT 1,
`portal_type` tinyint(1) unsigned NOT NULL DEFAULT 0,
`load_cnr` tinyint(1) unsigned NOT NULL DEFAULT 0,
`report_loot` tinyint(1) unsigned NOT NULL DEFAULT 0,
`XPMultiplier` float unsigned NOT NULL DEFAULT 1,
`GPMultiplier` float unsigned NOT NULL DEFAULT 1,
`DisablePlayerPvP` int(1) unsigned NOT NULL DEFAULT 0,
`DropPercentages` varchar(15) NOT NULL,
`GoldPercentages` varchar(15) NOT NULL,
`Voltrex` int(1) unsigned NOT NULL DEFAULT 1 COMMENT 'Set to 0 to lock down Voltrex',
`npcCasterCap` tinyint(2) unsigned NOT NULL DEFAULT 40,
`autoxp_enable` tinyint(1) unsigned NOT NULL DEFAULT 0,
`autoxp_factor` float NOT NULL DEFAULT 0,
`CnrRespawnOre` float NOT NULL DEFAULT 0,
`CnrRespawnGem` float NOT NULL DEFAULT 0,
`CnrRespawnDig` float NOT NULL DEFAULT 0,
`CnrRespawnTree` float NOT NULL DEFAULT 0,
`CnrRespawnPlant` float NOT NULL DEFAULT 0,
`karma_enable` tinyint(1) unsigned NOT NULL DEFAULT 0,
`karma_idle_timeout` tinyint(3) unsigned NOT NULL DEFAULT 30,
`karma_points_per_hour` float NOT NULL DEFAULT 0.2,
`karma_global_factor` float NOT NULL DEFAULT 1,
`karma_world_leader_factor` float NOT NULL DEFAULT 1,
`karma_name` varchar(45) NOT NULL DEFAULT 'Karma',
`karma_xp_hour` float NOT NULL DEFAULT 1,
`karma_to_gp` int(11) NOT NULL DEFAULT 1000,
`load_houses` tinyint(1) unsigned NOT NULL DEFAULT 0,
`dynamic_names` tinyint(1) unsigned NOT NULL DEFAULT 1,
`tc_min_interval` tinyint(1) unsigned NOT NULL DEFAULT 5,
`tc_max_interval` tinyint(1) unsigned NOT NULL DEFAULT 10,
`tc_teaser_delay` float NOT NULL DEFAULT 3,
`tc_msg_delay` float NOT NULL DEFAULT 10,
`random_loot` tinyint(2) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `storage_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `storage_log` (
`disturb_type` tinyint(1) NOT NULL DEFAULT 0,
`player_id` mediumint(8) unsigned NOT NULL,
`area_id` int(11) unsigned DEFAULT NULL,
`container_id` int(10) unsigned NOT NULL DEFAULT 0,
`item_name` varchar(128) NOT NULL DEFAULT '',
`stack_size` mediumint(8) unsigned NOT NULL DEFAULT 1,
`timestamp` datetime DEFAULT current_timestamp(),
KEY `container_id` (`container_id`),
KEY `player_id` (`player_id`),
KEY `area_id` (`area_id`),
KEY `timestamp` (`timestamp`),
CONSTRAINT `storage_log_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `player_tracking` (`identifier`),
CONSTRAINT `storage_log_ibfk_2` FOREIGN KEY (`area_id`) REFERENCES `areas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `towncrier`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `towncrier` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`message` text NOT NULL,
`timestamp` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Seed: cnr_misc device flags (required for crafting system init, all 51 devices)
INSERT INTO cnr_misc (player_id, name, val) VALUES
(0, 'cnrAlchemyTable_DeviceLoaded', '0'),
(0, 'cnrAnvilArmor_DeviceLoaded', '0'),
(0, 'cnrAnvilGArmor_DeviceLoaded', '0'),
(0, 'cnrAnvilPublic_DeviceLoaded', '0'),
(0, 'cnrAnvilWeapon_DeviceLoaded', '0'),
(0, 'cnrBakersOven_DeviceLoaded', '0'),
(0, 'cnrBrewersKeg_DeviceLoaded', '0'),
(0, 'cnrBrewersKettle_DeviceLoaded', '0'),
(0, 'cnrBrewersOven_DeviceLoaded', '0'),
(0, 'cnrCarpsBench_DeviceLoaded', '0'),
(0, 'cnrCuringTub_DeviceLoaded', '0'),
(0, 'cnrEnchantAltar_DeviceLoaded', '0'),
(0, 'cnrEnchantBowl_DeviceLoaded', '0'),
(0, 'cnrEnchantHoly_DeviceLoaded', '0'),
(0, 'cnrEnchantMagic_DeviceLoaded', '0'),
(0, 'cnrFarmersMill_DeviceLoaded', '0'),
(0, 'cnrFarmersPress_DeviceLoaded', '0'),
(0, 'cnrFishPress_DeviceLoaded', '0'),
(0, 'cnrFletchBench_DeviceLoaded', '0'),
(0, 'cnrForgePublic_DeviceLoaded', '0'),
(0, 'cnrFurnBench_DeviceLoaded', '0'),
(0, 'cnrGemSmasher_DeviceLoaded', '0'),
(0, 'cnrGemStone_DeviceLoaded', '0'),
(0, 'cnrGemTable_DeviceLoaded', '0'),
(0, 'cnrGEnchantAltar_DeviceLoaded', '0'),
(0, 'cnrHideRack_DeviceLoaded', '0'),
(0, 'cnrInfusingAver_DeviceLoaded', '0'),
(0, 'cnrInfusingLess_DeviceLoaded', '0'),
(0, 'cnrInfusingMinor_DeviceLoaded', '0'),
(0, 'cnrIngotRecycler_DeviceLoaded', '0'),
(0, 'cnrInstraBench_DeviceLoaded', '0'),
(0, 'cnrJewelersBench_DeviceLoaded', '0'),
(0, 'cnrJewelersGreat_DeviceLoaded', '0'),
(0, 'cnrJewelersNorm_DeviceLoaded', '0'),
(0, 'cnrMCarpsBench_DeviceLoaded', '0'),
(0, 'cnrMercuryPool_DeviceLoaded', '0'),
(0, 'cnrMFletchBench_DeviceLoaded', '0'),
(0, 'cnrMTailorsTable_DeviceLoaded', '0'),
(0, 'cnrPoisonTable_DeviceLoaded', '0'),
(0, 'cnrRuneSmithTbl_DeviceLoaded', '0'),
(0, 'cnrScribeAverage_DeviceLoaded', '0'),
(0, 'cnrScribeGreater_DeviceLoaded', '0'),
(0, 'cnrScribeInkDesk_DeviceLoaded', '0'),
(0, 'cnrScribeLesser_DeviceLoaded', '0'),
(0, 'cnrScribeMinor_DeviceLoaded', '0'),
(0, 'cnrTailorsDummy_DeviceLoaded', '0'),
(0, 'cnrTailorsTable_DeviceLoaded', '0'),
(0, 'cnrTinkerFurnace_DeviceLoaded', '0'),
(0, 'cnrTinkersDevice_DeviceLoaded', '0'),
(0, 'cnrTinkerToolbox_DeviceLoaded', '0'),
(0, 'cnrWaterTub_DeviceLoaded', '0');
-- Seed: pwdata module-level defaults
INSERT INTO pwdata (player_id, name, val) VALUES
(0, 'RecoveryEnd', '0'),
(0, 'RS_HaveGrave', '0');
-- DM seed: run during setup wizard with contributor's CD key
-- INSERT INTO dms (cdkey, playername, role) VALUES ('CONTRIBUTOR_CDKEY', 'contributor', 1);