sop_node.gen.go 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 TableNameSopNode = "sop_node"
  10. // SopNode mapped from table <sop_node>
  11. type SopNode struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. Status int64 `gorm:"column:status;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. StageID int64 `gorm:"column:stage_id;comment:阶段 ID" json:"stage_id"` // 阶段 ID
  18. ParentID int64 `gorm:"column:parent_id;comment:父节点 ID" json:"parent_id"` // 父节点 ID
  19. Name string `gorm:"column:name;comment:节点名称" json:"name"` // 节点名称
  20. ConditionType int64 `gorm:"column:condition_type;default:1;comment:触发条件类型 1 客户回复后触发 2 超时后触发" json:"condition_type"` // 触发条件类型 1 客户回复后触发 2 超时后触发
  21. ConditionList string `gorm:"column:condition_list;comment:触发语义列表 当为空时则代表用户回复任意内容后触发" json:"condition_list"` // 触发语义列表 当为空时则代表用户回复任意内容后触发
  22. NoReplyCondition int64 `gorm:"column:no_reply_condition;comment:超时触发时间(分钟)" json:"no_reply_condition"` // 超时触发时间(分钟)
  23. ActionMessage string `gorm:"column:action_message;comment:命中后发送的消息内容" json:"action_message"` // 命中后发送的消息内容
  24. ActionLabelAdd string `gorm:"column:action_label_add;comment:命中后需要打的标签" json:"action_label_add"` // 命中后需要打的标签
  25. ActionForward string `gorm:"column:action_forward;comment:命中后转发的消息" json:"action_forward"` // 命中后转发的消息
  26. NoReplyUnit string `gorm:"column:no_reply_unit;comment:超时触发时间单位" json:"no_reply_unit"` // 超时触发时间单位
  27. ActionLabelDel string `gorm:"column:action_label_del;comment:命中后需要打的标签" json:"action_label_del"` // 命中后需要打的标签
  28. }
  29. // TableName SopNode's table name
  30. func (*SopNode) TableName() string {
  31. return TableNameSopNode
  32. }