diff --git a/store/types.go b/store/types.go index 4bb471a55d661153d920fcb9e9a5e70ee9b62f5a..cb5d6733727b4606ec5f7be42fb0dcd3e3eebc4d 100644 --- a/store/types.go +++ b/store/types.go @@ -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"` -} - -//****************