19 lines
568 B
Go
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
|
|
}
|