Changed id datatype for items to bigint. Removed bazaar and retainer inventories (now all in the characters_inventory table). Added server_items_dealing table for bazaar.

This commit is contained in:
Filip Maj 2019-06-06 01:50:15 -04:00
parent c286df6a91
commit fea8638775
7 changed files with 123 additions and 143 deletions

View file

@ -1,27 +1,25 @@
/*
MySQL Data Transfer
Source Host: localhost
Source Database: ffxiv_server
Target Host: localhost
Target Database: ffxiv_server
Date: 12/17/2017 3:38:35 PM
*/
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.6.17 - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 10.1.0.5464
-- --------------------------------------------------------
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for server_items
-- ----------------------------
CREATE TABLE `server_items` (
`id` bigint(20) unsigned zerofill NOT NULL AUTO_INCREMENT,
`itemId` int(10) unsigned NOT NULL,
`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=1 DEFAULT CHARSET=utf8;
/*!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' */;
-- ----------------------------
-- Records
-- ----------------------------
-- Dumping structure for table ffxiv_server.server_items
CREATE TABLE IF NOT EXISTS `server_items` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`itemId` int(10) unsigned NOT NULL,
`quantity` int(10) unsigned NOT NULL DEFAULT '0',
`quality` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8;
/*!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 */;