You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
916 B

package akuschool
import (
"recook/internal/v2/lib/db"
"time"
)
type AkuSchoolModel struct {
db.BaseModel
Id uint `gorm:"column:id" json:"id"`
Title string `gorm:"column:title" json:"title"`
SubTitle string `gorm:"column:sub_title" json:"sub_title"`
Type int `gorm:"column:type" json:"type"`
IsDraft int `gorm:"column:is_draft" json:"is_draft"`
CreatedTime time.Time `gorm:"column:created_time" json:"create_d_time"`
TextBody string `gorm:"column:text_body" json:"text_body"`
CoverUrl string `gorm:"column:cover_url" json:"cover_url"`
VideoUrl string `gorm:"column:video_url" json:"video_url"`
NumberOfHits uint `gorm:"column:number_of_hits" json:"number_of_hits"`
VirtualHits uint `gorm:"column:virtual_hits" json:"virtual_hits"`
}
func (r *AkuSchoolModel) TableName() string {
return "recook_aku_school"
}