form_records.gen.go 1.9 KB

1234567891011121314151617181920212223242526272829303132
  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 TableNameFormRecord = "form_records"
  9. // FormRecord mapped from table <form_records>
  10. type FormRecord struct {
  11. ID string `gorm:"column:id;primaryKey;comment:主键id" json:"id"` // 主键id
  12. ExternalID string `gorm:"column:external_id;not null;comment:外部id" json:"external_id"` // 外部id
  13. IndustryType int64 `gorm:"column:industry_type;not null;comment:评分规则代码 0 通用 1 教育" json:"industry_type"` // 评分规则代码 0 通用 1 教育
  14. ChatHistory string `gorm:"column:chat_history;not null;comment:通话记录" json:"chat_history"` // 通话记录
  15. FormData string `gorm:"column:form_data;comment:表单数据" json:"form_data"` // 表单数据
  16. FormValue string `gorm:"column:form_value;comment:表单结果" json:"form_value"` // 表单结果
  17. OrgID int64 `gorm:"column:org_id;not null;comment:机构 ID" json:"org_id"` // 机构 ID
  18. Status int64 `gorm:"column:status;not null;comment:状态 1 入库 2 已判断 3 已回调" json:"status"` // 状态 1 入库 2 已判断 3 已回调
  19. RequestData string `gorm:"column:request_data" json:"request_data"`
  20. ResponseData string `gorm:"column:response_data" json:"response_data"`
  21. CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  22. UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  23. }
  24. // TableName FormRecord's table name
  25. func (*FormRecord) TableName() string {
  26. return TableNameFormRecord
  27. }