package user import ( "github.com/golangkit/formatime" "github.com/shopspring/decimal" ) type RecookUserBenefit struct { ID int64 `gorm:"column:id" json:"id"` UserId uint `gorm:"column:user_id" json:"userId"` Period formatime.Date `gorm:"column:period" json:"period"` Percent decimal.Decimal `gorm:"column:percent" json:"percent"` Amount decimal.Decimal `gorm:"column:amount" json:"amount"` Income decimal.Decimal `gorm:"column:income" json:"income"` CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"` } // TableName sets the insert table name for this struct type func (r *RecookUserBenefit) TableName() string { return "recook_user_benefit" }