package entity import "github.com/gogf/gf/v2/os/gtime" // AsynchModelStat 按天统计:某天/租户/创建人/模型的请求次数 // 注:这里不走通用 SQLBaseDO,采用联合唯一键(day,tenant_id,creator,model_name)做 UPSERT 原子累加。 type AsynchModelStat struct { Day *gtime.Time `orm:"day" json:"day"` // 日期(建议仅使用日期部分) TenantId int64 `orm:"tenant_id" json:"tenantId,string"` Creator string `orm:"creator" json:"creator"` ModelName string `orm:"model_name" json:"modelName"` RequestCount int64 `orm:"request_count" json:"requestCount"` CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` }