12345678910111213141516171819202122232425262728293031323334353637383940 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameUsageStatisticHour = "usage_statistic_hour"
- type UsageStatisticHour struct {
- ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"`
- Status int64 `gorm:"column:status;not null;default:1;comment:状态 1 正常 2 禁用" json:"status"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`
- Addtime int64 `gorm:"column:addtime;comment:写入小时" json:"addtime"`
- Type int64 `gorm:"column:type;default:1;comment:1-微信 2-名片" json:"type"`
- BotID string `gorm:"column:bot_id;comment:微信或名片id" json:"bot_id"`
- OrganizationID int64 `gorm:"column:organization_id;not null;default:1;comment:机构 ID" json:"organization_id"`
- AiResponse int64 `gorm:"column:ai_response;comment:AI回复次数" json:"ai_response"`
- SopRun int64 `gorm:"column:sop_run;comment:SOP运行次数" json:"sop_run"`
- TotalFriend int64 `gorm:"column:total_friend;comment:好友总数" json:"total_friend"`
- TotalGroup int64 `gorm:"column:total_group;comment:群总数" json:"total_group"`
- AccountBalance int64 `gorm:"column:account_balance;comment:账户余额(单位:分)" json:"account_balance"`
- ConsumeToken int64 `gorm:"column:consume_token;comment:消耗token数" json:"consume_token"`
- ActiveUser int64 `gorm:"column:active_user;comment:活跃用户数" json:"active_user"`
- NewUser int64 `gorm:"column:new_user;comment:新增用户数" json:"new_user"`
- LabelDist string `gorm:"column:label_dist;comment:标签分布" json:"label_dist"`
- }
- func (*UsageStatisticHour) TableName() string {
- return TableNameUsageStatisticHour
- }
|