Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- --------------------------------------------------------
- -- Host: 127.0.0.1
- -- Server version: 5.6.25 - MySQL Community Server (GPL)
- -- Server OS: Win32
- -- HeidiSQL Version: 9.1.0.4867
- -- --------------------------------------------------------
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET NAMES utf8mb4 */;
- /*!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' */;
- -- Dumping database structure for life
- CREATE DATABASE IF NOT EXISTS `life` /*!40100 DEFAULT CHARACTER SET utf8 */;
- USE `life`;
- -- Dumping structure for table life.bans
- CREATE TABLE IF NOT EXISTS `bans` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `banuid` varchar(50) NOT NULL DEFAULT '',
- `adminuid` varchar(50) NOT NULL DEFAULT '',
- `isperm` int(11) NOT NULL DEFAULT '0',
- `added` varchar(50) NOT NULL DEFAULT '0',
- `time` int(11) NOT NULL DEFAULT '0',
- `reason` varchar(500) NOT NULL DEFAULT '',
- UNIQUE KEY `id` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- Data exporting was unselected.
- -- Dumping structure for procedure life.deleteDeadVehicles
- DELIMITER //
- CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteDeadVehicles`()
- BEGIN
- DELETE FROM `vehicles` WHERE `alive` = 0;
- END//
- DELIMITER ;
- -- Dumping structure for procedure life.deleteOldHouses
- DELIMITER //
- CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldHouses`()
- BEGIN
- DELETE FROM `houses` WHERE `owned` = 0;
- END//
- DELIMITER ;
- -- Dumping structure for table life.gangs
- CREATE TABLE IF NOT EXISTS `gangs` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `owner` varchar(32) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL,
- `members` text,
- `maxmembers` int(2) DEFAULT '8',
- `bank` int(100) DEFAULT '0',
- `active` tinyint(4) DEFAULT '1',
- PRIMARY KEY (`id`),
- UNIQUE KEY `name_UNIQUE` (`name`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- Data exporting was unselected.
- -- Dumping structure for table life.houses
- CREATE TABLE IF NOT EXISTS `houses` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `pid` varchar(32) NOT NULL,
- `pos` varchar(64) DEFAULT NULL,
- `inventory` text,
- `containers` text,
- `owned` tinyint(4) DEFAULT '0',
- `shared1` text,
- `shared2` text,
- `shared3` text,
- `shared4` text,
- `shared5` text,
- PRIMARY KEY (`id`,`pid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- Data exporting was unselected.
- -- Dumping structure for table life.launcher
- CREATE TABLE IF NOT EXISTS `launcher` (
- `server_ip` varchar(15) DEFAULT NULL,
- `launcher_path` varchar(255) DEFAULT NULL,
- `ts3_plugin_path` varchar(255) DEFAULT NULL,
- `mod_path` varchar(255) DEFAULT NULL,
- `ftp_userid` varchar(255) DEFAULT NULL,
- `ftp_pass` varchar(255) DEFAULT NULL,
- `hashes_path` varchar(255) DEFAULT NULL,
- `servers_path` varchar(255) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- Data exporting was unselected.
- -- Dumping structure for table life.panellog
- CREATE TABLE IF NOT EXISTS `panellog` (
- `uid` int(12) NOT NULL AUTO_INCREMENT,
- `date` varchar(32) NOT NULL,
- `author` varchar(32) NOT NULL,
- `pname` varchar(32) NOT NULL,
- `pid` varchar(50) NOT NULL,
- `bankacc` int(100) NOT NULL DEFAULT '0',
- `cash` int(100) NOT NULL DEFAULT '0',
- `obankacc` int(100) NOT NULL DEFAULT '0',
- `ocash` int(100) NOT NULL DEFAULT '0',
- `coplevel` enum('0','1','2','3','4','5','6','7') DEFAULT '0',
- `mediclevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- PRIMARY KEY (`uid`),
- KEY `pname` (`pname`),
- KEY `author` (`author`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- Data exporting was unselected.
- -- Dumping structure for table life.players
- CREATE TABLE IF NOT EXISTS `players` (
- `uid` int(12) NOT NULL AUTO_INCREMENT,
- `name` varchar(32) NOT NULL,
- `playerid` varchar(50) NOT NULL,
- `cash` int(100) NOT NULL DEFAULT '0',
- `bankacc` int(100) NOT NULL DEFAULT '0',
- `coplevel` enum('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15') DEFAULT '0',
- `cop_licenses` text,
- `civ_licenses` text,
- `med_licenses` text,
- `cop_gear` text NOT NULL,
- `mediclevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- `arrested` tinyint(1) NOT NULL DEFAULT '0',
- `aliases` text NOT NULL,
- `adminlevel` enum('0','1','2','3') NOT NULL DEFAULT '0',
- `donatorlvl` int(100) NOT NULL DEFAULT '0',
- `civ_gear` text NOT NULL,
- `blacklist` tinyint(1) NOT NULL DEFAULT '0',
- `admin_user` varchar(50) DEFAULT NULL,
- `admin_pass` varchar(50) DEFAULT NULL,
- `timeupdated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `timejoined` datetime DEFAULT NULL,
- `med_gear` text NOT NULL,
- `issupport` enum('0','1') NOT NULL DEFAULT '0',
- `jailtime` int(11) NOT NULL DEFAULT '0',
- `arrestreason` varchar(150) NOT NULL,
- `streamSaftey` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`uid`),
- UNIQUE KEY `playerid` (`playerid`),
- KEY `name` (`name`),
- KEY `blacklist` (`blacklist`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- Data exporting was unselected.
- -- Update
- UPDATE `players`
- SET `cop_licenses` = replace(cop_licenses, '``', '`'),
- `aliases` = replace(aliases, '``', '`'),
- `cop_gear` = replace(cop_gear, '``', '`')
- WHERE `cop_licenses` LIKE '"[[``%';
- UPDATE `players`
- SET `civ_licenses` = replace(civ_licenses, '``', '`'),
- `civ_gear` = replace(civ_gear, '``', '`'),
- `aliases` = replace(aliases, '``', '`')
- WHERE `civ_licenses` LIKE '"[[``%';
- UPDATE `players`
- SET `med_licenses` = replace(med_licenses, '``', '`'),
- `aliases` = replace(aliases, '``', '`'),
- `med_gear` = replace(med_gear, '``', '`')
- WHERE `med_licenses` LIKE '"[[``%';
- UPDATE `gangs`
- SET `members` = replace(members, '``', '`')
- WHERE `members` LIKE '"[``%';
- UPDATE `houses`
- SET `containers` = replace(containers, '``', '`')
- WHERE `containers` LIKE '"[[``%';
- UPDATE `houses`
- SET `inventory` = replace(inventory, '``', '`')
- WHERE `inventory` LIKE '"[[[``%';
- -- Dumping structure for procedure life.resetLifeVehicles
- DELIMITER //
- CREATE DEFINER=`root`@`localhost` PROCEDURE `resetLifeVehicles`()
- BEGIN
- UPDATE vehicles SET `active`= 0;
- END//
- DELIMITER ;
- -- Dumping structure for table life.servers
- CREATE TABLE IF NOT EXISTS `servers` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) DEFAULT NULL,
- `ip` varchar(55) DEFAULT NULL,
- `port` varchar(10) DEFAULT NULL,
- `password` varchar(255) DEFAULT NULL,
- `status` varchar(5) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- Data exporting was unselected.
- -- Dumping structure for table life.users
- CREATE TABLE IF NOT EXISTS `users` (
- `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'auto incrementing user_id of each user, unique index',
- `user_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s name, unique',
- `user_password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s password in salted and hashed format',
- `user_email` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s email, unique',
- `playerid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
- `user_level` enum('1','2') COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
- PRIMARY KEY (`user_id`),
- UNIQUE KEY `user_name` (`user_name`),
- UNIQUE KEY `user_email` (`user_email`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='user data';
- -- Data exporting was unselected.
- -- Dumping structure for table life.vehicles
- CREATE TABLE IF NOT EXISTS `vehicles` (
- `id` int(12) NOT NULL AUTO_INCREMENT,
- `side` varchar(15) NOT NULL,
- `classname` varchar(32) NOT NULL,
- `type` varchar(12) NOT NULL,
- `pid` varchar(32) NOT NULL,
- `alive` tinyint(1) NOT NULL DEFAULT '1',
- `active` tinyint(1) NOT NULL DEFAULT '0',
- `plate` int(20) NOT NULL,
- `color` int(20) NOT NULL,
- `inventory` varchar(500) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `side` (`side`),
- KEY `pid` (`pid`),
- KEY `type` (`type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- Data exporting was unselected.
- -- Dumping structure for trigger life.player_create
- SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
- DELIMITER //
- CREATE TRIGGER `player_create` BEFORE INSERT ON `players` FOR EACH ROW SET NEW.timejoined = NOW()//
- DELIMITER ;
- SET SQL_MODE=@OLDTMP_SQL_MODE;
- /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
- /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement