Configure Balance Guard for eligible accounts; exclude official accounts

This commit is contained in:
unimatrixgit 2026-11-13 21:28:17 +01:00
commit b96a2b6c93

View file

@ -65,3 +65,10 @@ CREATE TABLE IF NOT EXISTS pb_package_changes (
to_key VARCHAR(32) NOT NULL, created_at BIGINT NOT NULL,
FOREIGN KEY(entity_id) REFERENCES pb_entities(id), FOREIGN KEY(package_id) REFERENCES pb_packages(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS pb_account_options (
account_id BIGINT UNSIGNED PRIMARY KEY, balance_guard INT NOT NULL DEFAULT 0,
monthly_minor BIGINT NOT NULL DEFAULT 0, accepted_by CHAR(36) NOT NULL,
terms_version VARCHAR(64) NOT NULL, updated_at BIGINT NOT NULL,
FOREIGN KEY(account_id) REFERENCES pb_accounts(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;