move database schemas into migrations folder aka config/migrations/

This commit is contained in:
Lorenc Pekaj 2018-12-12 21:38:35 +11:00
parent ac473e0fe6
commit a012c0268a
4 changed files with 413 additions and 212 deletions

1
.gitignore vendored
View File

@ -36,7 +36,6 @@ scriptfiles/**/*
!scriptfiles/COD/
!scriptfiles/COD/**
!scriptfiles/updates.txt
!scriptfiles/cnr_schema.sql
# npc
npcmodes/**/*

View File

@ -0,0 +1,4 @@
-- CREATE A MIGRATION ENTRY
INSERT INTO `DB_MIGRATIONS` (`MIGRATION`) VALUES (/*'yyyymmdd_server_description'*/); -- put the migration's filename as the value
-- BEGIN

View File

@ -11,9 +11,8 @@
/*!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 structure for table sa-mp.admin_levels
DROP TABLE IF EXISTS `admin_levels`;
CREATE TABLE IF NOT EXISTS `admin_levels` (
-- Dumping structure for table sa-mp.ADMIN_LEVELS
CREATE TABLE IF NOT EXISTS `ADMIN_LEVELS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`EXEC_ID` int(11) DEFAULT NULL,
@ -22,13 +21,12 @@ CREATE TABLE IF NOT EXISTS `admin_levels` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.admin_levels: ~0 rows (approximately)
/*!40000 ALTER TABLE `admin_levels` DISABLE KEYS */;
/*!40000 ALTER TABLE `admin_levels` ENABLE KEYS */;
-- Dumping data for table sa-mp.ADMIN_LEVELS: 0 rows
/*!40000 ALTER TABLE `ADMIN_LEVELS` DISABLE KEYS */;
/*!40000 ALTER TABLE `ADMIN_LEVELS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.admin_log
DROP TABLE IF EXISTS `admin_log`;
CREATE TABLE IF NOT EXISTS `admin_log` (
-- Dumping structure for table sa-mp.ADMIN_LOG
CREATE TABLE IF NOT EXISTS `ADMIN_LOG` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) NOT NULL,
`ACTION` text,
@ -37,13 +35,12 @@ CREATE TABLE IF NOT EXISTS `admin_log` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.admin_log: ~0 rows (approximately)
/*!40000 ALTER TABLE `admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `admin_log` ENABLE KEYS */;
-- Dumping data for table sa-mp.ADMIN_LOG: 0 rows
/*!40000 ALTER TABLE `ADMIN_LOG` DISABLE KEYS */;
/*!40000 ALTER TABLE `ADMIN_LOG` ENABLE KEYS */;
-- Dumping structure for table sa-mp.apartments
DROP TABLE IF EXISTS `apartments`;
CREATE TABLE IF NOT EXISTS `apartments` (
-- Dumping structure for table sa-mp.APARTMENTS
CREATE TABLE IF NOT EXISTS `APARTMENTS` (
`ID` int(3) NOT NULL,
`OWNER` varchar(24) DEFAULT NULL,
`NAME` varchar(30) DEFAULT NULL,
@ -51,13 +48,12 @@ CREATE TABLE IF NOT EXISTS `apartments` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.apartments: ~0 rows (approximately)
/*!40000 ALTER TABLE `apartments` DISABLE KEYS */;
/*!40000 ALTER TABLE `apartments` ENABLE KEYS */;
-- Dumping data for table sa-mp.APARTMENTS: ~0 rows (approximately)
/*!40000 ALTER TABLE `APARTMENTS` DISABLE KEYS */;
/*!40000 ALTER TABLE `APARTMENTS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.bans
DROP TABLE IF EXISTS `bans`;
CREATE TABLE IF NOT EXISTS `bans` (
CREATE TABLE IF NOT EXISTS `BANS` (
`NAME` varchar(25) DEFAULT NULL,
`IP` varchar(16) DEFAULT NULL,
`REASON` varchar(50) DEFAULT NULL,
@ -72,12 +68,11 @@ CREATE TABLE IF NOT EXISTS `bans` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.bans: ~0 rows (approximately)
/*!40000 ALTER TABLE `bans` DISABLE KEYS */;
/*!40000 ALTER TABLE `bans` ENABLE KEYS */;
/*!40000 ALTER TABLE `BANS` DISABLE KEYS */;
/*!40000 ALTER TABLE `BANS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.bribes
DROP TABLE IF EXISTS `bribes`;
CREATE TABLE IF NOT EXISTS `bribes` (
CREATE TABLE IF NOT EXISTS `BRIBES` (
`ID` int(3) NOT NULL,
`X` float DEFAULT NULL,
`Y` float DEFAULT NULL,
@ -86,12 +81,11 @@ CREATE TABLE IF NOT EXISTS `bribes` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.bribes: ~0 rows (approximately)
/*!40000 ALTER TABLE `bribes` DISABLE KEYS */;
/*!40000 ALTER TABLE `bribes` ENABLE KEYS */;
/*!40000 ALTER TABLE `BRIBES` DISABLE KEYS */;
/*!40000 ALTER TABLE `BRIBES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.businesses
DROP TABLE IF EXISTS `businesses`;
CREATE TABLE IF NOT EXISTS `businesses` (
CREATE TABLE IF NOT EXISTS `BUSINESSES` (
`ID` int(11) unsigned NOT NULL,
`OWNER_ID` int(11) unsigned DEFAULT NULL,
`NAME` varchar(31) DEFAULT 'Business',
@ -115,24 +109,22 @@ CREATE TABLE IF NOT EXISTS `businesses` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.businesses: ~0 rows (approximately)
/*!40000 ALTER TABLE `businesses` DISABLE KEYS */;
/*!40000 ALTER TABLE `businesses` ENABLE KEYS */;
-- Dumping data for table sa-mp.businesses: 0 rows
/*!40000 ALTER TABLE `BUSINESSES` DISABLE KEYS */;
/*!40000 ALTER TABLE `BUSINESSES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.business_vehicles
DROP TABLE IF EXISTS `business_vehicles`;
CREATE TABLE IF NOT EXISTS `business_vehicles` (
CREATE TABLE IF NOT EXISTS `BUSINESS_VEHICLES` (
`BUSINESS_ID` int(11) DEFAULT NULL,
`VEHICLE_INDEX` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.business_vehicles: ~0 rows (approximately)
/*!40000 ALTER TABLE `business_vehicles` DISABLE KEYS */;
/*!40000 ALTER TABLE `business_vehicles` ENABLE KEYS */;
/*!40000 ALTER TABLE `BUSINESS_VEHICLES` DISABLE KEYS */;
/*!40000 ALTER TABLE `BUSINESS_VEHICLES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.cash_cards
DROP TABLE IF EXISTS `cash_cards`;
CREATE TABLE IF NOT EXISTS `cash_cards` (
-- Dumping structure for table sa-mp.CASH_CARDS
CREATE TABLE IF NOT EXISTS `CASH_CARDS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) unsigned DEFAULT '1',
`CODE` varchar(32) NOT NULL,
@ -143,13 +135,12 @@ CREATE TABLE IF NOT EXISTS `cash_cards` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.cash_cards: ~0 rows (approximately)
/*!40000 ALTER TABLE `cash_cards` DISABLE KEYS */;
/*!40000 ALTER TABLE `cash_cards` ENABLE KEYS */;
-- Dumping data for table sa-mp.CASH_CARDS: ~0 rows (approximately)
/*!40000 ALTER TABLE `CASH_CARDS` DISABLE KEYS */;
/*!40000 ALTER TABLE `CASH_CARDS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.cash_cards_redeemed
DROP TABLE IF EXISTS `cash_cards_redeemed`;
CREATE TABLE IF NOT EXISTS `cash_cards_redeemed` (
-- Dumping structure for table sa-mp.CASH_CARDS_redeemed
CREATE TABLE IF NOT EXISTS `CASH_CARDS_REDEEMED` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`CASH_CARD_ID` int(11) DEFAULT NULL,
@ -157,13 +148,12 @@ CREATE TABLE IF NOT EXISTS `cash_cards_redeemed` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.cash_cards_redeemed: ~0 rows (approximately)
/*!40000 ALTER TABLE `cash_cards_redeemed` DISABLE KEYS */;
/*!40000 ALTER TABLE `cash_cards_redeemed` ENABLE KEYS */;
-- Dumping data for table sa-mp.CASH_CARDS_redeemed: ~0 rows (approximately)
/*!40000 ALTER TABLE `CASH_CARDS_REDEEMED` DISABLE KEYS */;
/*!40000 ALTER TABLE `CASH_CARDS_REDEEMED` ENABLE KEYS */;
-- Dumping structure for table sa-mp.casino_pools
DROP TABLE IF EXISTS `casino_pools`;
CREATE TABLE IF NOT EXISTS `casino_pools` (
CREATE TABLE IF NOT EXISTS `CASINO_POOLS` (
`ID` int(11) NOT NULL,
`POOL` int(11) DEFAULT '0',
`TOTAL_WINNINGS` int(11) DEFAULT '0',
@ -172,16 +162,15 @@ CREATE TABLE IF NOT EXISTS `casino_pools` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.casino_pools: ~3 rows (approximately)
/*!40000 ALTER TABLE `casino_pools` DISABLE KEYS */;
INSERT INTO `casino_pools` (`ID`, `POOL`, `TOTAL_WINNINGS`, `TOTAL_GAMBLED`) VALUES
(0, 0, 0, 0),
(1, 0, 0, 0),
(2, 0, 0, 0);
/*!40000 ALTER TABLE `casino_pools` ENABLE KEYS */;
/*!40000 ALTER TABLE `CASINO_POOLS` DISABLE KEYS */;
INSERT INTO `CASINO_POOLS` (`ID`, `POOL`, `TOTAL_WINNINGS`, `TOTAL_GAMBLED`) VALUES
(0, 5000000, 0, 0),
(1, 25000000, 0, 0),
(2, 100000000, 0, 0);
/*!40000 ALTER TABLE `CASINO_POOLS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.components
DROP TABLE IF EXISTS `components`;
CREATE TABLE IF NOT EXISTS `components` (
CREATE TABLE IF NOT EXISTS `COMPONENTS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`VEHICLE_ID` int(11) DEFAULT NULL,
`MODEL` int(5) DEFAULT NULL,
@ -195,31 +184,29 @@ CREATE TABLE IF NOT EXISTS `components` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.components: ~0 rows (approximately)
/*!40000 ALTER TABLE `components` DISABLE KEYS */;
/*!40000 ALTER TABLE `components` ENABLE KEYS */;
-- Dumping data for table sa-mp.components: 0 rows
/*!40000 ALTER TABLE `COMPONENTS` DISABLE KEYS */;
/*!40000 ALTER TABLE `COMPONENTS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.crowdfunds
DROP TABLE IF EXISTS `crowdfunds`;
CREATE TABLE IF NOT EXISTS `crowdfunds` (
CREATE TABLE IF NOT EXISTS `CROWDFUNDS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`FEATURE` text,
`DESCRIPTION` text,
`IMAGE` text,
`ORDER` int(3) DEFAULT '0',
`FUND_TARGET` float DEFAULT NULL,
`RELEASE_DATE` varchar(50) NOT NULL DEFAULT '0000-00-00 00:00:00',
`RELEASE_DATE` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`END_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.crowdfunds: ~0 rows (approximately)
/*!40000 ALTER TABLE `crowdfunds` DISABLE KEYS */;
/*!40000 ALTER TABLE `crowdfunds` ENABLE KEYS */;
/*!40000 ALTER TABLE `CROWDFUNDS` DISABLE KEYS */;
/*!40000 ALTER TABLE `CROWDFUNDS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.crowdfund_packages
DROP TABLE IF EXISTS `crowdfund_packages`;
CREATE TABLE IF NOT EXISTS `crowdfund_packages` (
CREATE TABLE IF NOT EXISTS `CROWDFUND_PACKAGES` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`CROWDFUND_ID` int(11) DEFAULT NULL,
`TITLE` text,
@ -229,12 +216,11 @@ CREATE TABLE IF NOT EXISTS `crowdfund_packages` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.crowdfund_packages: ~0 rows (approximately)
/*!40000 ALTER TABLE `crowdfund_packages` DISABLE KEYS */;
/*!40000 ALTER TABLE `crowdfund_packages` ENABLE KEYS */;
/*!40000 ALTER TABLE `CROWDFUND_PACKAGES` DISABLE KEYS */;
/*!40000 ALTER TABLE `CROWDFUND_PACKAGES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.crowdfund_patreons
DROP TABLE IF EXISTS `crowdfund_patreons`;
CREATE TABLE IF NOT EXISTS `crowdfund_patreons` (
CREATE TABLE IF NOT EXISTS `CROWDFUND_PATREONS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`CROWDFUND_ID` int(11) DEFAULT NULL,
@ -244,12 +230,24 @@ CREATE TABLE IF NOT EXISTS `crowdfund_patreons` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.crowdfund_patreons: ~0 rows (approximately)
/*!40000 ALTER TABLE `crowdfund_patreons` DISABLE KEYS */;
/*!40000 ALTER TABLE `crowdfund_patreons` ENABLE KEYS */;
/*!40000 ALTER TABLE `CROWDFUND_PATREONS` DISABLE KEYS */;
/*!40000 ALTER TABLE `CROWDFUND_PATREONS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.db_migrations
CREATE TABLE IF NOT EXISTS `DB_MIGRATIONS` (
`MIGRATION` varchar(255) NOT NULL,
`DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`MIGRATION`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.db_migrations: ~0 rows (approximately)
/*!40000 ALTER TABLE `DB_MIGRATIONS` DISABLE KEYS */;
INSERT INTO `DB_MIGRATIONS` (`MIGRATION`) VALUES
('20181212_cnr_base');
/*!40000 ALTER TABLE `DB_MIGRATIONS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.emails
DROP TABLE IF EXISTS `emails`;
CREATE TABLE IF NOT EXISTS `emails` (
CREATE TABLE IF NOT EXISTS `EMAILS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`EMAIL` varchar(64) DEFAULT NULL,
@ -260,13 +258,12 @@ CREATE TABLE IF NOT EXISTS `emails` (
UNIQUE KEY `USER_ID` (`USER_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.emails: ~0 rows (approximately)
/*!40000 ALTER TABLE `emails` DISABLE KEYS */;
/*!40000 ALTER TABLE `emails` ENABLE KEYS */;
-- Dumping data for table sa-mp.emails: 0 rows
/*!40000 ALTER TABLE `EMAILS` DISABLE KEYS */;
/*!40000 ALTER TABLE `EMAILS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.email_verify
DROP TABLE IF EXISTS `email_verify`;
CREATE TABLE IF NOT EXISTS `email_verify` (
CREATE TABLE IF NOT EXISTS `EMAIL_VERIFY` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`EMAIL` varchar(64) DEFAULT NULL,
@ -275,13 +272,12 @@ CREATE TABLE IF NOT EXISTS `email_verify` (
UNIQUE KEY `USER_ID` (`USER_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.email_verify: ~0 rows (approximately)
/*!40000 ALTER TABLE `email_verify` DISABLE KEYS */;
/*!40000 ALTER TABLE `email_verify` ENABLE KEYS */;
-- Dumping data for table sa-mp.email_verify: 0 rows
/*!40000 ALTER TABLE `EMAIL_VERIFY` DISABLE KEYS */;
/*!40000 ALTER TABLE `EMAIL_VERIFY` ENABLE KEYS */;
-- Dumping structure for table sa-mp.entrances
DROP TABLE IF EXISTS `entrances`;
CREATE TABLE IF NOT EXISTS `entrances` (
CREATE TABLE IF NOT EXISTS `ENTRANCES` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`OWNER` varchar(24) NOT NULL,
`LABEL` varchar(32) NOT NULL,
@ -297,11 +293,11 @@ CREATE TABLE IF NOT EXISTS `entrances` (
`VIP_ONLY` tinyint(1) DEFAULT '0',
`MAP_ICON` tinyint(2) DEFAULT '-1',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.entrances: ~66 rows (approximately)
/*!40000 ALTER TABLE `entrances` DISABLE KEYS */;
INSERT INTO `entrances` (`ID`, `OWNER`, `LABEL`, `X`, `Y`, `Z`, `EX`, `EY`, `EZ`, `INTERIOR`, `WORLD`, `CUSTOM`, `VIP_ONLY`, `MAP_ICON`) VALUES
-- Dumping data for table sa-mp.entrances: ~73 rows (approximately)
/*!40000 ALTER TABLE `ENTRANCES` DISABLE KEYS */;
INSERT INTO `ENTRANCES` (`ID`, `OWNER`, `LABEL`, `X`, `Y`, `Z`, `EX`, `EY`, `EZ`, `INTERIOR`, `WORLD`, `CUSTOM`, `VIP_ONLY`, `MAP_ICON`) VALUES
(1, 'Jendral', '[ROOFTOP]', -2440.51, 820.97, 35.1838, -2438.12, 819.736, 65.5078, 0, 0, 0, 1, -1),
(2, 'Queens', '[ROOFTOP]', -2475.42, 161.524, 35.1406, -2476.4, 155.654, 64.9332, 0, 0, 0, 1, -1),
(3, 'Lorenc', '[ROOFTOP]', -2281.28, 923.617, 66.7333, -2280.7, 907.226, 96.8359, 0, 0, 0, 1, -1),
@ -310,7 +306,6 @@ INSERT INTO `entrances` (`ID`, `OWNER`, `LABEL`, `X`, `Y`, `Z`, `EX`, `EY`, `EZ`
(6, 'Arros', '[ROOFTOP]', -2113.28, 1087.92, 71.5219, -2120.26, 1060.57, 96.9456, 0, 0, 0, 1, -1),
(7, 'Deedz', '[ROOFTOP]', -1991.55, 821.036, 45.4453, -1984.25, 821.753, 92.3203, 0, 0, 0, 1, -1),
(8, 'Arntz', '[ROOFTOP]', -1887.05, 761.114, 45.4469, -1860.11, 783.469, 93.9143, 0, 0, 0, 1, -1),
(9, 'Deedz', '[ROOFTOP]', -2018.71, 1194.19, 45.4574, -2019.53, 1198.32, 80.75, 0, 0, 0, 1, -1),
(12, 'Cake', '[ROOFTOP]', -2724.62, 73.5155, 4.3359, -2727.8, 60.5538, 11.1953, 0, 0, 0, 1, -1),
(13, '[RR]Natushi', '[ROOFTOP]', -1948.45, 827.377, 42.5405, -1947.54, 813.565, 77.73, 0, 0, 0, 1, -1),
(14, 'Assassin', '[ROOFTOP]', 1370.81, -1341.39, 13.5469, 1378.12, -1381.71, 34.5537, 0, 0, 0, 1, -1),
@ -367,12 +362,19 @@ INSERT INTO `entrances` (`ID`, `OWNER`, `LABEL`, `X`, `Y`, `Z`, `EX`, `EY`, `EZ`
(99, 'Sultan', '[ROOFTOP]', -1676.72, 1027.74, 7.92188, -1687.05, 1003.51, 74.8015, 0, 0, 0, 0, -1),
(100, 'haynoplays', '[UPSTAIRS]', -2273.55, 419.151, 35.253, -2273.51, 419.228, 41.152, 0, 0, 0, 1, -1),
(101, 'haynoplays', '[UPSTAIRS]', -2272.58, 453.917, 41.163, -2272.4, 454.009, 49.243, 0, 0, 0, 1, -1),
(103, 'Lorenc', '[NG FACILITY]', -2369.63, 583.402, 25.618, -2342.68, 592.17, 41.978, 0, 0, 0, 0, -1);
/*!40000 ALTER TABLE `entrances` ENABLE KEYS */;
(103, 'Lorenc', '[NG FACILITY]', -2369.63, 583.402, 25.618, -2342.68, 592.17, 41.978, 0, 0, 0, 0, -1),
(104, '[vT][A]VeNGe[R]171_', '[ROOFTOP]', -1697.55, 868.545, 24.8534, -1643.69, 880.439, 136.042, 0, 0, 0, 0, -1),
(105, 'Stev', '[STEV\'S APARTMENT]', -2084.66, 849.106, 69.5625, -2087.36, 839.434, 76.427, 0, 0, 0, 1, -1),
(106, 'willHunting', 'ROOFTOP', -2018.75, 1194.19, 45.4574, -2019.49, 1198.32, 80.75, 0, 0, 0, 0, -1),
(107, 'willHunting', '[ROOF TOP]', -2018.76, 1194.18, 45.4574, -2019.49, 1198.32, 80.75, 0, 0, 0, 0, -1),
(108, 'willHunting', '[ROOFTOP]', -2018.76, 1194.19, 45.4574, -2019.49, 1198.32, 80.75, 0, 0, 0, 0, -1),
(109, 'Milky', '[SEWER]', -1990.77, 1033.78, 55.7266, 3638.48, 5215.5, 1203.32, 0, 50, 1, 1, -1),
(110, 'Milky', '[SEWER]', -1990.77, 1033.73, 55.7266, 3638.48, 5215.5, 1203.32, 1, 50, 1, 1, -1),
(111, 'Milky', '[SEWER]', -1990.77, 1033.74, 55.7266, 3638.48, 5215.5, 1203.32, 1, 1, 1, 0, -1);
/*!40000 ALTER TABLE `ENTRANCES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.feedback
DROP TABLE IF EXISTS `feedback`;
CREATE TABLE IF NOT EXISTS `feedback` (
CREATE TABLE IF NOT EXISTS `FEEDBACK` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) NOT NULL,
`FEEDBACK` text,
@ -382,12 +384,11 @@ CREATE TABLE IF NOT EXISTS `feedback` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.feedback: ~0 rows (approximately)
/*!40000 ALTER TABLE `feedback` DISABLE KEYS */;
/*!40000 ALTER TABLE `feedback` ENABLE KEYS */;
/*!40000 ALTER TABLE `FEEDBACK` DISABLE KEYS */;
/*!40000 ALTER TABLE `FEEDBACK` ENABLE KEYS */;
-- Dumping structure for table sa-mp.furniture
DROP TABLE IF EXISTS `furniture`;
CREATE TABLE IF NOT EXISTS `furniture` (
CREATE TABLE IF NOT EXISTS `FURNITURE` (
`ID` int(11) NOT NULL,
`HOUSE_ID` int(11) NOT NULL,
`OWNER` int(11) DEFAULT NULL,
@ -402,12 +403,11 @@ CREATE TABLE IF NOT EXISTS `furniture` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.furniture: ~0 rows (approximately)
/*!40000 ALTER TABLE `furniture` DISABLE KEYS */;
/*!40000 ALTER TABLE `furniture` ENABLE KEYS */;
/*!40000 ALTER TABLE `FURNITURE` DISABLE KEYS */;
/*!40000 ALTER TABLE `FURNITURE` ENABLE KEYS */;
-- Dumping structure for table sa-mp.gangs
DROP TABLE IF EXISTS `gangs`;
CREATE TABLE IF NOT EXISTS `gangs` (
CREATE TABLE IF NOT EXISTS `GANGS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`NAME` varchar(30) NOT NULL,
`CLAN_TAG` varchar(8) DEFAULT NULL,
@ -422,27 +422,25 @@ CREATE TABLE IF NOT EXISTS `gangs` (
`RESPECT` int(10) DEFAULT '0',
PRIMARY KEY (`ID`),
UNIQUE KEY `LEADER` (`LEADER`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=10619 DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.gangs: ~0 rows (approximately)
/*!40000 ALTER TABLE `gangs` DISABLE KEYS */;
/*!40000 ALTER TABLE `gangs` ENABLE KEYS */;
/*!40000 ALTER TABLE `GANGS` DISABLE KEYS */;
/*!40000 ALTER TABLE `GANGS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.gang_coleaders
DROP TABLE IF EXISTS `gang_coleaders`;
CREATE TABLE IF NOT EXISTS `gang_coleaders` (
CREATE TABLE IF NOT EXISTS `GANG_COLEADERS` (
`GANG_ID` int(11) DEFAULT NULL,
`USER_ID` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`USER_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.gang_coleaders: ~0 rows (approximately)
/*!40000 ALTER TABLE `gang_coleaders` DISABLE KEYS */;
/*!40000 ALTER TABLE `gang_coleaders` ENABLE KEYS */;
-- Dumping data for table sa-mp.gang_coleaders: 0 rows
/*!40000 ALTER TABLE `GANG_COLEADERS` DISABLE KEYS */;
/*!40000 ALTER TABLE `GANG_COLEADERS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.gang_facilities
DROP TABLE IF EXISTS `gang_facilities`;
CREATE TABLE IF NOT EXISTS `gang_facilities` (
CREATE TABLE IF NOT EXISTS `GANG_FACILITIES` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`GANG_ID` int(11) DEFAULT NULL,
`ENTER_X` float DEFAULT NULL,
@ -456,12 +454,29 @@ CREATE TABLE IF NOT EXISTS `gang_facilities` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.gang_facilities: ~0 rows (approximately)
/*!40000 ALTER TABLE `gang_facilities` DISABLE KEYS */;
/*!40000 ALTER TABLE `gang_facilities` ENABLE KEYS */;
/*!40000 ALTER TABLE `GANG_FACILITIES` DISABLE KEYS */;
/*!40000 ALTER TABLE `GANG_FACILITIES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.gang_vehicles
CREATE TABLE IF NOT EXISTS `GANG_VEHICLES` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`GANG_ID` int(11) DEFAULT NULL,
`MODEL_ID` int(11) DEFAULT NULL,
`COLOR1` int(4) DEFAULT NULL,
`COLOR2` int(4) DEFAULT NULL,
`PAINTJOB` tinyint(2) DEFAULT NULL,
`MODS` varchar(90) DEFAULT NULL,
PRIMARY KEY (`ID`),
KEY `GANG_ID` (`GANG_ID`),
CONSTRAINT `GANG_VEHICLES_ibfk_1` FOREIGN KEY (`GANG_ID`) REFERENCES `GANGS` (`ID`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.gang_vehicles: ~0 rows (approximately)
/*!40000 ALTER TABLE `GANG_VEHICLES` DISABLE KEYS */;
/*!40000 ALTER TABLE `GANG_VEHICLES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.garages
DROP TABLE IF EXISTS `garages`;
CREATE TABLE IF NOT EXISTS `garages` (
CREATE TABLE IF NOT EXISTS `GARAGES` (
`ID` smallint(4) NOT NULL,
`OWNER` int(11) NOT NULL DEFAULT '0',
`PRICE` int(11) NOT NULL,
@ -474,12 +489,11 @@ CREATE TABLE IF NOT EXISTS `garages` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.garages: ~0 rows (approximately)
/*!40000 ALTER TABLE `garages` DISABLE KEYS */;
/*!40000 ALTER TABLE `garages` ENABLE KEYS */;
/*!40000 ALTER TABLE `GARAGES` DISABLE KEYS */;
/*!40000 ALTER TABLE `GARAGES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.gates
DROP TABLE IF EXISTS `gates`;
CREATE TABLE IF NOT EXISTS `gates` (
CREATE TABLE IF NOT EXISTS `GATES` (
`ID` int(4) NOT NULL,
`OWNER` int(11) DEFAULT NULL,
`PASSWORD` varchar(8) DEFAULT NULL,
@ -505,12 +519,11 @@ CREATE TABLE IF NOT EXISTS `gates` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.gates: ~0 rows (approximately)
/*!40000 ALTER TABLE `gates` DISABLE KEYS */;
/*!40000 ALTER TABLE `gates` ENABLE KEYS */;
/*!40000 ALTER TABLE `GATES` DISABLE KEYS */;
/*!40000 ALTER TABLE `GATES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.help
DROP TABLE IF EXISTS `help`;
CREATE TABLE IF NOT EXISTS `help` (
CREATE TABLE IF NOT EXISTS `HELP` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`CATEGORY` tinyint(3) DEFAULT NULL,
@ -520,12 +533,11 @@ CREATE TABLE IF NOT EXISTS `help` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.help: ~0 rows (approximately)
/*!40000 ALTER TABLE `help` DISABLE KEYS */;
/*!40000 ALTER TABLE `help` ENABLE KEYS */;
/*!40000 ALTER TABLE `HELP` DISABLE KEYS */;
/*!40000 ALTER TABLE `HELP` ENABLE KEYS */;
-- Dumping structure for table sa-mp.houses
DROP TABLE IF EXISTS `houses`;
CREATE TABLE IF NOT EXISTS `houses` (
CREATE TABLE IF NOT EXISTS `HOUSES` (
`ID` int(3) NOT NULL,
`NAME` varchar(30) DEFAULT NULL,
`OWNER` varchar(24) DEFAULT NULL,
@ -544,25 +556,68 @@ CREATE TABLE IF NOT EXISTS `houses` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.houses: ~0 rows (approximately)
/*!40000 ALTER TABLE `houses` DISABLE KEYS */;
/*!40000 ALTER TABLE `houses` ENABLE KEYS */;
/*!40000 ALTER TABLE `HOUSES` DISABLE KEYS */;
/*!40000 ALTER TABLE `HOUSES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.house_listings
CREATE TABLE IF NOT EXISTS `HOUSE_LISTINGS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`HOUSE_ID` int(11) DEFAULT NULL,
`USER_ID` int(11) DEFAULT NULL,
`ASK` float DEFAULT NULL,
`LISTING_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`SALE_DATE` datetime DEFAULT NULL,
PRIMARY KEY (`ID`),
KEY `HOUSE_ID` (`HOUSE_ID`),
CONSTRAINT `HOUSE_LISTINGS_ibfk_1` FOREIGN KEY (`HOUSE_ID`) REFERENCES `HOUSES` (`ID`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.house_listings: ~0 rows (approximately)
/*!40000 ALTER TABLE `HOUSE_LISTINGS` DISABLE KEYS */;
/*!40000 ALTER TABLE `HOUSE_LISTINGS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.ic_market_log
CREATE TABLE IF NOT EXISTS `IC_MARKET_LOG` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`SELLER_ID` int(11) DEFAULT NULL,
`BUYER_ID` int(11) DEFAULT NULL,
`ASK_RATE` int(11) DEFAULT NULL,
`IC_AMOUNT` float DEFAULT NULL,
`DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.ic_market_log: ~0 rows (approximately)
/*!40000 ALTER TABLE `IC_MARKET_LOG` DISABLE KEYS */;
/*!40000 ALTER TABLE `IC_MARKET_LOG` ENABLE KEYS */;
-- Dumping structure for table sa-mp.ic_sell_orders
CREATE TABLE IF NOT EXISTS `IC_SELL_ORDERS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`ASK_PRICE` int(11) DEFAULT NULL,
`AVAILABLE_IC` float DEFAULT NULL,
`TOTAL_IC` float DEFAULT NULL,
`LISTING_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.ic_sell_orders: ~0 rows (approximately)
/*!40000 ALTER TABLE `IC_SELL_ORDERS` DISABLE KEYS */;
/*!40000 ALTER TABLE `IC_SELL_ORDERS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.megaban
DROP TABLE IF EXISTS `megaban`;
CREATE TABLE IF NOT EXISTS `megaban` (
CREATE TABLE IF NOT EXISTS `MEGABAN` (
`ISP` varchar(128) DEFAULT NULL,
`TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY `ISP` (`ISP`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.megaban: ~0 rows (approximately)
/*!40000 ALTER TABLE `megaban` DISABLE KEYS */;
INSERT INTO `megaban` (`ISP`, `TIME`) VALUES
('AS28753 Leaseweb Deutschland GmbH', '2016-12-23 17:48:35');
/*!40000 ALTER TABLE `megaban` ENABLE KEYS */;
/*!40000 ALTER TABLE `MEGABAN` DISABLE KEYS */;
/*!40000 ALTER TABLE `MEGABAN` ENABLE KEYS */;
-- Dumping structure for table sa-mp.name_changes
DROP TABLE IF EXISTS `name_changes`;
CREATE TABLE IF NOT EXISTS `name_changes` (
`USER_ID` int(11) DEFAULT NULL,
`ADMIN_ID` int(11) DEFAULT NULL,
@ -575,8 +630,7 @@ CREATE TABLE IF NOT EXISTS `name_changes` (
/*!40000 ALTER TABLE `name_changes` ENABLE KEYS */;
-- Dumping structure for table sa-mp.notes
DROP TABLE IF EXISTS `notes`;
CREATE TABLE IF NOT EXISTS `notes` (
CREATE TABLE IF NOT EXISTS `NOTES` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) NOT NULL,
`ADDED_BY` int(11) NOT NULL,
@ -587,12 +641,22 @@ CREATE TABLE IF NOT EXISTS `notes` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.notes: ~0 rows (approximately)
/*!40000 ALTER TABLE `notes` DISABLE KEYS */;
/*!40000 ALTER TABLE `notes` ENABLE KEYS */;
/*!40000 ALTER TABLE `NOTES` DISABLE KEYS */;
/*!40000 ALTER TABLE `NOTES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.ranks_previous
CREATE TABLE IF NOT EXISTS `RANKS_PREVIOUS` (
`USER_ID` int(11) NOT NULL,
`RANK` int(6) DEFAULT NULL,
PRIMARY KEY (`USER_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.ranks_previous: 0 rows
/*!40000 ALTER TABLE `RANKS_PREVIOUS` DISABLE KEYS */;
/*!40000 ALTER TABLE `RANKS_PREVIOUS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.redeemed
DROP TABLE IF EXISTS `redeemed`;
CREATE TABLE IF NOT EXISTS `redeemed` (
CREATE TABLE IF NOT EXISTS `REDEEMED` (
`ID` varchar(32) NOT NULL,
`REDEEMER` varchar(25) NOT NULL,
`TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
@ -600,12 +664,11 @@ CREATE TABLE IF NOT EXISTS `redeemed` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.redeemed: ~0 rows (approximately)
/*!40000 ALTER TABLE `redeemed` DISABLE KEYS */;
/*!40000 ALTER TABLE `redeemed` ENABLE KEYS */;
/*!40000 ALTER TABLE `REDEEMED` DISABLE KEYS */;
/*!40000 ALTER TABLE `REDEEMED` ENABLE KEYS */;
-- Dumping structure for table sa-mp.server
DROP TABLE IF EXISTS `server`;
CREATE TABLE IF NOT EXISTS `server` (
CREATE TABLE IF NOT EXISTS `SERVER` (
`NAME` varchar(64) NOT NULL,
`INT_VAL` int(11) NOT NULL,
`FLOAT_VAL` float NOT NULL,
@ -615,23 +678,21 @@ CREATE TABLE IF NOT EXISTS `server` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.server: ~0 rows (approximately)
/*!40000 ALTER TABLE `server` DISABLE KEYS */;
/*!40000 ALTER TABLE `server` ENABLE KEYS */;
/*!40000 ALTER TABLE `SERVER` DISABLE KEYS */;
/*!40000 ALTER TABLE `SERVER` ENABLE KEYS */;
-- Dumping structure for table sa-mp.settings
DROP TABLE IF EXISTS `settings`;
CREATE TABLE IF NOT EXISTS `settings` (
CREATE TABLE IF NOT EXISTS `SETTINGS` (
`USER_ID` int(11) DEFAULT NULL,
`SETTING_ID` tinyint(3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.settings: ~0 rows (approximately)
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
/*!40000 ALTER TABLE `SETTINGS` DISABLE KEYS */;
/*!40000 ALTER TABLE `SETTINGS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.slot_machines
DROP TABLE IF EXISTS `slot_machines`;
CREATE TABLE IF NOT EXISTS `slot_machines` (
CREATE TABLE IF NOT EXISTS `SLOT_MACHINES` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`DESCRIPTION` varchar(16) DEFAULT NULL,
`ENTRY_FEE` int(11) DEFAULT NULL,
@ -644,8 +705,8 @@ CREATE TABLE IF NOT EXISTS `slot_machines` (
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.slot_machines: ~54 rows (approximately)
/*!40000 ALTER TABLE `slot_machines` DISABLE KEYS */;
INSERT INTO `slot_machines` (`ID`, `DESCRIPTION`, `ENTRY_FEE`, `POOL_ID`, `X`, `Y`, `Z`, `ROTATION`) VALUES
/*!40000 ALTER TABLE `SLOT_MACHINES` DISABLE KEYS */;
INSERT INTO `SLOT_MACHINES` (`ID`, `DESCRIPTION`, `ENTRY_FEE`, `POOL_ID`, `X`, `Y`, `Z`, `ROTATION`) VALUES
(1, 'calig-petty', 5000, 0, 2255.19, 1618.08, 1006.77, 180),
(2, 'calig-low', 5000, 0, 2255.15, 1617.55, 1006.77, 0),
(3, 'calig-petty', 5000, 0, 2255.19, 1614.19, 1006.77, 180),
@ -700,11 +761,10 @@ INSERT INTO `slot_machines` (`ID`, `DESCRIPTION`, `ENTRY_FEE`, `POOL_ID`, `X`, `
(52, 'visage', 50000, 2, 2587.27, 1609.53, 1506.74, 180),
(53, 'visage', 50000, 2, 2587.08, 1615.62, 1506.74, -90),
(54, 'visage', 50000, 2, 2587.6, 1615.58, 1506.74, 90);
/*!40000 ALTER TABLE `slot_machines` ENABLE KEYS */;
/*!40000 ALTER TABLE `SLOT_MACHINES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.stats
DROP TABLE IF EXISTS `stats`;
CREATE TABLE IF NOT EXISTS `stats` (
CREATE TABLE IF NOT EXISTS `STATS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`INT_VAL` int(32) DEFAULT NULL,
@ -715,12 +775,67 @@ CREATE TABLE IF NOT EXISTS `stats` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.stats: ~0 rows (approximately)
/*!40000 ALTER TABLE `stats` DISABLE KEYS */;
/*!40000 ALTER TABLE `stats` ENABLE KEYS */;
/*!40000 ALTER TABLE `STATS` DISABLE KEYS */;
/*!40000 ALTER TABLE `STATS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.stock_owners
CREATE TABLE IF NOT EXISTS `STOCK_OWNERS` (
`USER_ID` int(11) NOT NULL DEFAULT '0',
`STOCK_ID` int(11) NOT NULL DEFAULT '0',
`SHARES` float DEFAULT NULL,
PRIMARY KEY (`USER_ID`,`STOCK_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.stock_owners: ~0 rows (approximately)
/*!40000 ALTER TABLE `STOCK_OWNERS` DISABLE KEYS */;
/*!40000 ALTER TABLE `STOCK_OWNERS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.stock_reports
CREATE TABLE IF NOT EXISTS `STOCK_REPORTS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`STOCK_ID` int(11) DEFAULT NULL,
`POOL` float DEFAULT NULL,
`DONATIONS` float DEFAULT '0',
`PRICE` float DEFAULT NULL,
`REPORTING_TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.stock_reports: ~0 rows (approximately)
/*!40000 ALTER TABLE `STOCK_REPORTS` DISABLE KEYS */;
/*!40000 ALTER TABLE `STOCK_REPORTS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.stock_sell_orders
CREATE TABLE IF NOT EXISTS `STOCK_SELL_ORDERS` (
`STOCK_ID` int(11) NOT NULL DEFAULT '0',
`USER_ID` int(11) NOT NULL DEFAULT '0',
`SHARES` float DEFAULT NULL,
`LIST_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`STOCK_ID`,`USER_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.stock_sell_orders: ~0 rows (approximately)
/*!40000 ALTER TABLE `STOCK_SELL_ORDERS` DISABLE KEYS */;
/*!40000 ALTER TABLE `STOCK_SELL_ORDERS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.stock_trade_log
CREATE TABLE IF NOT EXISTS `STOCK_TRADE_LOG` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`STOCK_ID` int(11) DEFAULT NULL,
`BUYER_ID` int(11) DEFAULT NULL,
`SELLER_ID` int(11) DEFAULT NULL,
`SHARES` float DEFAULT NULL,
`PRICE` float DEFAULT NULL,
`DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.stock_trade_log: ~0 rows (approximately)
/*!40000 ALTER TABLE `STOCK_TRADE_LOG` DISABLE KEYS */;
/*!40000 ALTER TABLE `STOCK_TRADE_LOG` ENABLE KEYS */;
-- Dumping structure for table sa-mp.streaks
DROP TABLE IF EXISTS `streaks`;
CREATE TABLE IF NOT EXISTS `streaks` (
CREATE TABLE IF NOT EXISTS `STREAKS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`STREAK_ID` tinyint(3) DEFAULT NULL,
@ -729,13 +844,12 @@ CREATE TABLE IF NOT EXISTS `streaks` (
UNIQUE KEY `USER_STREAK_ID` (`USER_ID`,`STREAK_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.streaks: ~0 rows (approximately)
/*!40000 ALTER TABLE `streaks` DISABLE KEYS */;
/*!40000 ALTER TABLE `streaks` ENABLE KEYS */;
-- Dumping data for table sa-mp.streaks: 0 rows
/*!40000 ALTER TABLE `STREAKS` DISABLE KEYS */;
/*!40000 ALTER TABLE `STREAKS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.top_donor
DROP TABLE IF EXISTS `top_donor`;
CREATE TABLE IF NOT EXISTS `top_donor` (
CREATE TABLE IF NOT EXISTS `TOP_DONOR` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`AMOUNT` float DEFAULT NULL,
@ -747,12 +861,11 @@ CREATE TABLE IF NOT EXISTS `top_donor` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.top_donor: ~0 rows (approximately)
/*!40000 ALTER TABLE `top_donor` DISABLE KEYS */;
/*!40000 ALTER TABLE `top_donor` ENABLE KEYS */;
/*!40000 ALTER TABLE `TOP_DONOR` DISABLE KEYS */;
/*!40000 ALTER TABLE `TOP_DONOR` ENABLE KEYS */;
-- Dumping structure for table sa-mp.toys
DROP TABLE IF EXISTS `toys`;
CREATE TABLE IF NOT EXISTS `toys` (
CREATE TABLE IF NOT EXISTS `TOYS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`SLOT_ID` tinyint(1) DEFAULT NULL,
@ -773,23 +886,21 @@ CREATE TABLE IF NOT EXISTS `toys` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.toys: ~0 rows (approximately)
/*!40000 ALTER TABLE `toys` DISABLE KEYS */;
/*!40000 ALTER TABLE `toys` ENABLE KEYS */;
/*!40000 ALTER TABLE `TOYS` DISABLE KEYS */;
/*!40000 ALTER TABLE `TOYS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.toy_unlocks
DROP TABLE IF EXISTS `toy_unlocks`;
CREATE TABLE IF NOT EXISTS `toy_unlocks` (
CREATE TABLE IF NOT EXISTS `TOY_UNLOCKS` (
`USER_ID` int(11) DEFAULT NULL,
`TOY_ID` smallint(3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.toy_unlocks: ~0 rows (approximately)
/*!40000 ALTER TABLE `toy_unlocks` DISABLE KEYS */;
/*!40000 ALTER TABLE `toy_unlocks` ENABLE KEYS */;
/*!40000 ALTER TABLE `TOY_UNLOCKS` DISABLE KEYS */;
/*!40000 ALTER TABLE `TOY_UNLOCKS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.transactions
DROP TABLE IF EXISTS `transactions`;
CREATE TABLE IF NOT EXISTS `transactions` (
CREATE TABLE IF NOT EXISTS `TRANSACTIONS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`TO_ID` int(11) DEFAULT NULL,
`FROM_ID` int(11) DEFAULT NULL,
@ -800,12 +911,11 @@ CREATE TABLE IF NOT EXISTS `transactions` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.transactions: ~0 rows (approximately)
/*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
/*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
/*!40000 ALTER TABLE `TRANSACTIONS` DISABLE KEYS */;
/*!40000 ALTER TABLE `TRANSACTIONS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.transactions_ic
DROP TABLE IF EXISTS `transactions_ic`;
CREATE TABLE IF NOT EXISTS `transactions_ic` (
CREATE TABLE IF NOT EXISTS `TRANSACTIONS_IC` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`TO_ID` int(11) DEFAULT NULL,
`FROM_ID` int(11) DEFAULT NULL,
@ -815,12 +925,11 @@ CREATE TABLE IF NOT EXISTS `transactions_ic` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.transactions_ic: ~0 rows (approximately)
/*!40000 ALTER TABLE `transactions_ic` DISABLE KEYS */;
/*!40000 ALTER TABLE `transactions_ic` ENABLE KEYS */;
/*!40000 ALTER TABLE `TRANSACTIONS_IC` DISABLE KEYS */;
/*!40000 ALTER TABLE `TRANSACTIONS_IC` ENABLE KEYS */;
-- Dumping structure for table sa-mp.users
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
CREATE TABLE IF NOT EXISTS `USERS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`NAME` varchar(25) DEFAULT NULL,
`PASSWORD` varchar(130) DEFAULT NULL,
@ -882,6 +991,7 @@ CREATE TABLE IF NOT EXISTS `users` (
`DRILL` smallint(3) unsigned DEFAULT '0',
`VIP_JOB` tinyint(2) NOT NULL DEFAULT '0',
`TRUCKED` int(10) DEFAULT '0',
`PILOT` int(6) DEFAULT '0',
`COINS` decimal(16,6) DEFAULT '0.000000',
`GANG_ID` int(6) DEFAULT '-1',
`ONLINE` tinyint(1) DEFAULT '0',
@ -898,15 +1008,14 @@ CREATE TABLE IF NOT EXISTS `users` (
PRIMARY KEY (`ID`),
UNIQUE KEY `NAME` (`NAME`),
UNIQUE KEY `NAME_2` (`NAME`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=926053 DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.users: ~0 rows (approximately)
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40000 ALTER TABLE `USERS` DISABLE KEYS */;
/*!40000 ALTER TABLE `USERS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.user_confirmed_ips
DROP TABLE IF EXISTS `user_confirmed_ips`;
CREATE TABLE IF NOT EXISTS `user_confirmed_ips` (
CREATE TABLE IF NOT EXISTS `USER_CONFIRMED_IPS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`IP` varchar(16) DEFAULT NULL,
@ -917,13 +1026,25 @@ CREATE TABLE IF NOT EXISTS `user_confirmed_ips` (
UNIQUE KEY `USER_ID_IP` (`USER_ID`,`IP`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.user_confirmed_ips: ~0 rows (approximately)
/*!40000 ALTER TABLE `user_confirmed_ips` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_confirmed_ips` ENABLE KEYS */;
-- Dumping data for table sa-mp.user_confirmed_ips: 0 rows
/*!40000 ALTER TABLE `USER_CONFIRMED_IPS` DISABLE KEYS */;
/*!40000 ALTER TABLE `USER_CONFIRMED_IPS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.user_levels
CREATE TABLE IF NOT EXISTS `USER_LEVELS` (
`USER_ID` int(11) NOT NULL DEFAULT '0',
`LEVEL_ID` int(11) NOT NULL DEFAULT '0',
`EXPERIENCE` float DEFAULT NULL,
PRIMARY KEY (`USER_ID`,`LEVEL_ID`),
CONSTRAINT `USER_LEVELS_ibfk_1` FOREIGN KEY (`USER_ID`) REFERENCES `USERS` (`ID`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.user_levels: ~0 rows (approximately)
/*!40000 ALTER TABLE `USER_LEVELS` DISABLE KEYS */;
/*!40000 ALTER TABLE `USER_LEVELS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.vehicles
DROP TABLE IF EXISTS `vehicles`;
CREATE TABLE IF NOT EXISTS `vehicles` (
CREATE TABLE IF NOT EXISTS `VEHICLES` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`MODEL` int(3) DEFAULT NULL,
`LOCKED` tinyint(1) DEFAULT NULL,
@ -943,12 +1064,11 @@ CREATE TABLE IF NOT EXISTS `vehicles` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.vehicles: ~0 rows (approximately)
/*!40000 ALTER TABLE `vehicles` DISABLE KEYS */;
/*!40000 ALTER TABLE `vehicles` ENABLE KEYS */;
/*!40000 ALTER TABLE `VEHICLES` DISABLE KEYS */;
/*!40000 ALTER TABLE `VEHICLES` ENABLE KEYS */;
-- Dumping structure for table sa-mp.visage_apartments
DROP TABLE IF EXISTS `visage_apartments`;
CREATE TABLE IF NOT EXISTS `visage_apartments` (
-- Dumping structure for table sa-mp.visage_APARTMENTS
CREATE TABLE IF NOT EXISTS `VISAGE_APARTMENTS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`OWNER_ID` int(11) DEFAULT NULL,
`TITLE` varchar(30) DEFAULT 'Apartment',
@ -958,13 +1078,12 @@ CREATE TABLE IF NOT EXISTS `visage_apartments` (
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.visage_apartments: ~0 rows (approximately)
/*!40000 ALTER TABLE `visage_apartments` DISABLE KEYS */;
/*!40000 ALTER TABLE `visage_apartments` ENABLE KEYS */;
-- Dumping data for table sa-mp.visage_APARTMENTS: ~0 rows (approximately)
/*!40000 ALTER TABLE `VISAGE_APARTMENTS` DISABLE KEYS */;
/*!40000 ALTER TABLE `VISAGE_APARTMENTS` ENABLE KEYS */;
-- Dumping structure for table sa-mp.weapon_stats
DROP TABLE IF EXISTS `weapon_stats`;
CREATE TABLE IF NOT EXISTS `weapon_stats` (
CREATE TABLE IF NOT EXISTS `WEAPON_STATS` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USER_ID` int(11) DEFAULT NULL,
`WEAPON_ID` tinyint(2) DEFAULT NULL,
@ -974,8 +1093,8 @@ CREATE TABLE IF NOT EXISTS `weapon_stats` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.weapon_stats: ~0 rows (approximately)
/*!40000 ALTER TABLE `weapon_stats` DISABLE KEYS */;
/*!40000 ALTER TABLE `weapon_stats` ENABLE KEYS */;
/*!40000 ALTER TABLE `WEAPON_STATS` DISABLE KEYS */;
/*!40000 ALTER TABLE `WEAPON_STATS` ENABLE KEYS */;
/*!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) */;

View File

@ -0,0 +1,79 @@
-- --------------------------------------------------------
-- Host: localhost
-- Server version: 5.7.19 - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 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 structure for table sa-mp.cod
CREATE TABLE IF NOT EXISTS `cod` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`NAME` varchar(24) NOT NULL,
`PASSWORD` varchar(130) NOT NULL,
`SALT` varchar(16) NOT NULL,
`SCORE` int(10) NOT NULL DEFAULT '0',
`KILLS` int(10) NOT NULL DEFAULT '1',
`DEATHS` int(10) NOT NULL DEFAULT '1',
`ADMIN` int(2) NOT NULL DEFAULT '0',
`XP` int(10) NOT NULL DEFAULT '0',
`RANK` int(2) NOT NULL DEFAULT '0',
`PRESTIGE` int(4) NOT NULL DEFAULT '0',
`PRIMARY1` int(3) NOT NULL,
`PRIMARY2` int(3) NOT NULL,
`PRIMARY3` int(3) NOT NULL,
`SECONDARY1` int(3) NOT NULL,
`SECONDARY2` int(3) NOT NULL,
`SECONDARY3` int(3) NOT NULL,
`PERK_ONE1` int(2) DEFAULT '0',
`PERK_ONE2` int(2) DEFAULT '0',
`PERK_ONE3` int(2) DEFAULT '0',
`PERK_TWO1` int(2) DEFAULT '0',
`PERK_TWO2` int(2) DEFAULT '0',
`PERK_TWO3` int(2) DEFAULT '0',
`SPECIAL1` int(2) NOT NULL DEFAULT '0',
`SPECIAL2` int(2) DEFAULT '0',
`SPECIAL3` int(2) DEFAULT '0',
`KILLSTREAK1` int(3) NOT NULL,
`KILLSTREAK2` int(3) NOT NULL,
`KILLSTREAK3` int(3) NOT NULL,
`MUTE_TIME` int(11) DEFAULT '0',
`CLASSNAME1` varchar(24) NOT NULL DEFAULT 'Custom Class 1',
`CLASSNAME2` varchar(24) NOT NULL DEFAULT 'Custom Class 2',
`CLASSNAME3` varchar(24) NOT NULL DEFAULT 'Custom Class 3',
`HITMARKER` tinyint(1) NOT NULL DEFAULT '0',
`HIT_SOUND` int(5) NOT NULL DEFAULT '0',
`UPTIME` int(11) DEFAULT '0',
`LAST_LOGGED` int(11) DEFAULT NULL,
`CASH` int(11) NOT NULL DEFAULT '0',
`WINS` int(6) NOT NULL DEFAULT '0',
`LOSES` int(6) NOT NULL DEFAULT '0',
`ZM_RANK` tinyint(2) NOT NULL DEFAULT '0',
`ZM_XP` int(11) NOT NULL DEFAULT '0',
`ZM_KILLS` int(6) NOT NULL DEFAULT '1',
`ZM_DEATHS` int(6) NOT NULL DEFAULT '1',
`VIP` tinyint(1) DEFAULT '0',
`VIP_EXPIRE` int(11) DEFAULT '0',
`DOUBLE_XP` int(11) DEFAULT '0',
`LIVES` tinyint(2) DEFAULT '0',
`MEDKITS` tinyint(2) DEFAULT '0',
`WEAPONS` varchar(11) DEFAULT '0|0',
`SKIN` smallint(3) DEFAULT '0',
`ZM_PRESTIGE` smallint(3) DEFAULT '0',
`ZM_SKIN` smallint(3) DEFAULT '-1',
PRIMARY KEY (`ID`),
UNIQUE KEY `NAME` (`NAME`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table sa-mp.cod: ~0 rows (approximately)
/*!40000 ALTER TABLE `cod` DISABLE KEYS */;
/*!40000 ALTER TABLE `cod` ENABLE KEYS */;
/*!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 */;