alloc_agent.gen.go 1.7 KB

123456789101112131415161718192021222324252627282930
  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 TableNameAllocAgent = "alloc_agent"
  10. // AllocAgent mapped from table <alloc_agent>
  11. type AllocAgent 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. UserID string `gorm:"column:user_id;comment:前台用户ID" json:"user_id"` // 前台用户ID
  18. OrganizationID int64 `gorm:"column:organization_id;comment:机构 ID" json:"organization_id"` // 机构 ID
  19. Agents string `gorm:"column:agents;comment:分配的智能体ID" json:"agents"` // 分配的智能体ID
  20. }
  21. // TableName AllocAgent's table name
  22. func (*AllocAgent) TableName() string {
  23. return TableNameAllocAgent
  24. }