From 8aeaee1b19c3572d808db189d91a4d8d48382f73 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Sat, 7 Apr 2018 14:30:17 -0400 Subject: [PATCH] SQL Files for new inventory. --- sql/characters_inventory.sql | 14 +++--- sql/characters_inventory_bazaar.sql | 28 +++++++++++ sql/characters_inventory_equipment.sql | 70 ++++++++------------------ sql/retainers_inventory.sql | 11 ++-- sql/server_items.sql | 24 ++++----- sql/server_items_modifiers.sql | 35 +++++++++++++ 6 files changed, 111 insertions(+), 71 deletions(-) create mode 100644 sql/characters_inventory_bazaar.sql create mode 100644 sql/server_items_modifiers.sql diff --git a/sql/characters_inventory.sql b/sql/characters_inventory.sql index 30cc31b2..c7fcb453 100644 --- a/sql/characters_inventory.sql +++ b/sql/characters_inventory.sql @@ -4,7 +4,7 @@ Source Host: localhost Source Database: ffxiv_server Target Host: localhost Target Database: ffxiv_server -Date: 9/9/2017 2:31:15 PM +Date: 12/17/2017 3:37:39 PM */ SET FOREIGN_KEY_CHECKS=0; @@ -12,10 +12,12 @@ SET FOREIGN_KEY_CHECKS=0; -- Table structure for characters_inventory -- ---------------------------- CREATE TABLE `characters_inventory` ( - `id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT, `characterId` int(10) unsigned NOT NULL, - `inventoryType` smallint(5) unsigned NOT NULL DEFAULT '0', `serverItemId` int(10) unsigned NOT NULL, - `quantity` int(10) unsigned NOT NULL DEFAULT '1', - PRIMARY KEY (`id`,`characterId`) -) ENGINE=InnoDB AUTO_INCREMENT=325 DEFAULT CHARSET=utf8; + `itemPackage` smallint(5) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`characterId`,`serverItemId`,`itemPackage`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- ---------------------------- +-- Records +-- ---------------------------- diff --git a/sql/characters_inventory_bazaar.sql b/sql/characters_inventory_bazaar.sql new file mode 100644 index 00000000..0082b120 --- /dev/null +++ b/sql/characters_inventory_bazaar.sql @@ -0,0 +1,28 @@ +/* +MySQL Data Transfer +Source Host: localhost +Source Database: ffxiv_server +Target Host: localhost +Target Database: ffxiv_server +Date: 12/17/2017 3:37:44 PM +*/ + +SET FOREIGN_KEY_CHECKS=0; +-- ---------------------------- +-- Table structure for characters_inventory_bazaar +-- ---------------------------- +CREATE TABLE `characters_inventory_bazaar` ( + `id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT, + `characterId` int(10) unsigned NOT NULL DEFAULT '0', + `rewardId` bigint(10) unsigned DEFAULT NULL, + `seekId` bigint(10) unsigned DEFAULT '0', + `rewardAmount` int(11) DEFAULT '0', + `seekAmount` int(11) DEFAULT '0', + `bazaarMode` tinyint(4) unsigned NOT NULL DEFAULT '0', + `sellPrice` int(11) DEFAULT '0', + PRIMARY KEY (`id`,`characterId`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; + +-- ---------------------------- +-- Records +-- ---------------------------- diff --git a/sql/characters_inventory_equipment.sql b/sql/characters_inventory_equipment.sql index 8a87e29e..1101b439 100644 --- a/sql/characters_inventory_equipment.sql +++ b/sql/characters_inventory_equipment.sql @@ -1,52 +1,24 @@ --- MySQL dump 10.13 Distrib 5.7.10, for Win64 (x86_64) --- --- Host: localhost Database: ffxiv_database --- ------------------------------------------------------ --- Server version 5.7.10-log +/* +MySQL Data Transfer +Source Host: localhost +Source Database: ffxiv_server +Target Host: localhost +Target Database: ffxiv_server +Date: 12/17/2017 3:37:50 PM +*/ -/*!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 utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!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' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - --- --- Table structure for table `characters_inventory_equipment` --- - -DROP TABLE IF EXISTS `characters_inventory_equipment`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `characters_inventory_equipment` ( - `characterId` int(10) unsigned NOT NULL, - `classId` smallint(5) unsigned NOT NULL, - `equipSlot` smallint(5) unsigned NOT NULL, - `itemId` bigint(10) unsigned NOT NULL, - PRIMARY KEY (`characterId`,`classId`,`equipSlot`) +SET FOREIGN_KEY_CHECKS=0; +-- ---------------------------- +-- Table structure for characters_inventory_equipment +-- ---------------------------- +CREATE TABLE `characters_inventory_equipment` ( + `characterId` int(10) unsigned NOT NULL, + `classId` smallint(5) unsigned NOT NULL, + `equipSlot` smallint(5) unsigned NOT NULL, + `itemId` bigint(10) unsigned NOT NULL, + PRIMARY KEY (`characterId`,`classId`,`equipSlot`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*!40101 SET character_set_client = @saved_cs_client */; --- --- Dumping data for table `characters_inventory_equipment` --- - -LOCK TABLES `characters_inventory_equipment` WRITE; -/*!40000 ALTER TABLE `characters_inventory_equipment` DISABLE KEYS */; -/*!40000 ALTER TABLE `characters_inventory_equipment` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!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 */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2016-06-07 22:54:46 +-- ---------------------------- +-- Records +-- ---------------------------- diff --git a/sql/retainers_inventory.sql b/sql/retainers_inventory.sql index 3264da35..29b6d8e1 100644 --- a/sql/retainers_inventory.sql +++ b/sql/retainers_inventory.sql @@ -4,7 +4,7 @@ Source Host: localhost Source Database: ffxiv_server Target Host: localhost Target Database: ffxiv_server -Date: 9/9/2017 2:30:28 PM +Date: 12/17/2017 3:38:25 PM */ SET FOREIGN_KEY_CHECKS=0; @@ -14,8 +14,11 @@ SET FOREIGN_KEY_CHECKS=0; CREATE TABLE `retainers_inventory` ( `id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT, `retainerId` int(10) unsigned NOT NULL, - `inventoryType` smallint(5) unsigned NOT NULL DEFAULT '0', + `itemPackage` smallint(5) unsigned NOT NULL DEFAULT '0', `serverItemId` int(10) unsigned NOT NULL, - `quantity` int(10) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`,`retainerId`) -) ENGINE=InnoDB AUTO_INCREMENT=333 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=345 DEFAULT CHARSET=utf8; + +-- ---------------------------- +-- Records +-- ---------------------------- diff --git a/sql/server_items.sql b/sql/server_items.sql index a0cf8694..7239327f 100644 --- a/sql/server_items.sql +++ b/sql/server_items.sql @@ -4,7 +4,7 @@ Source Host: localhost Source Database: ffxiv_server Target Host: localhost Target Database: ffxiv_server -Date: 9/9/2017 2:31:34 PM +Date: 12/17/2017 3:38:35 PM */ SET FOREIGN_KEY_CHECKS=0; @@ -12,16 +12,16 @@ SET FOREIGN_KEY_CHECKS=0; -- Table structure for server_items -- ---------------------------- CREATE TABLE `server_items` ( - `id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT, + `id` bigint(20) unsigned zerofill NOT NULL AUTO_INCREMENT, `itemId` int(10) unsigned NOT NULL, - `quality` tinyint(3) unsigned NOT NULL DEFAULT '0', - `itemType` tinyint(6) unsigned NOT NULL DEFAULT '0', - `durability` int(11) NOT NULL DEFAULT '0', - `spiritbind` smallint(5) unsigned DEFAULT '0', - `materia1` tinyint(3) unsigned DEFAULT '0', - `materia2` tinyint(3) unsigned DEFAULT '0', - `materia3` tinyint(3) unsigned DEFAULT '0', - `materia4` tinyint(3) unsigned DEFAULT '0', - `materia5` tinyint(3) unsigned DEFAULT '0', + `quantity` int(10) unsigned DEFAULT '1', + `quality` tinyint(3) unsigned DEFAULT '1', + `isExclusive` tinyint(1) unsigned DEFAULT '0', + `isAttached` tinyint(1) unsigned DEFAULT '0', + `isDealing` tinyint(1) unsigned DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=1435 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=2659 DEFAULT CHARSET=utf8; + +-- ---------------------------- +-- Records +-- ---------------------------- diff --git a/sql/server_items_modifiers.sql b/sql/server_items_modifiers.sql new file mode 100644 index 00000000..49f3b29f --- /dev/null +++ b/sql/server_items_modifiers.sql @@ -0,0 +1,35 @@ +/* +MySQL Data Transfer +Source Host: localhost +Source Database: ffxiv_server +Target Host: localhost +Target Database: ffxiv_server +Date: 12/17/2017 3:38:44 PM +*/ + +SET FOREIGN_KEY_CHECKS=0; +-- ---------------------------- +-- Table structure for server_items_modifiers +-- ---------------------------- +CREATE TABLE `server_items_modifiers` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `durability` int(10) unsigned NOT NULL DEFAULT '0', + `mainQuality` tinyint(3) unsigned NOT NULL DEFAULT '1', + `subQuality1` tinyint(3) unsigned NOT NULL DEFAULT '1', + `subQuality2` tinyint(3) unsigned NOT NULL DEFAULT '1', + `subQuality3` tinyint(3) unsigned NOT NULL DEFAULT '1', + `param1` int(10) unsigned NOT NULL DEFAULT '0', + `param2` int(10) unsigned NOT NULL DEFAULT '0', + `param3` int(10) unsigned NOT NULL DEFAULT '0', + `spiritbind` smallint(5) unsigned NOT NULL DEFAULT '0', + `materia1` smallint(5) unsigned NOT NULL DEFAULT '0', + `materia2` smallint(5) unsigned NOT NULL DEFAULT '0', + `materia3` smallint(5) unsigned NOT NULL DEFAULT '0', + `materia4` smallint(5) unsigned NOT NULL DEFAULT '0', + `materia5` smallint(5) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2315 DEFAULT CHARSET=latin1; + +-- ---------------------------- +-- Records +-- ----------------------------