From 38233b39c2be5739df30570a55b3ead76363ed8c Mon Sep 17 00:00:00 2001 From: P0nk Date: Fri, 27 Jun 2025 09:12:09 +0200 Subject: [PATCH] Add inventory changeset --- src/main/resources/db/003-inventory.sql | 58 +++++++++++++++++++++++++ src/main/resources/db/changelog.xml | 4 ++ 2 files changed, 62 insertions(+) create mode 100644 src/main/resources/db/003-inventory.sql diff --git a/src/main/resources/db/003-inventory.sql b/src/main/resources/db/003-inventory.sql new file mode 100644 index 0000000000..ca99db459e --- /dev/null +++ b/src/main/resources/db/003-inventory.sql @@ -0,0 +1,58 @@ +CREATE TABLE lb_inventoryitems +( + inventoryitemid INT UNSIGNED NOT NULL AUTO_INCREMENT, + type TINYINT UNSIGNED NOT NULL, + characterid INT DEFAULT NULL, + accountid INT DEFAULT NULL, + itemid INT NOT NULL DEFAULT '0', + inventorytype INT NOT NULL DEFAULT '0', + position INT NOT NULL DEFAULT '0', + quantity INT NOT NULL DEFAULT '0', + owner TINYTEXT NOT NULL, + petid INT NOT NULL DEFAULT '-1', + flag INT NOT NULL, + expiration BIGINT NOT NULL DEFAULT '-1', + giftFrom VARCHAR(26) NOT NULL, + PRIMARY KEY (inventoryitemid), + KEY CHARID (characterid) +); + +CREATE TABLE lb_inventoryequipment +( + inventoryequipmentid INT UNSIGNED NOT NULL AUTO_INCREMENT, + inventoryitemid INT UNSIGNED NOT NULL DEFAULT '0', + upgradeslots INT NOT NULL DEFAULT '0', + level INT NOT NULL DEFAULT '0', + str INT NOT NULL DEFAULT '0', + dex INT NOT NULL DEFAULT '0', + `int` INT NOT NULL DEFAULT '0', + luk INT NOT NULL DEFAULT '0', + hp INT NOT NULL DEFAULT '0', + mp INT NOT NULL DEFAULT '0', + watk INT NOT NULL DEFAULT '0', + matk INT NOT NULL DEFAULT '0', + wdef INT NOT NULL DEFAULT '0', + mdef INT NOT NULL DEFAULT '0', + acc INT NOT NULL DEFAULT '0', + avoid INT NOT NULL DEFAULT '0', + hands INT NOT NULL DEFAULT '0', + speed INT NOT NULL DEFAULT '0', + jump INT NOT NULL DEFAULT '0', + locked INT NOT NULL DEFAULT '0', + vicious INT UNSIGNED NOT NULL DEFAULT '0', + itemlevel INT NOT NULL DEFAULT '1', + itemexp INT UNSIGNED NOT NULL DEFAULT '0', + ringid INT NOT NULL DEFAULT '-1', + PRIMARY KEY (inventoryequipmentid), + KEY INVENTORYITEMID (inventoryitemid) +); + +CREATE TABLE lb_inventorymerchant +( + inventorymerchantid INT UNSIGNED NOT NULL AUTO_INCREMENT, + inventoryitemid INT UNSIGNED NOT NULL DEFAULT '0', + characterid INT DEFAULT NULL, + bundles INT NOT NULL DEFAULT '0', + PRIMARY KEY (inventorymerchantid), + KEY INVENTORYITEMID (inventoryitemid) +); \ No newline at end of file diff --git a/src/main/resources/db/changelog.xml b/src/main/resources/db/changelog.xml index 0efb01c572..47c07d6f84 100644 --- a/src/main/resources/db/changelog.xml +++ b/src/main/resources/db/changelog.xml @@ -13,4 +13,8 @@ + + + + \ No newline at end of file