互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
904 B

5 years ago
  1. package models
  2. import (
  3. "time"
  4. )
  5. const AnnexTableName = TableNamePrefix + "annex"
  6. //附件
  7. type Annex struct {
  8. Id int64 `json:"id" xorm:"not null pk autoincr INT(11)"`
  9. Path string `json:"path" xorm:"not null comment('路径') VARCHAR(255)"`
  10. Size int64 `json:"size" xorm:"not null comment('文件得大小') INT(11)"`
  11. Suffix string `json:"suffix" xorm:"not null comment('文件得后缀') VARCHAR(255)"`
  12. Md5 string `json:"md5" xorm:"not null comment('文件得md5值') VARCHAR(255)"`
  13. IsDelete bool `json:"is_delete" xorm:"not null default(0) comment('是否删除') TINYINT(1)"`
  14. CreatedAt time.Time `json:"created_at" xorm:"not null created comment('创建得时间') DATETIME"`
  15. UpdatedAt time.Time `json:"updated_at" xorm:"not null updated comment('更新得时间') DATETIME"`
  16. }
  17. func (t *Annex) TableName() string {
  18. return AnnexTableName
  19. }