This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user