SQL Files for new inventory.

This commit is contained in:
Filip Maj 2018-04-07 14:30:17 -04:00
parent 29e3f61b6b
commit 8aeaee1b19
6 changed files with 111 additions and 71 deletions

View File

@ -4,7 +4,7 @@ Source Host: localhost
Source Database: ffxiv_server Source Database: ffxiv_server
Target Host: localhost Target Host: localhost
Target Database: ffxiv_server 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; SET FOREIGN_KEY_CHECKS=0;
@ -12,10 +12,12 @@ SET FOREIGN_KEY_CHECKS=0;
-- Table structure for characters_inventory -- Table structure for characters_inventory
-- ---------------------------- -- ----------------------------
CREATE TABLE `characters_inventory` ( CREATE TABLE `characters_inventory` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`characterId` int(10) unsigned NOT NULL, `characterId` int(10) unsigned NOT NULL,
`inventoryType` smallint(5) unsigned NOT NULL DEFAULT '0',
`serverItemId` int(10) unsigned NOT NULL, `serverItemId` int(10) unsigned NOT NULL,
`quantity` int(10) unsigned NOT NULL DEFAULT '1', `itemPackage` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`,`characterId`) PRIMARY KEY (`characterId`,`serverItemId`,`itemPackage`)
) ENGINE=InnoDB AUTO_INCREMENT=325 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records
-- ----------------------------

View File

@ -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
-- ----------------------------

View File

@ -1,27 +1,16 @@
-- MySQL dump 10.13 Distrib 5.7.10, for Win64 (x86_64) /*
-- MySQL Data Transfer
-- Host: localhost Database: ffxiv_database Source Host: localhost
-- ------------------------------------------------------ Source Database: ffxiv_server
-- Server version 5.7.10-log Target Host: localhost
Target Database: ffxiv_server
Date: 12/17/2017 3:37:50 PM
*/
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; SET FOREIGN_KEY_CHECKS=0;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -- ----------------------------
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -- Table structure for characters_inventory_equipment
/*!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` ( CREATE TABLE `characters_inventory_equipment` (
`characterId` int(10) unsigned NOT NULL, `characterId` int(10) unsigned NOT NULL,
`classId` smallint(5) unsigned NOT NULL, `classId` smallint(5) unsigned NOT NULL,
@ -29,24 +18,7 @@ CREATE TABLE `characters_inventory_equipment` (
`itemId` bigint(10) unsigned NOT NULL, `itemId` bigint(10) unsigned NOT NULL,
PRIMARY KEY (`characterId`,`classId`,`equipSlot`) PRIMARY KEY (`characterId`,`classId`,`equipSlot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
-- -- ----------------------------
-- Dumping data for table `characters_inventory_equipment` -- Records
-- -- ----------------------------
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

View File

@ -4,7 +4,7 @@ Source Host: localhost
Source Database: ffxiv_server Source Database: ffxiv_server
Target Host: localhost Target Host: localhost
Target Database: ffxiv_server 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; SET FOREIGN_KEY_CHECKS=0;
@ -14,8 +14,11 @@ SET FOREIGN_KEY_CHECKS=0;
CREATE TABLE `retainers_inventory` ( CREATE TABLE `retainers_inventory` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT, `id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`retainerId` int(10) unsigned NOT NULL, `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, `serverItemId` int(10) unsigned NOT NULL,
`quantity` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`,`retainerId`) PRIMARY KEY (`id`,`retainerId`)
) ENGINE=InnoDB AUTO_INCREMENT=333 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=345 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records
-- ----------------------------

View File

@ -4,7 +4,7 @@ Source Host: localhost
Source Database: ffxiv_server Source Database: ffxiv_server
Target Host: localhost Target Host: localhost
Target Database: ffxiv_server 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; SET FOREIGN_KEY_CHECKS=0;
@ -12,16 +12,16 @@ SET FOREIGN_KEY_CHECKS=0;
-- Table structure for server_items -- Table structure for server_items
-- ---------------------------- -- ----------------------------
CREATE TABLE `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, `itemId` int(10) unsigned NOT NULL,
`quality` tinyint(3) unsigned NOT NULL DEFAULT '0', `quantity` int(10) unsigned DEFAULT '1',
`itemType` tinyint(6) unsigned NOT NULL DEFAULT '0', `quality` tinyint(3) unsigned DEFAULT '1',
`durability` int(11) NOT NULL DEFAULT '0', `isExclusive` tinyint(1) unsigned DEFAULT '0',
`spiritbind` smallint(5) unsigned DEFAULT '0', `isAttached` tinyint(1) unsigned DEFAULT '0',
`materia1` tinyint(3) unsigned DEFAULT '0', `isDealing` tinyint(1) 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',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1435 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=2659 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records
-- ----------------------------

View File

@ -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
-- ----------------------------