usage_statistic_hour.gen.go 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameUsageStatisticHour = "usage_statistic_hour"
  10. // UsageStatisticHour mapped from table <usage_statistic_hour>
  11. type UsageStatisticHour struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. Status int64 `gorm:"column:status;not null;default:1;comment:状态 1 正常 2 禁用" json:"status"` // 状态 1 正常 2 禁用
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. Addtime int64 `gorm:"column:addtime;comment:写入小时" json:"addtime"` // 写入小时
  18. Type int64 `gorm:"column:type;default:1;comment:1-微信 2-名片" json:"type"` // 1-微信 2-名片
  19. BotID string `gorm:"column:bot_id;comment:微信或名片id" json:"bot_id"` // 微信或名片id
  20. OrganizationID int64 `gorm:"column:organization_id;not null;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  21. AiResponse int64 `gorm:"column:ai_response;comment:AI回复次数" json:"ai_response"` // AI回复次数
  22. SopRun int64 `gorm:"column:sop_run;comment:SOP运行次数" json:"sop_run"` // SOP运行次数
  23. TotalFriend int64 `gorm:"column:total_friend;comment:好友总数" json:"total_friend"` // 好友总数
  24. TotalGroup int64 `gorm:"column:total_group;comment:群总数" json:"total_group"` // 群总数
  25. AccountBalance int64 `gorm:"column:account_balance;comment:账户余额(单位:分)" json:"account_balance"` // 账户余额(单位:分)
  26. ConsumeToken int64 `gorm:"column:consume_token;comment:消耗token数" json:"consume_token"` // 消耗token数
  27. ActiveUser int64 `gorm:"column:active_user;comment:活跃用户数" json:"active_user"` // 活跃用户数
  28. NewUser int64 `gorm:"column:new_user;comment:新增用户数" json:"new_user"` // 新增用户数
  29. LabelDist string `gorm:"column:label_dist;comment:标签分布" json:"label_dist"` // 标签分布
  30. }
  31. // TableName UsageStatisticHour's table name
  32. func (*UsageStatisticHour) TableName() string {
  33. return TableNameUsageStatisticHour
  34. }