Created
June 1, 2019 21:45
-
-
Save electronicboy/581709a6ce497d3aaa688e2b24c41c18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.17 Distrib 10.3.13-MariaDB, for osx10.14 (x86_64) | |
-- | |
-- Host: 127.0.0.1 Database: alphheim | |
-- ------------------------------------------------------ | |
-- Server version 10.3.13-MariaDB | |
/*!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 */; | |
-- | |
-- Table structure for table `cc3_account` | |
-- | |
DROP TABLE IF EXISTS `cc3_account`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_account` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(50) DEFAULT NULL, | |
`infiniteMoney` tinyint(1) DEFAULT 0, | |
`uuid` varchar(36) DEFAULT NULL, | |
`ignoreACL` tinyint(1) DEFAULT 0, | |
`bank` tinyint(1) DEFAULT 0, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `uuid` (`uuid`), | |
KEY `cc3_account_name_index` (`name`) | |
) ENGINE=InnoDB AUTO_INCREMENT=237 DEFAULT CHARSET=utf8mb4; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
DROP TABLE IF EXISTS `cc3_acl`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_acl` ( | |
`account_id` int(11) NOT NULL, | |
`playerName` varchar(16) NOT NULL, | |
`owner` tinyint(1) DEFAULT NULL, | |
`balance` tinyint(1) DEFAULT 0, | |
`deposit` tinyint(1) DEFAULT 0, | |
`acl` tinyint(1) DEFAULT 0, | |
`withdraw` tinyint(1) DEFAULT 0, | |
PRIMARY KEY (`account_id`,`playerName`), | |
CONSTRAINT `cc3_fk_acl_account` FOREIGN KEY (`account_id`) REFERENCES `cc3_account` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `cc3_balance` | |
-- | |
DROP TABLE IF EXISTS `cc3_balance`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_balance` ( | |
`balance` double DEFAULT NULL, | |
`worldName` varchar(255) NOT NULL, | |
`username_id` int(11) NOT NULL, | |
`currency_id` varchar(50) NOT NULL, | |
PRIMARY KEY (`worldName`,`username_id`,`currency_id`), | |
KEY `cc3_fk_balance_account` (`username_id`), | |
KEY `cc3_fk_balance_currency` (`currency_id`), | |
CONSTRAINT `cc3_fk_balance_account` FOREIGN KEY (`username_id`) REFERENCES `cc3_account` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
CONSTRAINT `cc3_fk_balance_currency` FOREIGN KEY (`currency_id`) REFERENCES `cc3_currency` (`name`) ON DELETE CASCADE ON UPDATE CASCADE | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `cc3_config` | |
-- | |
DROP TABLE IF EXISTS `cc3_config`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_config` ( | |
`name` varchar(30) NOT NULL, | |
`value` varchar(255) NOT NULL, | |
PRIMARY KEY (`name`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `cc3_currency` | |
-- | |
DROP TABLE IF EXISTS `cc3_currency`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_currency` ( | |
`name` varchar(50) NOT NULL, | |
`plural` varchar(50) DEFAULT NULL, | |
`minor` varchar(50) DEFAULT NULL, | |
`minorplural` text DEFAULT NULL, | |
`sign` varchar(5) DEFAULT NULL, | |
`status` tinyint(1) DEFAULT 0, | |
`bankCurrency` tinyint(1) DEFAULT 0, | |
PRIMARY KEY (`name`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `cc3_exchange` | |
-- | |
DROP TABLE IF EXISTS `cc3_exchange`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_exchange` ( | |
`from_currency` varchar(50) NOT NULL, | |
`to_currency` varchar(50) NOT NULL, | |
`amount` double DEFAULT 1, | |
PRIMARY KEY (`from_currency`,`to_currency`), | |
KEY `cc3_fk_exchange_currencyto` (`to_currency`), | |
CONSTRAINT `cc3_fk_exchange_currencyfrom` FOREIGN KEY (`from_currency`) REFERENCES `cc3_currency` (`name`) ON DELETE CASCADE ON UPDATE CASCADE, | |
CONSTRAINT `cc3_fk_exchange_currencyto` FOREIGN KEY (`to_currency`) REFERENCES `cc3_currency` (`name`) ON DELETE CASCADE ON UPDATE CASCADE | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `cc3_log` | |
-- | |
DROP TABLE IF EXISTS `cc3_log`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_log` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`username_id` int(11) DEFAULT NULL, | |
`type` varchar(30) DEFAULT NULL, | |
`cause` varchar(50) DEFAULT NULL, | |
`causeReason` varchar(50) DEFAULT NULL, | |
`worldName` varchar(50) DEFAULT NULL, | |
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(), | |
`amount` double DEFAULT NULL, | |
`currency_id` varchar(50) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `cc3_fk_log_account` (`username_id`), | |
KEY `cc3_fk_log_currency` (`currency_id`), | |
CONSTRAINT `cc3_fk_log_account` FOREIGN KEY (`username_id`) REFERENCES `cc3_account` (`id`) ON DELETE CASCADE, | |
CONSTRAINT `cc3_fk_log_currency` FOREIGN KEY (`currency_id`) REFERENCES `cc3_currency` (`name`) ON DELETE CASCADE | |
) ENGINE=InnoDB AUTO_INCREMENT=8049 DEFAULT CHARSET=utf8mb4; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Table structure for table `cc3_worldgroup` | |
-- | |
DROP TABLE IF EXISTS `cc3_worldgroup`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `cc3_worldgroup` ( | |
`groupName` varchar(255) NOT NULL, | |
`worldList` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`groupName`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
/*!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 */; | |
-- Dump completed on 2019-03-18 5:12:28 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment