Files
hi-server/internal/model/subscribe_promo/subscribe_promo.go
T
2026-05-26 22:11:02 -07:00

17 lines
679 B
Go

package subscribe_promo
import "time"
type SubscribePromo struct {
Id int64 `gorm:"type:bigint unsigned;primaryKey"`
SubscribeId int64 `gorm:"type:bigint unsigned;not null;index:uk_subscribe_rule,unique,priority:1;comment:Subscribe Id"`
PromoRuleId int64 `gorm:"type:bigint unsigned;not null;index:uk_subscribe_rule,unique,priority:2;index:idx_promo_rule_id;comment:Promo Rule Id"`
PromoPrice int64 `gorm:"type:bigint;not null;default:0;comment:Promo Price"`
CreatedAt time.Time `gorm:"<-:create;comment:Create Time"`
UpdatedAt time.Time `gorm:"comment:Update Time"`
}
func (SubscribePromo) TableName() string {
return "subscribe_promo"
}