chart_info_log.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package chart_info_log
  2. import "time"
  3. // ChartInfoLog 图表操作日志表
  4. type ChartInfoLog struct {
  5. ChartInfoLogId int `gorm:"primaryKey;column:chart_info_log_id;type:int(11);not null" json:"-"`
  6. ChartInfoId int `gorm:"index:idx_chart_info_id;column:chart_info_id;type:int(11);default:0" json:"chartInfoId"`
  7. ChartName string `gorm:"column:chart_name;type:varchar(500);default:''" json:"chartName"` // 图表名称
  8. UniqueCode string `gorm:"column:unique_code;type:varchar(50);default:''" json:"uniqueCode"` // 唯一编码
  9. ChartClassifyId int `gorm:"column:chart_classify_id;type:int(11);default:0" json:"chartClassifyId"` // 分类id
  10. SysUserId int `gorm:"column:sys_user_id;type:int(11);default:0" json:"sysUserId"` // 创建人id
  11. SysUserRealName string `gorm:"column:sys_user_real_name;type:varchar(100);default:''" json:"sysUserRealName"` // 创建人姓名
  12. CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"`
  13. Content string `gorm:"column:content;type:text" json:"content"`
  14. Status string `gorm:"column:status;type:varchar(50);default:''" json:"status"`
  15. Method string `gorm:"column:method;type:varchar(255);default:''" json:"method"`
  16. }
  17. // TableName get sql table name.获取数据库表名
  18. func (m *ChartInfoLog) TableName() string {
  19. return "chart_info_log"
  20. }
  21. // ChartInfoLogColumns get sql column name.获取数据库列名
  22. var ChartInfoLogColumns = struct {
  23. ChartInfoLogID string
  24. ChartInfoID string
  25. ChartName string
  26. UniqueCode string
  27. ChartClassifyID string
  28. SysUserID string
  29. SysUserRealName string
  30. CreateTime string
  31. Content string
  32. Status string
  33. Method string
  34. }{
  35. ChartInfoLogID: "chart_info_log_id",
  36. ChartInfoID: "chart_info_id",
  37. ChartName: "chart_name",
  38. UniqueCode: "unique_code",
  39. ChartClassifyID: "chart_classify_id",
  40. SysUserID: "sys_user_id",
  41. SysUserRealName: "sys_user_real_name",
  42. CreateTime: "create_time",
  43. Content: "content",
  44. Status: "status",
  45. Method: "method",
  46. }