project_brief.go 883 B

12345678910111213141516171819
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeProjectBrief struct {
  6. ProjectBriefID int `gorm:"column:project_brief_id;primary_key;AUTO_INCREMENT"` // 项目id
  7. FileUrl string `gorm:"column:file_url"` // 文件url
  8. FileUid string `gorm:"column:file_uid"` // 文件uid
  9. ProjectID string `gorm:"column:project_id"` // 所属项目id
  10. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  11. FileName string `gorm:"column:file_name"` // 文件名称
  12. Type int `gorm:"column:type;NOT NULL"` // 手卡类型(1图片 2文档)
  13. }
  14. func (m *YounggeeProjectBrief) TableName() string {
  15. return "project_brief"
  16. }