// 自动生成模板CourseSignup
package course

import (
	"courseSign/server/global"
	
)

// CourseSignup 结构体
type CourseSignup struct {
      global.GVA_MODEL
      Uid  *int `json:"uid" form:"uid" gorm:"column:uid;comment:用户;size:10;"`
      Cid  *int `json:"cid" form:"cid" gorm:"column:cid;index;comment:课程;size:10;"`
      IsPass  *bool `json:"isPass" form:"isPass" gorm:"column:is_pass;default:0;comment:通过 0 未 1 通过;"`
      IsFrozen *bool `json:"isFrozen" form:"isFrozen" gorm:"column:is_frozen;default:0;comment:通过 0 未 1 冻结;"`

      Addr string `json:"addr" form:"addr" gorm:"-"`
      CourseName string `json:"courseName" form:"courseName" gorm:"-"`

      Name  string `json:"name" form:"name" gorm:"-"`
      Age  *int `json:"age" form:"age" gorm:"-"`
      Sex  *bool `json:"sex" form:"sex" gorm:"-"`
      Phone  string `json:"phone" form:"phone" gorm:"-"`
      Photo  string `json:"photo" form:"photo" gorm:"-"`
      Company  string `json:"company" form:"company" gorm:"-"`
      Position  string `json:"position" form:"position" gorm:"-"`
}


type CourseSignupRead struct {
      global.GVA_MODEL
      Uid  *int `json:"uid" form:"uid" gorm:"column:uid;comment:用户;size:10;"`
      Cid  *int `json:"cid" form:"cid" gorm:"column:cid;comment:课程;size:10;"`
      IsPass  *bool `json:"isPass" form:"isPass" gorm:"column:is_pass;comment:通过 0 未 1 通过;"`
      Addr string `json:"addr" form:"addr" `
      CourseName string `json:"courseName" form:"courseName" `
}

// TableName CourseSignup 表名
func (CourseSignup) TableName() string {
  return "course_signup"
}

