// 自动生成模板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;"`
      ActionDesc  string `json:"actionDesc" form:"actionDesc" gorm:"column:action_desc;type:text;comment:活动描述;;"`
      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;"`

      IsSign bool `json:"isSign" form:"isSign" gorm:"-"`
      SignDate  *time.Time `json:"signDate" form:"signDate" gorm:"-"`
      Address string `json:"address" form:"address" gorm:"-"`
}


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