project_material.go 702 B

12345678910111213141516
  1. package entity
  2. import "time"
  3. type ProjectMaterial 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. ProjectID string `gorm:"column:project_id"` // 所属项目id
  8. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  9. FileName string `gorm:"column:file_name"` // 文件名称
  10. }
  11. func (m *ProjectMaterial) TableName() string {
  12. return "project_material"
  13. }