cm_annex.go 814 B

12345678910111213141516
  1. package models
  2. import (
  3. "time"
  4. )
  5. type CmAnnex struct {
  6. Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
  7. DataType int `xorm:"not null default 0 comment('类型1.回款证明2.质量附件3.安全附件4.合同文件(收入)5.支出证明6.合同文件(支出)') TINYINT(1)"`
  8. DataId int `xorm:"not null default 0 comment('归属ID') INT(11)"`
  9. AccountId int `xorm:"not null default 0 comment('账号ID') INT(11)"`
  10. Name string `xorm:"comment('附件名称') VARCHAR(64)"`
  11. OssUrl string `xorm:"comment('访问路径') VARCHAR(255)"`
  12. CreateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') TIMESTAMP"`
  13. UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
  14. }