From 503c76ed3486710a78eb808751aa00aab26a79e6 Mon Sep 17 00:00:00 2001 From: P0nk Date: Mon, 30 Jun 2025 22:09:59 +0200 Subject: [PATCH] Add cash shop changeset --- src/main/resources/db/013-cash-shop.sql | 46 +++++++++++++++++++++++++ src/main/resources/db/changelog.xml | 4 +++ 2 files changed, 50 insertions(+) create mode 100644 src/main/resources/db/013-cash-shop.sql diff --git a/src/main/resources/db/013-cash-shop.sql b/src/main/resources/db/013-cash-shop.sql new file mode 100644 index 0000000000..d7631d655c --- /dev/null +++ b/src/main/resources/db/013-cash-shop.sql @@ -0,0 +1,46 @@ +CREATE TABLE lb_wishlists +( + id INT NOT NULL AUTO_INCREMENT, + charid INT NOT NULL, + sn INT NOT NULL, + PRIMARY KEY (id) +); + +CREATE TABLE lb_specialcashitems +( + id INT NOT NULL, + sn INT NOT NULL, + modifier INT NOT NULL COMMENT '1024 is add/remove', + info INT NOT NULL, + PRIMARY KEY (id) +); + +CREATE TABLE lb_nxcode +( + id INT NOT NULL AUTO_INCREMENT, + code VARCHAR(17) NOT NULL UNIQUE, + retriever VARCHAR(13) DEFAULT NULL, + expiration BIGINT UNSIGNED NOT NULL DEFAULT '0', + PRIMARY KEY (id) +); + +CREATE TABLE lb_nxcode_items +( + id INT NOT NULL AUTO_INCREMENT, + codeid INT NOT NULL, + type INT NOT NULL DEFAULT '5', + item INT NOT NULL DEFAULT '4000000', + quantity INT NOT NULL DEFAULT '1', + PRIMARY KEY (id) +); + +CREATE TABLE lb_nxcoupons +( + id INT NOT NULL AUTO_INCREMENT, + couponid INT NOT NULL DEFAULT '0', + rate INT NOT NULL DEFAULT '0', + activeday INT NOT NULL DEFAULT '0', + starthour INT NOT NULL DEFAULT '0', + endhour INT NOT NULL DEFAULT '0', + PRIMARY KEY (id) +) \ No newline at end of file diff --git a/src/main/resources/db/changelog.xml b/src/main/resources/db/changelog.xml index 1e8d5f895e..f2d6c907cc 100644 --- a/src/main/resources/db/changelog.xml +++ b/src/main/resources/db/changelog.xml @@ -53,4 +53,8 @@ + + + + \ No newline at end of file