You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
475 B
44 lines
475 B
4 years ago
|
package db
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
//Podcast is
|
||
|
type Podcast struct {
|
||
|
Base
|
||
|
Title string
|
||
|
|
||
|
Summary string `gorm:"type:text"`
|
||
|
|
||
|
Author string
|
||
|
|
||
|
Image string
|
||
|
|
||
|
URL string
|
||
|
|
||
|
PodcastItems []PodcastItem
|
||
|
}
|
||
|
|
||
|
//PodcastItem is
|
||
|
type PodcastItem struct {
|
||
|
Base
|
||
|
PodcastID string
|
||
|
Podcast Podcast
|
||
|
Title string
|
||
|
Summary string `gorm:"type:text"`
|
||
|
|
||
|
EpisodeType string
|
||
|
|
||
|
Duration int
|
||
|
|
||
|
PubDate time.Time
|
||
|
|
||
|
FileURL string
|
||
|
|
||
|
GUID string
|
||
|
|
||
|
DownloadDate time.Time
|
||
|
DownloadPath string
|
||
|
}
|