- package entity
- import "time"
- type ProjectMaterial struct {
- MaterialID int `gorm:"column:material_id;primary_key;AUTO_INCREMENT"` // 种草任务素材id
- FileUrl string `gorm:"column:file_url"` // 文件url
- FileUid string `gorm:"column:file_uid"` // 文件uid
- ProjectID string `gorm:"column:project_id"` // 所属项目id
- CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
- FileName string `gorm:"column:file_name"` // 文件名称
- }
- func (m *ProjectMaterial) TableName() string {
- return "project_material"
- }
|