project_material.go 825 B

12345678910111213141516171819
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type ProjectMaterial struct {
  6. MaterialID int `gorm:"column:material_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 *ProjectMaterial) TableName() string {
  15. return "project_material"
  16. }