sketch.go 1.7 KB

12345678910111213141516171819202122232425262728
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeSketchInfo struct {
  6. SketchID int `gorm:"column:sketch_id;primary_key;AUTO_INCREMENT"` // 初稿id
  7. TaskID string `gorm:"column:task_id;NOT NULL"` // 任务id
  8. Title string `gorm:"column:title"` // 标题
  9. Type int `gorm:"column:type"` // 初稿形式,1为图片,2为视频
  10. Content string `gorm:"column:content"` // 正文
  11. ReviseOpinion string `gorm:"column:revise_opinion"` // 反馈意见
  12. IsSubmit int `gorm:"column:is_submit;NOT NULL"` // 是否提交
  13. IsReview int `gorm:"column:is_review;default:0;NOT NULL"` // 是否审核
  14. IsOk int `gorm:"column:is_ok;NOT NULL"` // 是否合格
  15. CreateAt time.Time `gorm:"column:create_at;NOT NULL"` // 创建时间
  16. AgreeAt time.Time `gorm:"column:agree_at"` // 同意时间
  17. RejectAt time.Time `gorm:"column:reject_at"` // 驳回时间
  18. SubmitAt time.Time `gorm:"column:submit_at"` // 提交时间
  19. AutoAgreeAt time.Time `gorm:"column:auto_agree_at"` // 初稿自动审核时间
  20. AutoLinkBreakAt time.Time `gorm:"column:auto_link_break_at"` // 链接违约自动处理时间
  21. AutoSketchBreakAt time.Time `gorm:"column:auto_sketch_break_at"` // 初稿违约自动处理时间
  22. }
  23. func (m *YounggeeSketchInfo) TableName() string {
  24. return "younggee_sketch_info"
  25. }