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.

16 lines
502 B

4 years ago
package user
import "github.com/golangkit/formatime"
type TopCode struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
Code string `gorm:"column:code" json:"code"`
CreatedTime formatime.Second `gorm:"column:created_time" json:"createdTime"`
EndTime formatime.Second `gorm:"column:end_time" json:"endTime"`
UserId uint `gorm:"column:user_id" json:"userId"`
}
func (r *TopCode) TableName() string {
return "recook_user_top_code"
}