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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user