caipin 4 년 전
부모
커밋
78de5e2d91
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      models/cm_rectification.go

+ 5 - 4
models/cm_rectification.go

@@ -5,10 +5,11 @@ import (
 )
 
 type CmRectification struct {
-	Id            int       `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
-	ProjectId     int       `xorm:"not null default 0 comment('项目ID') INT(11)"`
-	BidsectionId  int       `xorm:"not null default 0 comment('标段id') INT(11)"`
-	DataType      int       `xorm:"not null default 1 comment('数据类型(1安全2质量)') TINYINT(1)"`
+	Id            int       `xorm:"not null pk comment('自增ID') INT(11)"`
+	ProjectId     int       `xorm:"not null comment('项目ID') INT(11)"`
+	BidsectionId  int       `xorm:"not null comment('标段id') INT(11)"`
+	AccountId     int       `xorm:"comment('账号ID') INT(11)"`
+	DataType      int       `xorm:"not null comment('数据类型(1安全2质量)') TINYINT(1)"`
 	DataId        int       `xorm:"comment('数据ID') INT(11)"`
 	Status        int       `xorm:"comment('状态(0未完成1完成)') TINYINT(1)"`
 	Content       string    `xorm:"comment('内容') VARCHAR(3072)"`