From 82197fd30a09e07f94eda6027e341c952a65cdb2 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 18 Nov 2024 16:12:35 -0400 Subject: [PATCH] feat: remove last remaining Playlist & PlaylistEntry types --- store/types.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/store/types.go b/store/types.go index 4bb471a..cb5d673 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"` -} - -//**************** -- GitLab