Files
sweetgum-server/src/main/resources/db/011-shop.sql
2025-07-01 09:06:42 +02:00

17 lines
667 B
SQL

CREATE TABLE lb_shops
(
shopid INT UNSIGNED NOT NULL AUTO_INCREMENT,
npcid INT NOT NULL DEFAULT '0',
PRIMARY KEY (shopid)
);
CREATE TABLE lb_shopitems
(
shopitemid INT UNSIGNED NOT NULL AUTO_INCREMENT,
shopid INT UNSIGNED NOT NULL,
itemid INT NOT NULL,
price INT NOT NULL,
pitch INT NOT NULL DEFAULT '0',
position INT NOT NULL COMMENT 'sort is an arbitrary field designed to give leeway when modifying shops. The lowest number is 104 and it increments by 4 for each item to allow decent space for swapping/inserting/removing items.',
PRIMARY KEY (shopitemid)
)