sketch.go 809 B

12345678910111213141516171819
  1. package gorm_model
  2. import "time"
  3. type YounggeeSketchInfo struct {
  4. SketchID int `gorm:"column:sketch_id;primary_key;AUTO_INCREMENT"` // 初稿id
  5. TaskID int `gorm:"column:task_id;NOT NULL"` // 任务id
  6. ReviseOpinion string `gorm:"column:revise_opinion"`
  7. CreateAt time.Time `gorm:"column:create_at;NOT NULL"`
  8. AgreeAt time.Time `gorm:"column:agree_at"`
  9. RejectAt time.Time `gorm:"column:reject_at"`
  10. IsSubmit int `gorm:"column:is_submit;NOT NULL"` // 是否提交
  11. IsReview int `gorm:"column:is_review;default:0;NOT NULL"` // 是否审核
  12. IsOk int `gorm:"column:is_ok;NOT NULL"` // 是否合格
  13. }
  14. func (m *YounggeeSketchInfo) TableName() string {
  15. return "younggee_sketch_info"
  16. }