feat: add account point rewards and extended item storage

Implement configurable kill rewards with account-wide daily limits, transactional deduplication, and game-to-db retries. Add the approved wide rules and tested isolation tooling.

Stage wear40 equipment and persistent extra item metadata with an explicit migration plan and client revision gate. Track all 168 remaining offers; sixteen have staged data/assets, while live acceptance and other systems remain incomplete. This commit is not a production deployment.
This commit is contained in:
shen
2026-10-19 18:30:19 -07:00
parent 275c7e5211
commit 65db9fc365
31 changed files with 1965 additions and 26 deletions
+7
View File
@@ -22,6 +22,13 @@ CREATE TABLE IF NOT EXISTS port_itemshop_orders (
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY request_once(account_id,token), KEY limits_by_account(account_id,product,created_at)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS port_point_rewards (
token CHAR(32) CHARACTER SET ascii COLLATE ascii_bin PRIMARY KEY,
account_id INT UNSIGNED NOT NULL,player_id INT UNSIGNED NOT NULL,vnum INT UNSIGNED NOT NULL,
requested INT UNSIGNED NOT NULL,amount INT UNSIGNED NOT NULL,reward_day DATE NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
KEY daily_account(account_id,reward_day)
) ENGINE=InnoDB;
ALTER TABLE ishop_data ENGINE=InnoDB;
ALTER TABLE item_award ENGINE=InnoDB;
ALTER TABLE `{a.account}`.account ENGINE=InnoDB;