1234567891011121314151617181920212223242526272829303132333435 |
- package yb_my_chart_classify
- import "time"
- // YbMyChartClassify 研报-我的图表分类
- type YbMyChartClassify struct {
- MyChartClassifyID int `gorm:"primaryKey;column:my_chart_classify_id;type:int(10) unsigned;not null" json:"my_chart_classify_id"`
- MyChartClassifyName string `gorm:"column:my_chart_classify_name;type:varchar(255);not null;default:''" json:"my_chart_classify_name"` // 分类名称
- UserID int `gorm:"index:idx_user_id;column:user_id;type:int(10) unsigned;not null;default:0" json:"user_id"` // 用户ID
- Sort int `gorm:"column:sort;type:int(10) unsigned;not null;default:0" json:"sort"` // 排序
- CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime" json:"modify_time"`
- }
- // TableName get sql table name.获取数据库表名
- func (m *YbMyChartClassify) TableName() string {
- return "yb_my_chart_classify"
- }
- // YbMyChartClassifyColumns get sql column name.获取数据库列名
- var YbMyChartClassifyColumns = struct {
- MyChartClassifyID string
- MyChartClassifyName string
- UserID string
- Sort string
- CreateTime string
- ModifyTime string
- }{
- MyChartClassifyID: "my_chart_classify_id",
- MyChartClassifyName: "my_chart_classify_name",
- UserID: "user_id",
- Sort: "sort",
- CreateTime: "create_time",
- ModifyTime: "modify_time",
- }
|