cm_safe.go 1.2 KB

12345678910111213141516171819202122
  1. package models
  2. import (
  3. "time"
  4. )
  5. type CmSafe struct {
  6. Id int `xorm:"not null pk autoincr comment('自增id') INT(11)"`
  7. BidsectionId int `xorm:"not null default 0 comment('标段id') INT(11)"`
  8. ProjectId int `xorm:"not null default 0 comment('项目ID') INT(11)"`
  9. AuditId string `xorm:"comment('当前审核人') VARCHAR(32)"`
  10. Code string `xorm:"comment('编号') VARCHAR(128)"`
  11. CreateTime time.Time `xorm:"comment('检查时间') DATETIME"`
  12. EndTime time.Time `xorm:"comment('结束时间') DATETIME"`
  13. Position string `xorm:"comment('检查部位') VARCHAR(1024)"`
  14. Inspection string `xorm:"comment('检查项目') VARCHAR(3072)"`
  15. InspectionDetail string `xorm:"comment('现场检查情况') TEXT"`
  16. Demand string `xorm:"comment('处理要求') VARCHAR(128)"`
  17. Status int `xorm:"not null default 0 comment('状态(0未上报1审批中2待整改3待复查4完成5关闭)') INT(11)"`
  18. Uid int `xorm:"not null default 0 comment('创建者id') INT(11)"`
  19. Times int `xorm:"not null default 1 comment('审批次数') INT(11)"`
  20. }