// 自动生成模板CourseAction
package course

import (
	"time"

	"courseSign/server/global"
)

// CourseAction 结构体
type CourseAction struct {
      global.GVA_MODEL
      Cid  *int `json:"cid" form:"cid" gorm:"column:cid;comment:课程;size:10;"`
      ActionBanner  string `json:"actionBanner" form:"actionBanner" gorm:"column:action_banner;NOT NULL;comment:活动图;size:128;"`
      ActionName  string `json:"actionName" form:"actionName" gorm:"column:action_name;NOT NULL;comment:活动名称;size:128;"`
      ActionStart  *time.Time `json:"actionStart" form:"actionStart" gorm:"column:action_start;NOT NULL;comment:活动开始时间;"`
      ActionEnd  *time.Time `json:"actionEnd" form:"actionEnd" gorm:"column:action_end;NOT NULL;comment:活动结束时间;"`
      IsShow  *bool `json:"isShow" form:"isShow" gorm:"column:is_show;comment:上下线;"`
      Qr  string `json:"qr" form:"qr" gorm:"column:qr;comment:二维码;size:128;"`
}


// TableName CourseAction 表名
func (CourseAction) TableName() string {
  return "course_action"
}