feat: auto grant one-time low balance gift for new users

This commit is contained in:
john
2026-06-30 20:39:46 +08:00
parent ae6eaf8c3e
commit 9c653e9b16
4 changed files with 232 additions and 9 deletions
+2
View File
@@ -11,6 +11,8 @@ CREATE TABLE IF NOT EXISTS h5_users (
status ENUM('active', 'suspended', 'disabled') NOT NULL DEFAULT 'active',
plan_type VARCHAR(32) NOT NULL DEFAULT 'free',
workspace_root VARCHAR(512) NOT NULL,
low_balance_gift_eligible TINYINT(1) NOT NULL DEFAULT 0,
low_balance_gift_granted_at BIGINT NULL,
created_at BIGINT NOT NULL,
updated_at BIGINT NOT NULL,
UNIQUE KEY uq_h5_users_slug (slug),