Files
hi-server/internal/model/recovery/orderRecoveryClaim.go
T
shanshanzhong147 54daa923da
Build docker and publish / build (20.15.1) (push) Has been cancelled
补单逻辑
2026-05-06 04:59:04 -07:00

21 lines
992 B
Go

package recovery
import "time"
type OrderRecoveryClaim struct {
Id int64 `gorm:"primaryKey"`
OrderNo string `gorm:"type:varchar(255);not null;uniqueIndex:idx_order_recovery_claim_order_no;comment:Recovered Order No"`
Email string `gorm:"type:varchar(255);not null;index:idx_order_recovery_claim_email;comment:Claim Email"`
UserId int64 `gorm:"type:bigint;not null;default:0;comment:User ID"`
SubscribeId int64 `gorm:"type:bigint;not null;default:0;comment:Subscribe ID"`
OrderId int64 `gorm:"type:bigint;not null;default:0;comment:Recovered Order ID"`
UserSubscribeId int64 `gorm:"type:bigint;not null;default:0;comment:User Subscribe ID"`
ClaimedAt time.Time `gorm:"comment:Claimed Time"`
CreatedAt time.Time `gorm:"<-:create;comment:Creation Time"`
UpdatedAt time.Time `gorm:"comment:Update Time"`
}
func (OrderRecoveryClaim) TableName() string {
return "order_recovery_claims"
}