cm_safe_file.go 615 B

123456789101112131415
  1. package models
  2. import (
  3. "time"
  4. )
  5. type CmSafeFile 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. SafeId int `xorm:"not null default 0 comment('安全巡检id') INT(11)"`
  9. Uid int `xorm:"not null default 0 comment('上传者') INT(11)"`
  10. CreatedTime time.Time `xorm:"comment('上传时间') DATETIME"`
  11. FileName string `xorm:"not null comment('附件名称') VARCHAR(255)"`
  12. FilePath string `xorm:"not null comment('附件路径') VARCHAR(32)"`
  13. }