2023-05-08 15:53:06 +02:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
|
2023-05-27 14:36:22 +02:00
|
|
|
type VideoStatus string
|
2023-05-08 15:53:06 +02:00
|
|
|
|
|
|
|
const (
|
2023-07-06 13:25:51 +02:00
|
|
|
StatusNew VideoStatus = "new"
|
|
|
|
StatusFetched VideoStatus = "fetched"
|
|
|
|
StatusReady VideoStatus = "ready"
|
2023-05-08 15:53:06 +02:00
|
|
|
)
|
|
|
|
|
2023-05-27 14:36:22 +02:00
|
|
|
type YoutubeVideoID string
|
|
|
|
|
|
|
|
type YoutubeChannelID string
|
|
|
|
|
2023-05-08 15:53:06 +02:00
|
|
|
type Video struct {
|
2023-05-31 16:27:35 +02:00
|
|
|
ID uuid.UUID
|
|
|
|
Status VideoStatus
|
|
|
|
YoutubeID YoutubeVideoID
|
|
|
|
YoutubeChannelID YoutubeChannelID
|
|
|
|
YoutubeTitle string
|
|
|
|
YoutubeDescription string
|
|
|
|
YoutubeDuration string
|
|
|
|
YoutubePublishedAt string
|
|
|
|
|
|
|
|
Summary string
|
2023-05-08 15:53:06 +02:00
|
|
|
}
|