token.gen.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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 TableNameToken = "token"
  10. // Token Token表
  11. type Token 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. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除时间" json:"deleted_at"` // Delete Time | 删除时间
  16. ExpireAt time.Time `gorm:"column:expire_at;comment:过期时间" json:"expire_at"` // 过期时间
  17. Token string `gorm:"column:token;comment:Token" json:"token"` // Token
  18. Mac string `gorm:"column:mac;comment:Mac地址" json:"mac"` // Mac地址
  19. Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
  20. OrganizationID int64 `gorm:"column:organization_id;comment:租户ID" json:"organization_id"` // 租户ID
  21. AgentID int64 `gorm:"column:agent_id;comment:0 定制" json:"agent_id"` // 0 定制
  22. CustomAgentBase string `gorm:"column:custom_agent_base;comment:定制agent服务地址" json:"custom_agent_base"` // 定制agent服务地址
  23. CustomAgentKey string `gorm:"column:custom_agent_key;comment:定制agent服务密钥" json:"custom_agent_key"` // 定制agent服务密钥
  24. OpenaiBase string `gorm:"column:openai_base;comment:大模型服务地址" json:"openai_base"` // 大模型服务地址
  25. OpenaiKey string `gorm:"column:openai_key;comment:大模型服务密钥" json:"openai_key"` // 大模型服务密钥
  26. }
  27. // TableName Token's table name
  28. func (*Token) TableName() string {
  29. return TableNameToken
  30. }