package model import "time" // OrphanPayment 到账但不匹配任何 attempt 的转账(对账发现,供人工核对/退款)。 // tx_id 唯一 → 重复扫描幂等 no-op。canonical pangolin-pay orphan_payments 的 v2 对应物。 type OrphanPayment struct { Base Channel string `gorm:"index;size:32;not null"` AccountID string `gorm:"index;size:64"` TxID string `gorm:"uniqueIndex;size:128;not null"` AmountMinor int64 `gorm:"not null"` Currency string `gorm:"size:16;not null"` DetectedAt time.Time Note string `gorm:"size:255"` }