records.gen.go 2.8 KB

1234567891011121314151617181920212223242526272829303132333435
  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. )
  8. const TableNameRecord = "records"
  9. // Record mapped from table <records>
  10. type Record struct {
  11. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  13. UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  14. Body string `gorm:"column:body;comment:获取原始数据" json:"body"` // 获取原始数据
  15. StaffNo string `gorm:"column:staff_no;comment:坐席工号" json:"staff_no"` // 坐席工号
  16. Caller string `gorm:"column:caller;comment:主叫号码" json:"caller"` // 主叫号码
  17. Callee string `gorm:"column:callee;comment:被叫号码" json:"callee"` // 被叫号码
  18. RecordFile string `gorm:"column:record_file;comment:录音文件" json:"record_file"` // 录音文件
  19. Session string `gorm:"column:session;comment:通话标识" json:"session"` // 通话标识
  20. AliTrans string `gorm:"column:ali_trans;comment:阿里语音识别原始结果" json:"ali_trans"` // 阿里语音识别原始结果
  21. AliTaskID string `gorm:"column:ali_task_id;comment:阿里语音识别任务ID" json:"ali_task_id"` // 阿里语音识别任务ID
  22. Chats string `gorm:"column:chats;comment:提取的对话记录" json:"chats"` // 提取的对话记录
  23. UserIntent string `gorm:"column:user_intent;comment:判断的用户意图" json:"user_intent"` // 判断的用户意图
  24. Basis string `gorm:"column:basis;comment:用户意图命中的原始文本" json:"basis"` // 用户意图命中的原始文本
  25. Accept int64 `gorm:"column:accept;comment:用户是否接受邀请 0 未判断 1 接受 2 不接受" json:"accept"` // 用户是否接受邀请 0 未判断 1 接受 2 不接受
  26. }
  27. // TableName Record's table name
  28. func (*Record) TableName() string {
  29. return TableNameRecord
  30. }