Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Navicat MySQL Data Transfer
- Source Server : altislife
- Source Server Version : 50718
- Source Host : localhost:3306
- Source Database : altislife
- Target Server Type : MYSQL
- Target Server Version : 50718
- File Encoding : 65001
- Date: 2017-07-21 23:44:12
- */
- SET FOREIGN_KEY_CHECKS=0;
- CREATE DATABASE IF NOT EXISTS `altislife` DEFAULT CHARACTER SET utf8mb4;
- USE `altislife`;
- CREATE USER IF NOT EXISTS `arma3`@`localhost` IDENTIFIED BY 'thomas';
- GRANT SELECT,UPDATE,INSERT,DELETE ON `altislife`.* TO 'arma3'@'localhost';
- GRANT EXECUTE ON altislife.* TO 'arma3'@'localhost';
- -- ----------------------------
- -- Table structure for `containers`
- -- ----------------------------
- DROP TABLE IF EXISTS `containers`;
- CREATE TABLE `containers` (
- `id` int(6) NOT NULL AUTO_INCREMENT,
- `pid` varchar(17) NOT NULL,
- `classname` varchar(32) NOT NULL,
- `pos` varchar(64) DEFAULT NULL,
- `inventory` text NOT NULL,
- `gear` text NOT NULL,
- `dir` varchar(128) DEFAULT NULL,
- `active` tinyint(1) NOT NULL DEFAULT '0',
- `owned` tinyint(1) DEFAULT '0',
- `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`,`pid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of containers
- -- ----------------------------
- -- ----------------------------
- -- Table structure for `gangs`
- -- ----------------------------
- DROP TABLE IF EXISTS `gangs`;
- CREATE TABLE `gangs` (
- `id` int(6) NOT NULL AUTO_INCREMENT,
- `owner` varchar(32) DEFAULT NULL,
- `name` varchar(32) DEFAULT NULL,
- `members` text,
- `maxmembers` int(3) DEFAULT '8',
- `bank` int(100) DEFAULT '0',
- `active` tinyint(1) DEFAULT '1',
- `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- UNIQUE KEY `name_UNIQUE` (`name`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of gangs
- -- ----------------------------
- -- ----------------------------
- -- Table structure for `houses`
- -- ----------------------------
- DROP TABLE IF EXISTS `houses`;
- CREATE TABLE `houses` (
- `id` int(6) NOT NULL AUTO_INCREMENT,
- `pid` varchar(17) NOT NULL,
- `pos` varchar(64) DEFAULT NULL,
- `owned` tinyint(1) DEFAULT '0',
- `garage` tinyint(1) NOT NULL DEFAULT '0',
- `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`,`pid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of houses
- -- ----------------------------
- -- ----------------------------
- -- Table structure for `messages`
- -- ----------------------------
- DROP TABLE IF EXISTS `messages`;
- CREATE TABLE `messages` (
- `uid` int(12) NOT NULL AUTO_INCREMENT,
- `fromID` varchar(50) NOT NULL,
- `toID` varchar(50) NOT NULL,
- `message` text,
- `fromName` varchar(32) NOT NULL,
- `toName` varchar(32) NOT NULL,
- `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`uid`)
- ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
- -- ----------------------------
- -- Records of messages
- -- ----------------------------
- -- ----------------------------
- -- Table structure for `players`
- -- ----------------------------
- DROP TABLE IF EXISTS `players`;
- CREATE TABLE `players` (
- `uid` int(6) NOT NULL AUTO_INCREMENT,
- `name` varchar(32) NOT NULL,
- `aliases` text NOT NULL,
- `pid` varchar(17) 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') NOT NULL DEFAULT '0',
- `mediclevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- `civ_licenses` text NOT NULL,
- `cop_licenses` text NOT NULL,
- `med_licenses` text NOT NULL,
- `civ_gear` text NOT NULL,
- `cop_gear` text NOT NULL,
- `med_gear` text NOT NULL,
- `civ_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
- `cop_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
- `med_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
- `arrested` tinyint(1) NOT NULL DEFAULT '0',
- `adminlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- `donorlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- `blacklist` tinyint(1) NOT NULL DEFAULT '0',
- `civ_alive` tinyint(1) NOT NULL DEFAULT '0',
- `civ_position` varchar(64) NOT NULL DEFAULT '"[]"',
- `playtime` varchar(32) NOT NULL DEFAULT '"[0,0,0]"',
- `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `last_seen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`uid`),
- UNIQUE KEY `pid` (`pid`),
- KEY `name` (`name`),
- KEY `blacklist` (`blacklist`)
- ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Table structure for `vehicles`
- -- ----------------------------
- DROP TABLE IF EXISTS `vehicles`;
- CREATE TABLE `vehicles` (
- `id` int(6) NOT NULL AUTO_INCREMENT,
- `side` varchar(16) NOT NULL,
- `classname` varchar(64) NOT NULL,
- `type` varchar(16) NOT NULL,
- `pid` varchar(17) NOT NULL,
- `alive` tinyint(1) NOT NULL DEFAULT '1',
- `blacklist` tinyint(1) NOT NULL DEFAULT '0',
- `active` tinyint(1) NOT NULL DEFAULT '0',
- `plate` int(20) NOT NULL,
- `color` int(20) NOT NULL,
- `inventory` text NOT NULL,
- `gear` text NOT NULL,
- `fuel` double NOT NULL DEFAULT '1',
- `damage` varchar(256) NOT NULL,
- `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- KEY `side` (`side`),
- KEY `pid` (`pid`),
- KEY `type` (`type`)
- ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Table structure for `wanted`
- -- ----------------------------
- DROP TABLE IF EXISTS `wanted`;
- CREATE TABLE `wanted` (
- `wantedID` varchar(64) NOT NULL,
- `wantedName` varchar(32) NOT NULL,
- `wantedCrimes` text NOT NULL,
- `wantedBounty` int(100) NOT NULL,
- `active` tinyint(1) NOT NULL DEFAULT '0',
- `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`wantedID`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- ----------------------------
- -- Records of wanted
- -- ----------------------------
- -- ----------------------------
- -- Procedure structure for `deleteDeadVehicles`
- -- ----------------------------
- DROP PROCEDURE IF EXISTS `deleteDeadVehicles`;
- DELIMITER ;;
- CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteDeadVehicles`()
- BEGIN
- DELETE FROM `vehicles` WHERE `alive` = 0;
- END
- ;;
- DELIMITER ;
- -- ----------------------------
- -- Procedure structure for `deleteOldContainers`
- -- ----------------------------
- DROP PROCEDURE IF EXISTS `deleteOldContainers`;
- DELIMITER ;;
- CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteOldContainers`()
- BEGIN
- DELETE FROM `containers` WHERE `owned` = 0;
- END
- ;;
- DELIMITER ;
- -- ----------------------------
- -- Procedure structure for `deleteOldGangs`
- -- ----------------------------
- DROP PROCEDURE IF EXISTS `deleteOldGangs`;
- DELIMITER ;;
- CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteOldGangs`()
- BEGIN
- DELETE FROM `gangs` WHERE `active` = 0;
- END
- ;;
- DELIMITER ;
- -- ----------------------------
- -- Procedure structure for `deleteOldHouses`
- -- ----------------------------
- DROP PROCEDURE IF EXISTS `deleteOldHouses`;
- DELIMITER ;;
- CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteOldHouses`()
- BEGIN
- DELETE FROM `houses` WHERE `owned` = 0;
- END
- ;;
- DELIMITER ;
- -- ----------------------------
- -- Procedure structure for `deleteOldWanted`
- -- ----------------------------
- DROP PROCEDURE IF EXISTS `deleteOldWanted`;
- DELIMITER ;;
- CREATE DEFINER=`arma3`@`localhost` PROCEDURE `deleteOldWanted`()
- BEGIN
- DELETE FROM `wanted` WHERE `active` = 0;
- END
- ;;
- DELIMITER ;
- -- ----------------------------
- -- Procedure structure for `resetLifeVehicles`
- -- ----------------------------
- DROP PROCEDURE IF EXISTS `resetLifeVehicles`;
- DELIMITER ;;
- CREATE DEFINER=`arma3`@`localhost` PROCEDURE `resetLifeVehicles`()
- BEGIN
- UPDATE `vehicles` SET `active`= 0;
- END
- ;;
- DELIMITER ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement