feat(backend): license_purchases 增 amount_minor/currency/pay_url/renewed_to 列 + 存量回填(pay v2 金额口径)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-07-10 20:26:59 +08:00
parent ceabc7977b
commit bc183ab7df
6 changed files with 60 additions and 2 deletions
+4
View File
@@ -168,6 +168,10 @@ func SetupTestDB() *gorm.DB {
shop_id INTEGER NOT NULL,
user_id INTEGER NOT NULL,
product_biz_code TEXT NOT NULL,
amount_minor INTEGER NOT NULL DEFAULT 0,
currency TEXT NOT NULL DEFAULT '',
pay_url TEXT,
renewed_to DATETIME,
amount TEXT,
out_trade_no TEXT UNIQUE,
status TEXT NOT NULL DEFAULT 'pending',