usage_total.gen.go 2.2 KB

123456789101112131415161718192021222324252627282930313233
  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 TableNameUsageTotal = "usage_total"
  10. // UsageTotal mapped from table <usage_total>
  11. type UsageTotal 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. Type int64 `gorm:"column:type;not null;default:1;comment:1 微信 2 名片" json:"type"` // 1 微信 2 名片
  18. BotID string `gorm:"column:bot_id;not null;comment:微信或名片id" json:"bot_id"` // 微信或名片id
  19. TotalTokens int64 `gorm:"column:total_tokens;not null;comment:使用token总数" json:"total_tokens"` // 使用token总数
  20. StartIndex int64 `gorm:"column:start_index;not null;comment:重制后的起始usage_detail 索引" json:"start_index"` // 重制后的起始usage_detail 索引
  21. EndIndex int64 `gorm:"column:end_index;not null;comment:usage_detail 索引" json:"end_index"` // usage_detail 索引
  22. OrganizationID int64 `gorm:"column:organization_id;not null;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  23. }
  24. // TableName UsageTotal's table name
  25. func (*UsageTotal) TableName() string {
  26. return TableNameUsageTotal
  27. }