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