Skip to content

Instantly share code, notes, and snippets.

@Cradac
Created May 11, 2021 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cradac/08b7bfcb5674278c06644ffd6b39b4d2 to your computer and use it in GitHub Desktop.
Save Cradac/08b7bfcb5674278c06644ffd6b39b4d2 to your computer and use it in GitHub Desktop.
DB Scheme of the Iron Justice Discord Bot
-- Database: IronJustice
-- ------------------------------------------------------
/*!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 utf8 */;
/*!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 */;
--
-- Current Database: `IronJustice`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `IronJustice` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
USE `IronJustice`;
--
-- Table structure for table `auto_voice`
--
DROP TABLE IF EXISTS `auto_voice`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auto_voice` (
`gid` bigint(20) NOT NULL,
`auto_voice_channel` bigint(20) NOT NULL,
`lim` int(11) DEFAULT NULL,
PRIMARY KEY (`gid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `auto_voice_names`
--
DROP TABLE IF EXISTS `auto_voice_names`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auto_voice_names` (
`gid` bigint(20) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `gamertags`
--
DROP TABLE IF EXISTS `gamertags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gamertags` (
`uid` bigint(20) NOT NULL,
`steam` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`xbox` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`psn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nintendo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`minecraft` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`origin` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`blizzard` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bethesda` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`gog` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`uid`),
UNIQUE KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `lfc_channels`
--
DROP TABLE IF EXISTS `lfc_channels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lfc_channels` (
`gid` bigint(20) NOT NULL,
`cid` bigint(20) NOT NULL,
UNIQUE KEY `cid` (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `messages`
--
DROP TABLE IF EXISTS `messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `messages` (
`mid` bigint(20) NOT NULL,
`uid` bigint(20) NOT NULL,
`gid` bigint(20) NOT NULL,
`timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`mid`),
UNIQUE KEY `mid` (`mid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `profile_channels`
--
DROP TABLE IF EXISTS `profile_channels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `profile_channels` (
`gid` bigint(20) NOT NULL,
`cid` bigint(20) NOT NULL,
UNIQUE KEY `cid` (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `settings`
--
DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `settings` (
`gid` bigint(20) NOT NULL,
`lfc` tinyint(1) NOT NULL DEFAULT '0',
`profile` tinyint(1) DEFAULT '0',
`activity_logging` tinyint(1) DEFAULT '0',
`auto_voice_channel` bigint(20) DEFAULT NULL,
`lfc_role` bigint(20) DEFAULT NULL,
PRIMARY KEY (`gid`),
UNIQUE KEY `gid` (`gid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `social`
--
DROP TABLE IF EXISTS `social`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `social` (
`uid` bigint(20) NOT NULL,
`twitch` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mixer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`youtube` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`twitter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reddit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`itchio` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`uid`),
UNIQUE KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sot_profile`
--
DROP TABLE IF EXISTS `sot_profile`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sot_profile` (
`uid` bigint(20) NOT NULL,
`alias` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`img` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`gh` int(11) NOT NULL DEFAULT '1',
`oos` int(11) NOT NULL DEFAULT '1',
`ma` int(11) NOT NULL DEFAULT '1',
`hc` int(11) NOT NULL DEFAULT '1',
`sd` int(11) NOT NULL DEFAULT '1',
`af` int(11) NOT NULL DEFAULT '1',
`rb` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`uid`),
UNIQUE KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_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 */;
-- Dump completed on 2021-05-11 18:50:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment