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" }