// 自动生成模板CourseUsers
package course

import (
	"courseSign/server/global"
	
)

// CourseUsers 结构体
type CourseUsers struct {
      global.GVA_MODEL
      Address  string `json:"address" form:"address" gorm:"column:address;unique;comment:地址;size:72;"`
      Name  string `json:"name" form:"name" gorm:"column:name;comment:姓名;size:36;"`
      Age  *int `json:"age" form:"age" gorm:"column:age;comment:年龄;size:10;"`
      Sex  *bool `json:"sex" form:"sex" gorm:"column:sex;comment:性别 0 女性 1 男性;"`
      Phone  string `json:"phone" form:"phone" gorm:"column:phone;comment:电话;size:36;"`
      Photo  string `json:"photo" form:"photo" gorm:"column:photo;comment:头像;size:128;"`
      Company  string `json:"company" form:"company" gorm:"column:company;comment:公司;size:128;"`
      Position  string `json:"position" form:"position" gorm:"column:position;comment:职务;size:36;"`
      Invitor  string `json:"invitor" form:"invitor" gorm:"column:invitor;comment:邀请者;size:72;"`
      IsAdmin  *bool `json:"isAdmin" form:"isAdmin" gorm:"column:is_admin;default:0;comment:管理员;size:72;"`
      Number  int `json:"number" form:"number" gorm:"column:number;comment:学号;"`

      // CourseSignup `gorm:"foreignKey:Uid"`
      // CourseActionUsers `gorm:"foreignKey:Uid"`
      DeviceCode string `json:"deviceCode" form:"deviceCode" gorm:"-"`
}


// TableName CourseUsers 表名
func (CourseUsers) TableName() string {
  return "course_users"
}


type ResponseDeviceCode struct {
      Code string
      IsSign bool
}