12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package yb_road_video
- import "time"
- type YbRoadVideo struct {
- RoadVideoID int `gorm:"primaryKey;column:road_video_id;type:int(10) unsigned;not null" json:"-"`
- Title string `gorm:"column:title;type:varchar(255);not null;default:''" json:"title"`
- ChartPermissionIds string `gorm:"column:chart_permission_ids;type:varchar(255);not null;default:''" json:"chartPermissionIds"`
- CoverImgURL string `gorm:"column:cover_img_url;type:varchar(255);not null;default:''" json:"coverImgUrl"`
- VideoURL string `gorm:"column:video_url;type:varchar(255);not null;default:''" json:"videoUrl"`
- VideoSeconds string `gorm:"column:video_seconds;type:varchar(30);not null;default:''" json:"videoSeconds"`
- PublishState int `gorm:"column:publish_state;type:tinyint(4) unsigned;not null;default:0" json:"publishState"`
- SendThsState int `gorm:"column:send_ths_state;type:tinyint(4) unsigned;not null;default:0" json:"sendThsState"`
- IsDeleted int `gorm:"column:is_deleted;type:tinyint(4) unsigned;not null;default:0" json:"isDeleted"`
- AdminId int `gorm:"column:admin_id;type:int(11) unsigned;not null;default:0" json:"adminId"`
- AdminRealName string `gorm:"column:admin_real_name;type:varchar(50)" json:"adminRealName"`
- PublishTime time.Time `gorm:"column:publish_time;type:datetime" json:"publishTime"`
- SendThsTime time.Time `gorm:"column:send_ths_time;type:datetime" json:"sendThsTime"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"`
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime;default:CURRENT_TIMESTAMP" json:"modifyTime"`
- DeleteTime time.Time `gorm:"column:delete_time;type:datetime" json:"deleteTime"`
- ReportID int `gorm:"column:report_id;type:int(10) unsigned;not null;default:0" json:"reportId"`
- }
- func (r *YbRoadVideo) TableName() string {
- return "yb_road_video"
- }
- var YbRoadVideoColumns = struct {
- RoadVideoID string
- Title string
- ChartPermissionIds string
- CoverImgURL string
- VideoURL string
- VideoSeconds string
- PublishState string
- SendThsState string
- IsDeleted string
- PublishTime string
- SendThsTime string
- CreateTime string
- ModifyTime string
- DeleteTime string
- ReportID string
- }{
- RoadVideoID: "road_video_id",
- Title: "title",
- ChartPermissionIds: "chart_permission_ids",
- CoverImgURL: "cover_img_url",
- VideoURL: "video_url",
- VideoSeconds: "video_seconds",
- PublishState: "publish_state",
- SendThsState: "send_ths_state",
- IsDeleted: "is_deleted",
- PublishTime: "publish_time",
- SendThsTime: "send_ths_time",
- CreateTime: "create_time",
- ModifyTime: "modify_time",
- DeleteTime: "delete_time",
- ReportID: "report_id",
- }
|