From 3443dad24760e21947c2d11cb6e3d021eed38122 Mon Sep 17 00:00:00 2001 From: AriAvery <41122212+AriAvery@users.noreply.github.com> Date: Fri, 16 Nov 2018 12:16:08 +0100 Subject: [PATCH 1/3] sql tables --- sql/house.sql | 15 +++++++++++++++ sql/housepartsitem.sql | 9 +++++++++ sql/housepartsstorage.sql | 18 ++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 sql/house.sql create mode 100644 sql/housepartsitem.sql create mode 100644 sql/housepartsstorage.sql diff --git a/sql/house.sql b/sql/house.sql new file mode 100644 index 00000000..fd215003 --- /dev/null +++ b/sql/house.sql @@ -0,0 +1,15 @@ +CREATE TABLE `house` ( + `LandSetId` INT UNSIGNED NULL, + `HouseId` INT UNSIGNED NOT NULL AUTO_INCREMENT, + `BuildTime` BIGINT NULL, + `Aetheryte` SMALLINT NULL, + `Welcome` SMALLINT NULL, + `Comment` binary(193) DEFAULT "", + `Endorsements` BIGINT NULL, + UPDATE_DATE DATETIME NULL, + PRIMARY KEY(`HouseId`) +) +COLLATE='latin1_swedish_ci' +ENGINE=InnoDB; + +ALTER TABLE house AUTO_INCREMENT=1; \ No newline at end of file diff --git a/sql/housepartsitem.sql b/sql/housepartsitem.sql new file mode 100644 index 00000000..1c9be8f1 --- /dev/null +++ b/sql/housepartsitem.sql @@ -0,0 +1,9 @@ +CREATE TABLE `housepartsitem` ( + `HouseId` INT UNSIGNED NULL, + `ItemId` INT UNSIGNED NULL, + `CharacterId` INT UNSIGNED NULL, + `Color` INT UNSIGNED DEFAULT '0', + `UPDATE_DATE` DATETIME NULL +) +COLLATE='latin1_swedish_ci' +ENGINE=InnoDB; \ No newline at end of file diff --git a/sql/housepartsstorage.sql b/sql/housepartsstorage.sql new file mode 100644 index 00000000..6b4e1348 --- /dev/null +++ b/sql/housepartsstorage.sql @@ -0,0 +1,18 @@ +CREATE TABLE `housepartsstorage` ( + `LandSetId` INT UNSIGNED NULL, + `HouseId` INT UNSIGNED NULL, + `StorageId` BIGINT, + `Type` INT NULL, + `Index` INT NULL, + `Container_0` INT UNSIGNED DEFAULT '0', + `Container_1` INT UNSIGNED DEFAULT '0', + `Container_2` INT UNSIGNED DEFAULT '0', + `Container_3` INT UNSIGNED DEFAULT '0', + `Container_4` INT UNSIGNED DEFAULT '0', + `Container_5` INT UNSIGNED DEFAULT '0', + `Container_6` INT UNSIGNED DEFAULT '0', + `Container_7` INT UNSIGNED DEFAULT '0', + `UPDATE_DATE` DATETIME NULL +) +COLLATE='latin1_swedish_ci' +ENGINE=InnoDB; \ No newline at end of file From c21d9fd9e7f8e05bffe0fd1fa0d70c06313eb795 Mon Sep 17 00:00:00 2001 From: XeAri Date: Fri, 16 Nov 2018 12:17:32 +0100 Subject: [PATCH 2/3] Update house.sql --- sql/house.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/house.sql b/sql/house.sql index fd215003..a779a3ad 100644 --- a/sql/house.sql +++ b/sql/house.sql @@ -7,9 +7,9 @@ CREATE TABLE `house` ( `Comment` binary(193) DEFAULT "", `Endorsements` BIGINT NULL, UPDATE_DATE DATETIME NULL, - PRIMARY KEY(`HouseId`) + PRIMARY KEY(`HouseId`) ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB; -ALTER TABLE house AUTO_INCREMENT=1; \ No newline at end of file +ALTER TABLE house AUTO_INCREMENT=1; From 664ccf2434c2fcae5a4ef4cfd456026e4b524edc Mon Sep 17 00:00:00 2001 From: XeAri Date: Fri, 16 Nov 2018 12:17:42 +0100 Subject: [PATCH 3/3] Update house.sql --- sql/house.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/house.sql b/sql/house.sql index a779a3ad..716e1c20 100644 --- a/sql/house.sql +++ b/sql/house.sql @@ -7,7 +7,7 @@ CREATE TABLE `house` ( `Comment` binary(193) DEFAULT "", `Endorsements` BIGINT NULL, UPDATE_DATE DATETIME NULL, - PRIMARY KEY(`HouseId`) + PRIMARY KEY(`HouseId`) ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB;