script.go 1.2 KB

123456789101112131415161718192021222324
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeScriptInfo struct {
  6. ScriptID int `gorm:"column:script_id;primary_key;AUTO_INCREMENT"` // 脚本id
  7. TaskID string `gorm:"column:task_id;NOT NULL"` // 任务id
  8. Title string `gorm:"column:title;NOT NULL"` // 脚本标题
  9. Content string `gorm:"column:content;NOT NULL"` // 脚本内容
  10. ReviseOpinion string `gorm:"column:revise_opinion"` // 审核意见
  11. IsSubmit int `gorm:"column:is_submit;NOT NULL"` // 是否提交
  12. IsReview int `gorm:"column:is_review;default:0;NOT NULL"` // 是否审核
  13. IsOk int `gorm:"column:is_ok;NOT NULL"` // 是否合格
  14. CreateAt time.Time `gorm:"column:create_at"` // 创建时间
  15. SubmitAt time.Time `gorm:"column:submit_at"` // 提交时间
  16. AgreeAt time.Time `gorm:"column:agree_at"` // 同意时间
  17. RejectAt time.Time `gorm:"column:reject_at"` // 驳回时间
  18. }
  19. func (m *YounggeeScriptInfo) TableName() string {
  20. return "younggee_script_info"
  21. }