18 lines
703 B
Go
18 lines
703 B
Go
package app
|
|
|
|
import "git.echol.cn/loser/lckt/global"
|
|
|
|
type UserTeacherVip struct {
|
|
global.GVA_MODEL
|
|
UserId uint `gorm:"column:user_id;comment:用户ID;NOT NULL" json:"user_id"`
|
|
TeacherId uint `gorm:"column:teacher_id;comment:讲师ID;NOT NULL" json:"teacher_id"`
|
|
TeacherVipId uint `gorm:"column:teacher_vip_id;comment:讲师VIP ID;NOT NULL" json:"teacher_vip_id"`
|
|
ExpireAt string `gorm:"column:expire_at;comment:到期时间;NOT NULL" json:"expire_at"`
|
|
//是否过期
|
|
IsExpire int `gorm:"column:is_expire;type:int(11);default:1;comment:是否过期 |1 未过期|2 已过期;NOT NULL" json:"is_expire"`
|
|
}
|
|
|
|
func (UserTeacherVip) TableName() string {
|
|
return "user_teacher_vip"
|
|
}
|