Skip to content

Instantly share code, notes, and snippets.

@Slind14
Created February 17, 2017 20:59
Show Gist options
  • Save Slind14/0da34e09dba91cf411db2ead5ad666ef to your computer and use it in GitHub Desktop.
Save Slind14/0da34e09dba91cf411db2ead5ad666ef to your computer and use it in GitHub Desktop.
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
--
-- Database: `prism_direwolf20_MC1.10_N1`
--
-- --------------------------------------------------------
--
-- Table structure for table `prism_extra`
--
CREATE TABLE `prism_extra` (
`id` int(10) UNSIGNED NOT NULL,
`record_id` int(10) UNSIGNED NOT NULL,
`json` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `prism_records`
--
CREATE TABLE `prism_records` (
`id` int(10) UNSIGNED NOT NULL,
`Created` int(10) UNSIGNED NOT NULL,
`EventName` varchar(16) NOT NULL,
`WorldUuid` binary(16) NOT NULL,
`X` int(10) NOT NULL,
`Y` smallint(5) NOT NULL,
`Z` int(10) NOT NULL,
`Target` varchar(55) DEFAULT NULL,
`Player` binary(16) DEFAULT NULL,
`Cause` varchar(55) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `prism_extra`
--
ALTER TABLE `prism_extra`
ADD PRIMARY KEY (`id`),
ADD KEY `record_id` (`record_id`);
--
-- Indexes for table `prism_records`
--
ALTER TABLE `prism_records`
ADD PRIMARY KEY (`id`),
ADD KEY `location` (`WorldUuid`,`X`,`Z`,`Y`),
ADD KEY `created` (`Created`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `prism_extra`
--
ALTER TABLE `prism_extra`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=137929175;
--
-- AUTO_INCREMENT for table `prism_records`
--
ALTER TABLE `prism_records`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=148331050;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `prism_extra`
--
ALTER TABLE `prism_extra`
ADD CONSTRAINT `prism_extra_ibfk_1` FOREIGN KEY (`record_id`) REFERENCES `prism_records` (`id`) ON DELETE CASCADE;
/*!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 */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment