From b6f90e9378eb356f91f60de4d044e39475dea826 Mon Sep 17 00:00:00 2001 From: Mordred Date: Sat, 7 Oct 2017 23:17:28 +0200 Subject: [PATCH] Updated DB structure --- sql/charabase.sql | 101 -------------------------------------------- sql/charadetail.sql | 88 -------------------------------------- sql/charainfo.sql | 88 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 189 deletions(-) delete mode 100644 sql/charabase.sql delete mode 100644 sql/charadetail.sql create mode 100644 sql/charainfo.sql diff --git a/sql/charabase.sql b/sql/charabase.sql deleted file mode 100644 index 3bd44d10..00000000 --- a/sql/charabase.sql +++ /dev/null @@ -1,101 +0,0 @@ --- MySQL dump 10.13 Distrib 5.7.13, for Win64 (x86_64) --- --- Host: localhost Database: sapphire --- ------------------------------------------------------ --- Server version 5.7.13-log - -/*!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 `charabase` --- - -DROP TABLE IF EXISTS `charabase`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `charabase` ( - `AccountId` int(11) NOT NULL, - `Hp` int(10) DEFAULT NULL, - `Mp` int(10) DEFAULT NULL, - `Tp` int(10) DEFAULT NULL, - `Gp` int(10) DEFAULT NULL, - `Mode` int(3) DEFAULT '0', - `Mount` int(3) DEFAULT NULL, - `Voice` int(3) DEFAULT NULL, - `Customize` binary(26) DEFAULT NULL, - `ModelMainWeapon` int(20) DEFAULT NULL, - `ModelSubWeapon` int(20) DEFAULT NULL, - `ModelSystemWeapon` int(20) DEFAULT NULL, - `ModelEquip` binary(40) DEFAULT NULL, - `EmoteModeType` int(3) DEFAULT NULL, - `CharacterId` int(20) NOT NULL DEFAULT '0', - `CharacterType` int(5) DEFAULT NULL, - `Name` varchar(32) DEFAULT NULL, - `FirstLogin` int(20) DEFAULT NULL, - `Language` int(10) DEFAULT NULL, - `IsNewGame` int(3) DEFAULT NULL, - `Invisible` int(3) DEFAULT NULL, - `InstantiationTime` int(20) DEFAULT NULL, - `PrimaryTerritoryType` int(5) DEFAULT NULL, - `PrimaryTerritoryId` int(20) DEFAULT NULL, - `Pos_0_0` float DEFAULT NULL, - `Pos_0_1` float DEFAULT NULL, - `Pos_0_2` float DEFAULT NULL, - `Pos_0_3` float DEFAULT NULL, - `PrimaryLayoutId` int(10) DEFAULT NULL, - `PrimaryExclusiveId` int(10) DEFAULT NULL, - `PrimaryMoveType` int(3) DEFAULT NULL, - `PrimaryContentId` int(10) DEFAULT NULL, - `SecondaryTerritoryType` int(5) DEFAULT NULL, - `SecondaryTerritoryId` int(20) DEFAULT NULL, - `Pos_1_0` float DEFAULT NULL, - `Pos_1_1` float DEFAULT NULL, - `Pos_1_2` float DEFAULT NULL, - `Pos_1_3` float DEFAULT NULL, - `SecondaryLayoutId` int(10) DEFAULT NULL, - `Effectiveness` int(3) DEFAULT NULL, - `Update` int(10) DEFAULT NULL, - `Pos_0` float DEFAULT NULL, - `Pos_1` float DEFAULT NULL, - `Pos_2` float DEFAULT NULL, - `Pos_3` float DEFAULT NULL, - `ContentId` bigint(20) DEFAULT NULL, - `IsNewAdventurer` int(1) NOT NULL DEFAULT '1', - `IS_DELETE` int(3) DEFAULT '0', - `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', - `UPDATE_DATE` datetime DEFAULT NULL, - PRIMARY KEY (`CharacterId`), - KEY `ContentId` (`ContentId`), - KEY `Name` (`Name`), - KEY `AccountId` (`AccountId`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `charabase` --- - -LOCK TABLES `charabase` WRITE; -/*!40000 ALTER TABLE `charabase` DISABLE KEYS */; -/*!40000 ALTER TABLE `charabase` 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-12-09 17:37:07 diff --git a/sql/charadetail.sql b/sql/charadetail.sql deleted file mode 100644 index 05ed0de0..00000000 --- a/sql/charadetail.sql +++ /dev/null @@ -1,88 +0,0 @@ --- -------------------------------------------------------- --- Host: 127.0.0.1 --- Server version: 10.1.24-MariaDB - mariadb.org binary distribution --- Server OS: Win32 --- 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 sapphire.charadetail -CREATE TABLE IF NOT EXISTS `charadetail` ( - `GuardianDeity` int(3) DEFAULT NULL, - `BirthDay` int(3) DEFAULT NULL, - `BirthMonth` int(3) NOT NULL, - `Class` int(3) DEFAULT NULL, - `MakeValid` int(3) DEFAULT NULL, - `RetainerId` int(20) DEFAULT NULL, - `RetainerName` varchar(32) DEFAULT NULL, - `CreateUnixTime` int(20) DEFAULT NULL, - `IsActive` int(3) DEFAULT NULL, - `IsRename` int(3) DEFAULT NULL, - `Status` int(3) DEFAULT NULL, - `Platform` varchar(32) DEFAULT NULL, - `TotalPlayTime` int(10) DEFAULT '0', - `TotalPlayTimeSecond` float DEFAULT NULL, - `FirstClass` int(3) DEFAULT NULL, - `HomePoint` int(3) DEFAULT NULL, - `FavoritePoint` binary(3) DEFAULT NULL, - `RestPoint` int(10) DEFAULT NULL, - `RentalTimer` float DEFAULT NULL, - `StartTown` int(3) DEFAULT NULL, - `ActiveTitle` int(5) DEFAULT NULL, - `TitleList` binary(32) DEFAULT NULL, - `Achievement` binary(16) DEFAULT NULL, - `Aetheryte` binary(16) DEFAULT NULL, - `HowTo` binary(33) DEFAULT NULL, - `Minions` binary(33) DEFAULT NULL, - `Mounts` binary(13) DEFAULT NULL, - `EquippedMannequin` int(5) DEFAULT NULL, - `ConfigFlags` smallint(5) NOT NULL DEFAULT '0', - `GatheringHistoryPointId` binary(8) DEFAULT NULL, - `GatheringDivisionOpenFla` binary(40) DEFAULT NULL, - `GatheringItemGetFlags` binary(60) DEFAULT NULL, - `RecipeDivisionOpenFlags` binary(80) DEFAULT NULL, - `RecipeCreateFlags` binary(100) DEFAULT NULL, - `QuestCompleteFlags` binary(200) DEFAULT NULL, - `LeveCompleteFlags` binary(200) DEFAULT NULL, - `OpeningSequence` int(3) DEFAULT '0', - `QuestTracking` binary(10) DEFAULT NULL, - `LeveTicketNum` int(3) DEFAULT NULL, - `LeveTicketLastGetTime` int(10) DEFAULT NULL, - `GuildleveAssignmentSeed` int(5) DEFAULT NULL, - `GuildleveAssignmentCount` int(3) DEFAULT NULL, - `GuildleveFactionCreditBr` int(5) DEFAULT NULL, - `GuildleveFactionCreditAz` int(5) DEFAULT NULL, - `GuildleveFactionCreditHo` int(5) DEFAULT NULL, - `GrandCompany` int(3) DEFAULT NULL, - `GrandCompanyRank` binary(3) DEFAULT NULL, - `Discovery` blob, - `ContentRetryTime` blob, - `ContentJoinTime` int(10) DEFAULT NULL, - `ContentClearFlag` blob, - `CFPenaltyUntil` int(10) unsigned NOT NULL DEFAULT '0', - `TownWarpFstFlags` binary(2) DEFAULT NULL, - `PathId` int(10) DEFAULT NULL, - `StepIndex` int(5) DEFAULT NULL, - `ChocoboTaxiStandFlags` binary(8) DEFAULT NULL, - `GMRank` int(3) DEFAULT '0', - `unlocks` binary(64) DEFAULT NULL, - `CharacterId` int(20) NOT NULL DEFAULT '0', - `IS_DELETE` int(3) DEFAULT '0', - `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', - `UPDATE_DATE` datetime DEFAULT NULL, - PRIMARY KEY (`CharacterId`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- Dumping data for table sapphire.charadetail: 0 rows -DELETE FROM `charadetail`; -/*!40000 ALTER TABLE `charadetail` DISABLE KEYS */; -/*!40000 ALTER TABLE `charadetail` 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 */; diff --git a/sql/charainfo.sql b/sql/charainfo.sql new file mode 100644 index 00000000..3267207a --- /dev/null +++ b/sql/charainfo.sql @@ -0,0 +1,88 @@ +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 10.1.24-MariaDB - mariadb.org binary distribution +-- Server OS: Win32 +-- 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' */; + +CREATE TABLE `charainfo` ( + `AccountId` int(11) NOT NULL, + `CharacterId` decimal(20,0) NOT NULL, + `ContentId` bigint(20) DEFAULT NULL, + `Name` varchar(32) COLLATE latin1_general_ci DEFAULT NULL, + `Hp` bigint(20) DEFAULT '200', + `Mp` bigint(20) DEFAULT '200', + `Tp` bigint(20) DEFAULT '0', + `Gp` bigint(20) DEFAULT '0', + `Mode` smallint(6) DEFAULT '0', + `Mount` smallint(6) DEFAULT '0', + `InvincibleGM` smallint(6) DEFAULT '0', + `Voice` smallint(6) DEFAULT '0', + `Customize` binary(26) DEFAULT NULL, + `ModelMainWeapon` decimal(20,0) DEFAULT '0', + `ModelSubWeapon` decimal(20,0) DEFAULT '0', + `ModelSystemWeapon` decimal(20,0) DEFAULT '0', + `ModelEquip` binary(40) DEFAULT NULL, + `EmoteModeType` smallint(6) DEFAULT '0', + `FirstLoginTime` decimal(20,0) DEFAULT '0', + `Language` bigint(20) DEFAULT '0', + `IsNewGame` smallint(6) DEFAULT '1', + `IsNewAdventurer` int(1) NOT NULL DEFAULT '1', + `TerritoryType` int(11) DEFAULT '0', + `TerritoryId` decimal(20,0) DEFAULT '0', + `PosX` float DEFAULT '0', + `PosY` float DEFAULT '0', + `PosZ` float DEFAULT '0', + `PosR` float DEFAULT '0', + `OTerritoryType` int(11) DEFAULT '0', + `OTerritoryId` decimal(20,0) DEFAULT '0', + `OPosX` float DEFAULT '0', + `OPosY` float DEFAULT '0', + `OPosZ` float DEFAULT '0', + `OPosR` float DEFAULT '0', + `GuardianDeity` int(3) DEFAULT '0', + `BirthDay` int(3) DEFAULT '0', + `BirthMonth` int(3) DEFAULT '0', + `Class` int(3) DEFAULT '0', + `Status` int(3) DEFAULT '0', + `TotalPlayTime` int(10) DEFAULT '0', + `FirstClass` int(3) DEFAULT '0', + `HomePoint` int(3) DEFAULT '0', + `FavoritePoint` binary(3) DEFAULT NULL, + `RestPoint` int(10) DEFAULT '0', + `StartTown` int(3) DEFAULT '0', + `ActiveTitle` int(5) DEFAULT '0', + `TitleList` binary(32) DEFAULT NULL, + `Achievement` binary(16) DEFAULT NULL, + `Aetheryte` binary(16) DEFAULT NULL, + `HowTo` binary(33) DEFAULT NULL, + `Minions` binary(33) DEFAULT NULL, + `Mounts` binary(13) DEFAULT NULL, + `EquippedMannequin` int(5) DEFAULT '0', + `ConfigFlags` smallint(5) NOT NULL DEFAULT '0', + `QuestCompleteFlags` binary(200) DEFAULT NULL, + `OpeningSequence` int(3) DEFAULT '0', + `QuestTracking` binary(10) DEFAULT NULL, + `GrandCompany` int(3) DEFAULT '0', + `GrandCompanyRank` binary(3) DEFAULT NULL, + `Discovery` blob, + `GMRank` int(3) DEFAULT '0', + `Unlocks` binary(64) DEFAULT NULL, + `CFPenaltyUntil` int(11) DEFAULT NULL, + `UPDATE_DATE` datetime DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- Dumping data for table sapphire.charainfo: 0 rows +DELETE FROM `charainfo`; +/*!40000 ALTER TABLE `charainfo` DISABLE KEYS */; +/*!40000 ALTER TABLE `charainfo` 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 */;