Skip to content
Snippets Groups Projects
Verified Commit 82197fd3 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: remove last remaining Playlist & PlaylistEntry types

parent c736cb3a
No related branches found
No related tags found
No related merge requests found
......@@ -178,28 +178,3 @@ type ImportLog struct {
// Mind that ImportLogs is not []ImportLog but rather a map containing objects of type LOG
type ImportLogs map[string]*Log
//******* Playlists
type PlaylistEntry struct {
ID uint64 `json:"-" gorm:"primaryKey"`
PlaylistID uint64 `json:"-" gorm:"not null;index;uniqueIndex:unique_playlist_line_numbers"`
LineNum uint `json:"-" gorm:"not null;uniqueIndex:unique_playlist_line_numbers"`
URI string `json:"uri" gorm:"size:1024"`
Duration *float64 `json:"duration,omitempty"`
File *File `json:"file,omitempty" gorm:"associationAutoUpdate:false;associationAutoCreate:false"`
FileID *uint64 `json:"-" gorm:"index"`
}
type Playlist struct {
ID uint64 `json:"id" gorm:"primaryKey"`
CreatedAt time.Time `json:"created"`
UpdatedAt time.Time `json:"updated"`
Description string `json:"description"`
PlayoutMode string `json:"playoutMode" gorm:"not null;default:'linear'"`
ShowID uint64 `json:"showId" gorm:"not null;index"`
Show Show `json:"-" gorm:"associationForeignKey:ID"`
Entries []PlaylistEntry `json:"entries"`
}
//****************
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment