Files
thamanyah/discovery/internal/models/video.go
T
FahdShalhoub 6f9e04ee97
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m35s
Build, Push and Deploy Discovery / build-push-deploy (push) Successful in 1m55s
Deploy Infrastructure / pulumi-up (push) Successful in 2s
FEAT: Discovery Video Service Subscription
2026-08-29 16:50:58 +03:00

19 lines
568 B
Go

package models
import "time"
// Video is the catalogue's copy of a video cms has announced as ready. Every
// member is filled from the announcement — discovery originates none of it.
type Video struct {
// ID is the id cms issued, reused verbatim so both services name the same
// video the same way.
ID string
Title string
PlaybackURL string
// Categories are names, not ids: cms owns the vocabulary and announces it
// by name, so nothing here has to track its numbering.
Categories []string
CreatedAt time.Time
UpdatedAt time.Time
}