intent_org.gen.go 1.9 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 TableNameIntentOrg = "intent_org"
  10. // IntentOrg mapped from table <intent_org>
  11. type IntentOrg struct {
  12. ID int64 `gorm:"column:id;primaryKey" json:"id"`
  13. Name string `gorm:"column:name;comment:机构名称" json:"name"` // 机构名称
  14. APIKey string `gorm:"column:api_key" json:"api_key"`
  15. OpenaiBase string `gorm:"column:openai_base" json:"openai_base"`
  16. OpenaiKey string `gorm:"column:openai_key" json:"openai_key"`
  17. IntentCallback string `gorm:"column:intent_callback;comment:意向度结果推送地址" json:"intent_callback"` // 意向度结果推送地址
  18. MismatchCallback string `gorm:"column:mismatch_callback;comment:未匹配结果推送地址" json:"mismatch_callback"` // 未匹配结果推送地址
  19. Status int64 `gorm:"column:status;not null;default:1;comment:状态 1 正常 2 禁用" json:"status"` // 状态 1 正常 2 禁用
  20. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  21. CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  22. UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  23. }
  24. // TableName IntentOrg's table name
  25. func (*IntentOrg) TableName() string {
  26. return TableNameIntentOrg
  27. }