-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 06, 2022 at 03:34 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 8.0.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `mu_online_login`
--
-- --------------------------------------------------------
--
-- Table structure for table `accounts`
--
CREATE TABLE `accounts` (
`guid` int(10) UNSIGNED NOT NULL,
`blocked` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
`security_code` varchar(255) DEFAULT NULL,
`golden_channel` bigint(20) NOT NULL,
`facebook_status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
`secured` tinyint(3) UNSIGNED NOT NULL,
`account` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`register` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `accounts`
--
INSERT INTO `accounts` (`guid`, `blocked`, `security_code`, `golden_channel`, `facebook_status`, `secured`, `account`, `password`, `email`, `register`) VALUES
(15, 0, '12digitsphra', 1500434821, 0, 1, 'user2', 'ae471a7d82020498f9bab02f476d40e61bbdd985e1d625825a7ed603be8cb498', 'user2@email.com', 20220227123326),
(17, 0, '12digitsphra', 1500434821, 0, 1, 'user', '67eabbf39d1e39ae7fad930244949c85d12b72965795794c9d5b66e8d8595467', 'user2@email.com', 20220227123405);
--
-- Triggers `accounts`
--
DELIMITER $$
CREATE TRIGGER `before_insert_accounts` BEFORE INSERT ON `accounts` FOR EACH ROW SET new.`register` = NOW( )
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `accounts_allowed`
--
CREATE TABLE `accounts_allowed` (
`account_id` int(10) UNSIGNED NOT NULL,
`guid` int(10) UNSIGNED NOT NULL,
`server` smallint(5) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `accounts_banned`
--
CREATE TABLE `accounts_banned` (
`account_id` int(10) UNSIGNED NOT NULL,
`guid` int(10) UNSIGNED NOT NULL,
`unban_date` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `accounts_disconnect`
--
CREATE TABLE `accounts_disconnect` (
`account_id` int(10) UNSIGNED NOT NULL,
`server` smallint(5) UNSIGNED NOT NULL,
`masive` tinyint(3) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `accounts_security`
--
CREATE TABLE `accounts_security` (
`account_id` int(10) UNSIGNED NOT NULL,
`account` varchar(255) DEFAULT NULL,
`ip` varchar(16) DEFAULT NULL,
`mac` varchar(50) DEFAULT NULL,
`disk_serial` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `accounts_security`
--
INSERT INTO `accounts_security` (`account_id`, `account`, `ip`, `mac`, `disk_serial`) VALUES
(17, 'user', '192.168.1.200', '64:6C:80:33:83:2E', 1984575140);
-- --------------------------------------------------------
--
-- Table structure for table `accounts_status`
--
CREATE TABLE `accounts_status` (
`account_id` int(10) UNSIGNED NOT NULL,
`server_group` smallint(5) UNSIGNED NOT NULL,
`current_server` smallint(5) UNSIGNED NOT NULL,
`start_server` smallint(5) UNSIGNED NOT NULL,
`dest_server` smallint(6) NOT NULL,
`dest_world` smallint(6) NOT NULL,
`dest_x` smallint(6) NOT NULL,
`dest_y` smallint(6) NOT NULL,
`warp_time` int(10) UNSIGNED NOT NULL,
`warp_auth_1` int(10) UNSIGNED NOT NULL,
`warp_auth_2` int(10) UNSIGNED NOT NULL,
`warp_auth_3` int(10) UNSIGNED NOT NULL,
`warp_auth_4` int(10) UNSIGNED NOT NULL,
`last_ip` varchar(16) CHARACTER SET latin1 COLLATE latin1_general_ci DEFAULT NULL,
`last_mac` varchar(50) CHARACTER SET latin1 COLLATE latin1_general_ci DEFAULT NULL,
`last_online` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci DEFAULT NULL,
`online` tinyint(3) UNSIGNED NOT NULL,
`disk_serial` int(10) UNSIGNED NOT NULL,
`type` tinyint(3) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `accounts_status`
--
INSERT INTO `accounts_status` (`account_id`, `server_group`, `current_server`, `start_server`, `dest_server`, `dest_world`, `dest_x`, `dest_y`, `warp_time`, `warp_auth_1`, `warp_auth_2`, `warp_auth_3`, `warp_auth_4`, `last_ip`, `last_mac`, `last_online`, `online`, `disk_serial`, `type`) VALUES
(17, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, 0, 0, '192.168.1.200', '64:6C:80:33:83:2E', '2022-02-27 12:34:32', 0, 1984575140, 0);
-- --------------------------------------------------------
--
-- Table structure for table `accounts_validation`
--
CREATE TABLE `accounts_validation` (
`account_id` int(10) UNSIGNED NOT NULL,
`disk_serial` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `accounts_validation`
--
INSERT INTO `accounts_validation` (`account_id`, `disk_serial`) VALUES
(17, 1984575140);
-- --------------------------------------------------------
--
-- Table structure for table `accounts_warning`
--
CREATE TABLE `accounts_warning` (
`account_id` int(10) UNSIGNED NOT NULL,
`disk_serial` int(10) UNSIGNED NOT NULL,
`block_date` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `block_diskserial`
--
CREATE TABLE `block_diskserial` (
`disk_serial` int(10) UNSIGNED NOT NULL,
`comment` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `block_ip`
--
CREATE TABLE `block_ip` (
`ip` varchar(16) NOT NULL,
`comment` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `block_mac`
--
CREATE TABLE `block_mac` (
`mac` varchar(50) NOT NULL,
`comment` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `character_notification`
--
CREATE TABLE `character_notification` (
`server_group` smallint(5) UNSIGNED NOT NULL,
`char_name` varchar(255) DEFAULT NULL,
`facebook_id` varchar(255) DEFAULT NULL,
`notification_id` varchar(255) DEFAULT NULL,
`notification_data` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `item_serial`
--
CREATE TABLE `item_serial` (
`server` smallint(5) UNSIGNED NOT NULL,
`serial` int(10) UNSIGNED NOT NULL,
`serial_shop` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `item_serial`
--
INSERT INTO `item_serial` (`server`, `serial`, `serial_shop`) VALUES
(0, 9252, 0),
(18, 596, 0),
(19, 58, 0);
-- --------------------------------------------------------
--
-- Table structure for table `master_pc`
--
CREATE TABLE `master_pc` (
`disk_serial` int(10) UNSIGNED NOT NULL,
`mac` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `server_list`
--
CREATE TABLE `server_list` (
`server` smallint(5) UNSIGNED NOT NULL,
`code` smallint(5) UNSIGNED NOT NULL,
`name` varchar(255) DEFAULT NULL,
`port` smallint(5) UNSIGNED NOT NULL,
`ip` varchar(16) NOT NULL,
`flag` tinyint(3) UNSIGNED NOT NULL,
`online` tinyint(3) UNSIGNED NOT NULL,
`default_world` smallint(5) UNSIGNED NOT NULL,
`default_x` smallint(6) NOT NULL,
`default_y` smallint(6) NOT NULL,
`type` tinyint(3) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `server_list`
--
INSERT INTO `server_list` (`server`, `code`, `name`, `port`, `ip`, `flag`, `online`, `default_world`, `default_x`, `default_y`, `type`) VALUES
(0, 0, 'Test', 55509, '127.0.0.1', 1, 0, 0, 75, 75, 0),
(18, 18, 'EventServer Loren', 55511, '127.0.0.1', 0, 0, 0, 75, 75, 0),
(19, 19, 'EventServer', 55510, '127.0.0.1', 0, 0, 0, 75, 75, 0);
-- --------------------------------------------------------
--
-- Table structure for table `world_server`
--
CREATE TABLE `world_server` (
`server` smallint(5) UNSIGNED NOT NULL,
`world` smallint(5) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `world_server`
--
INSERT INTO `world_server` (`server`, `world`) VALUES
(0, 0),
(0, 1),
(0, 2),
(0, 3),
(0, 4),
(0, 5),
(0, 6),
(0, 7),
(0, 8),
(0, 10),
(0, 24),
(0, 25),
(0, 26),
(0, 27),
(0, 28),
(0, 29),
(0, 33),
(0, 35),
(0, 36),
(0, 37),
(0, 38),
(0, 39),
(0, 40),
(0, 43),
(0, 44),
(0, 45),
(0, 46),
(0, 47),
(0, 48),
(0, 49),
(0, 50),
(0, 51),
(0, 54),
(0, 55),
(0, 56),
(0, 57),
(0, 58),
(0, 59),
(0, 60),
(0, 61),
(0, 62),
(0, 63),
(0, 64),
(0, 65),
(0, 66),
(0, 67),
(0, 68),
(0, 69),
(0, 70),
(0, 71),
(0, 72),
(0, 73),
(0, 74),
(0, 75),
(0, 76),
(0, 77),
(0, 78),
(0, 80),
(0, 81),
(0, 82),
(0, 83),
(0, 84),
(0, 85),
(0, 86),
(0, 87),
(0, 88),
(0, 89),
(0, 90),
(0, 91),
(0, 92),
(0, 93),
(0, 94),
(0, 95),
(0, 96),
(0, 98),
(0, 99),
(0, 100),
(0, 101),
(0, 102),
(0, 103),
(0, 104),
(0, 105),
(0, 106),
(0, 107),
(0, 108),
(0, 109),
(0, 110),
(0, 111),
(0, 112),
(0, 113),
(0, 115),
(0, 116),
(0, 117),
(0, 118),
(0, 119),
(0, 120),
(0, 121),
(0, 122),
(0, 123),
(0, 124),
(0, 125),
(0, 126),
(0, 127),
(0, 128),
(0, 129),
(0, 130),
(0, 131),
(0, 132),
(0, 133),
(18, 9),
(18, 11),
(18, 12),
(18, 13),
(18, 14),
(18, 15),
(18, 16),
(18, 17),
(18, 18),
(18, 19),
(18, 20),
(18, 21),
(18, 22),
(18, 23),
(18, 32),
(18, 52),
(18, 53),
(18, 79),
(18, 97),
(18, 114),
(19, 30),
(19, 31),
(19, 34),
(19, 41),
(19, 42);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
ADD PRIMARY KEY (`guid`),
ADD UNIQUE KEY `account_UNIQUE` (`account`);
--
-- Indexes for table `accounts_allowed`
--
ALTER TABLE `accounts_allowed`
ADD PRIMARY KEY (`account_id`);
--
-- Indexes for table `accounts_banned`
--
ALTER TABLE `accounts_banned`
ADD PRIMARY KEY (`account_id`);
--
-- Indexes for table `accounts_disconnect`
--
ALTER TABLE `accounts_disconnect`
ADD PRIMARY KEY (`account_id`);
--
-- Indexes for table `accounts_status`
--
ALTER TABLE `accounts_status`
ADD PRIMARY KEY (`account_id`);
--
-- Indexes for table `accounts_validation`
--
ALTER TABLE `accounts_validation`
ADD PRIMARY KEY (`account_id`);
--
-- Indexes for table `accounts_warning`
--
ALTER TABLE `accounts_warning`
ADD PRIMARY KEY (`account_id`);
--
-- Indexes for table `block_diskserial`
--
ALTER TABLE `block_diskserial`
ADD PRIMARY KEY (`disk_serial`);
--
-- Indexes for table `block_ip`
--
ALTER TABLE `block_ip`
ADD PRIMARY KEY (`ip`);
--
-- Indexes for table `block_mac`
--
ALTER TABLE `block_mac`
ADD PRIMARY KEY (`mac`);
--
-- Indexes for table `character_notification`
--
ALTER TABLE `character_notification`
ADD PRIMARY KEY (`server_group`);
--
-- Indexes for table `item_serial`
--
ALTER TABLE `item_serial`
ADD PRIMARY KEY (`server`);
--
-- Indexes for table `master_pc`
--
ALTER TABLE `master_pc`
ADD PRIMARY KEY (`disk_serial`);
--
-- Indexes for table `server_list`
--
ALTER TABLE `server_list`
ADD PRIMARY KEY (`server`);
--
-- Indexes for table `world_server`
--
ALTER TABLE `world_server`
ADD PRIMARY KEY (`server`,`world`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
MODIFY `guid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `server_list`
--
ALTER TABLE `server_list`
MODIFY `server` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
COMMIT;
/*!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 */;