Add inventory changeset

This commit is contained in:
P0nk
2025-06-27 09:12:09 +02:00
parent d095179d6c
commit 38233b39c2
2 changed files with 62 additions and 0 deletions

View File

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

View File

@@ -13,4 +13,8 @@
<sqlFile path="db/002-characters.sql"/>
</changeSet>
<changeSet id="3" author="Ponk">
<sqlFile path="db/003-inventory.sql"/>
</changeSet>
</databaseChangeLog>