14 lines
327 B
Go
14 lines
327 B
Go
package app
|
|
|
|
import "git.echol.cn/loser/lckt/global"
|
|
|
|
type Follow struct {
|
|
global.GVA_MODEL
|
|
UserId uint `json:"userId" gorm:"comment:用户ID;uniqueIndex:idx_user_teacher"`
|
|
TeacherId uint `json:"teacherId" gorm:"comment:讲师ID;uniqueIndex:idx_user_teacher"`
|
|
}
|
|
|
|
func (Follow) TableName() string {
|
|
return "app_follow"
|
|
}
|