You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
625 B

package promotion
import (
"github.com/golangkit/formatime"
)
type Information struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
Name string `gorm:"column:name" json:"name"`
StartDate formatime.Date `gorm:"column:start_date" json:"startDate"`
EndDate formatime.Date `gorm:"column:end_date" json:"endDate"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"-"`
IsSale bool `json:"-" gorm:"column:is_sale"`
}
// TableName sets the insert table name for this struct type
func (*Information) TableName() string {
return "recook_promotion_info"
}