12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameUsageStatisticDay = "usage_statistic_day"
- // UsageStatisticDay mapped from table <usage_statistic_day>
- type UsageStatisticDay 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"` // Create Time | 创建日期
- UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
- Status int64 `gorm:"column:status;not null;default:1;comment:状态 1 正常 2 禁用" json:"status"` // 状态 1 正常 2 禁用
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
- Addtime int64 `gorm:"column:addtime;comment:写入年月日" json:"addtime"` // 写入年月日
- Type int64 `gorm:"column:type;default:1;comment:1-微信 2-名片" json:"type"` // 1-微信 2-名片
- BotID string `gorm:"column:bot_id;comment:微信或名片id" json:"bot_id"` // 微信或名片id
- OrganizationID int64 `gorm:"column:organization_id;not null;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
- AiResponse int64 `gorm:"column:ai_response;comment:AI回复次数" json:"ai_response"` // AI回复次数
- SopRun int64 `gorm:"column:sop_run;comment:SOP运行次数" json:"sop_run"` // SOP运行次数
- 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"` // 消耗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"` // 标签分布
- }
- // TableName UsageStatisticDay's table name
- func (*UsageStatisticDay) TableName() string {
- return TableNameUsageStatisticDay
- }
|