caipin 4 年之前
父节点
当前提交
3bac20e8ac
共有 3 个文件被更改,包括 51 次插入0 次删除
  1. 18 0
      models/cm_safe.go
  2. 18 0
      models/cm_safe_audit.go
  3. 15 0
      models/cm_safe_file.go

+ 18 - 0
models/cm_safe.go

@@ -0,0 +1,18 @@
+package models
+
+import (
+	"time"
+)
+
+type CmSafe struct {
+	Id               int       `xorm:"not null pk autoincr comment('自增id') INT(11)"`
+	BidsectionId     int       `xorm:"not null default 0 comment('标段id') INT(11)"`
+	Code             string    `xorm:"comment('编号') VARCHAR(128)"`
+	CreateTime       time.Time `xorm:"comment('检查时间') DATETIME"`
+	EndTime          time.Time `xorm:"comment('结束时间') DATETIME"`
+	Position         string    `xorm:"comment('检查部位') VARCHAR(1024)"`
+	Inspection       string    `xorm:"comment('检查项目') VARCHAR(3072)"`
+	InspectionDetail string    `xorm:"comment('现场检查情况') TEXT"`
+	Demand           string    `xorm:"comment('处理要求') VARCHAR(128)"`
+	Status           int       `xorm:"default 0 comment('状态') INT(11)"`
+}

+ 18 - 0
models/cm_safe_audit.go

@@ -0,0 +1,18 @@
+package models
+
+import (
+	"time"
+)
+
+type CmSafeAudit struct {
+	Id           int       `xorm:"not null pk autoincr comment('自增id') INT(11)"`
+	SafeId       int       `xorm:"not null default 0 comment('安全巡检id') INT(11)"`
+	BidsectionId int       `xorm:"not null default 0 comment('标段id') INT(11)"`
+	Times        int       `xorm:"not null default 0 comment('审核次数') INT(11)"`
+	AuditId      int       `xorm:"not null default 0 comment('审核人id') INT(11)"`
+	AuditOrder   int       `xorm:"not null default 0 comment('审批顺序') INT(11)"`
+	Status       int       `xorm:"default 0 comment('审核状态') INT(11)"`
+	CreateTime   time.Time `xorm:"comment('开始时间') DATETIME"`
+	EndTime      time.Time `xorm:"comment('结束时间') DATETIME"`
+	Opinion      string    `xorm:"comment('审批意见') VARCHAR(1024)"`
+}

+ 15 - 0
models/cm_safe_file.go

@@ -0,0 +1,15 @@
+package models
+
+import (
+	"time"
+)
+
+type CmSafeFile struct {
+	Id           int       `xorm:"not null pk autoincr comment('自增id') INT(11)"`
+	BidsectionId int       `xorm:"not null default 0 comment('标段id') INT(11)"`
+	SafeId       int       `xorm:"not null default 0 comment('安全巡检id') INT(11)"`
+	Uid          int       `xorm:"not null default 0 comment('上传者') INT(11)"`
+	CreatedTime  time.Time `xorm:"comment('上传时间') DATETIME"`
+	FileName     string    `xorm:"not null comment('附件名称') VARCHAR(255)"`
+	FilePath     string    `xorm:"not null comment('附件路径') VARCHAR(32)"`
+}