// 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 TableNameUsageStatisticMonth = "usage_statistic_month"

// UsageStatisticMonth mapped from table <usage_statistic_month>
type UsageStatisticMonth 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 UsageStatisticMonth's table name
func (*UsageStatisticMonth) TableName() string {
	return TableNameUsageStatisticMonth
}