sec_material.go 820 B

1234567891011121314151617
  1. package entity
  2. import "time"
  3. type SecMaterial struct {
  4. MaterialID int `gorm:"column:material_id;primary_key;AUTO_INCREMENT"` // 带货任务素材id
  5. FileUrl string `gorm:"column:file_url"` // 文件url
  6. FileUid string `gorm:"column:file_uid"` // 文件uid
  7. SelectionID string `gorm:"column:selection_id"` // 所属项目id
  8. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  9. FileName string `gorm:"column:file_name"` // 文件名称
  10. Type int64 `gorm:"column:type"` // 素材类型(1图片 2视频)
  11. }
  12. func (m *SecMaterial) TableName() string {
  13. return "younggee_sec_material"
  14. }