yogai/model/video.go

34 lines
595 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
}
type VideoVec struct {
ID uuid.UUID
Summary string
}