entity.go 2.0 KB

123456789101112131415161718192021222324252627282930313233
  1. package yb_community_question_process
  2. import (
  3. "time"
  4. )
  5. const (
  6. // 流程类型: 1-分配; 2-转移
  7. ProcessTypeDistribute = 1
  8. ProcessTypeTransfer = 2
  9. )
  10. // YbCommunityQuestionProcess 研报-社区问答流程表
  11. type YbCommunityQuestionProcess struct {
  12. ID int `gorm:"primaryKey;column:id;type:int(10) unsigned;not null" json:"-"`
  13. CommunityQuestionID int `gorm:"index:idx_question_id;column:community_question_id;type:int(10) unsigned;not null" json:"community_question_id"`
  14. TransferUserID int `gorm:"column:transfer_user_id;type:int(10) unsigned;not null;default:0" json:"transfer_user_id"`
  15. TransferAdminID int `gorm:"column:transfer_admin_id;type:int(10) unsigned;not null;default:0" json:"transfer_admin_id"`
  16. TransferAdminName string `gorm:"column:transfer_admin_name;type:varchar(100);not null;default:''" json:"transfer_admin_name"`
  17. ReplierUserID int `gorm:"column:replier_user_id;type:int(10) unsigned;not null;default:0" json:"replier_user_id"`
  18. ReplierAdminID int `gorm:"column:replier_admin_id;type:int(10) unsigned;not null;default:0" json:"replier_admin_id"`
  19. ReplierAdminName string `gorm:"column:replier_admin_name;type:varchar(100);not null;default:''" json:"replier_admin_name"`
  20. Remark string `gorm:"column:remark;type:varchar(255);not null;default:''" json:"remark"`
  21. ProcessType int `gorm:"column:process_type;type:tinyint(4) unsigned;not null;default:0" json:"process_type"`
  22. CreateTime time.Time `gorm:"column:create_time;type:datetime;default:null" json:"create_time"`
  23. VarietyClassifyID int `gorm:"column:variety_classify_id;type:int(10) unsigned;not null;default:0" json:"variety_classify_id"`
  24. VarietyTagID int `gorm:"column:variety_tag_id;type:int(10) unsigned;not null;default:0" json:"variety_tag_id"`
  25. }
  26. // TableName get sql table name.获取数据库表名
  27. func (item *YbCommunityQuestionProcess) TableName() string {
  28. return "yb_community_question_process"
  29. }