29 lines
534 B
Go
29 lines
534 B
Go
package model
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type VideoStatus string
|
|
|
|
const (
|
|
StatusNew VideoStatus = "new"
|
|
StatusFetched VideoStatus = "fetched"
|
|
StatusReady VideoStatus = "ready"
|
|
)
|
|
|
|
type YoutubeVideoID string
|
|
|
|
type YoutubeChannelID string
|
|
|
|
type Video struct {
|
|
ID uuid.UUID
|
|
Status VideoStatus
|
|
YoutubeID YoutubeVideoID
|
|
YoutubeChannelID YoutubeChannelID
|
|
YoutubeTitle string
|
|
YoutubeDescription string
|
|
YoutubeDuration string
|
|
YoutubePublishedAt string
|
|
|
|
Summary string
|
|
}
|