entity.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package yb_my_chart_classify
  2. import "time"
  3. // YbMyChartClassify 研报-我的图表分类
  4. type YbMyChartClassify struct {
  5. MyChartClassifyID int `gorm:"primaryKey;column:my_chart_classify_id;type:int(10) unsigned;not null" json:"my_chart_classify_id"`
  6. MyChartClassifyName string `gorm:"column:my_chart_classify_name;type:varchar(255);not null;default:''" json:"my_chart_classify_name"` // 分类名称
  7. UserID int `gorm:"index:idx_user_id;column:user_id;type:int(10) unsigned;not null;default:0" json:"user_id"` // 用户ID
  8. Sort int `gorm:"column:sort;type:int(10) unsigned;not null;default:0" json:"sort"` // 排序
  9. CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
  10. ModifyTime time.Time `gorm:"column:modify_time;type:datetime" json:"modify_time"`
  11. }
  12. // TableName get sql table name.获取数据库表名
  13. func (m *YbMyChartClassify) TableName() string {
  14. return "yb_my_chart_classify"
  15. }
  16. // YbMyChartClassifyColumns get sql column name.获取数据库列名
  17. var YbMyChartClassifyColumns = struct {
  18. MyChartClassifyID string
  19. MyChartClassifyName string
  20. UserID string
  21. Sort string
  22. CreateTime string
  23. ModifyTime string
  24. }{
  25. MyChartClassifyID: "my_chart_classify_id",
  26. MyChartClassifyName: "my_chart_classify_name",
  27. UserID: "user_id",
  28. Sort: "sort",
  29. CreateTime: "create_time",
  30. ModifyTime: "modify_time",
  31. }