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

fix: do not drop ShowName, for now

parent 790c0998
No related branches found
No related tags found
No related merge requests found
......@@ -309,6 +309,7 @@ var (
CreatedAt time.Time `json:"created"`
UpdatedAt time.Time `json:"updated"`
ShowID uint64 `json:"showID" gorm:"not null;index"`
ShowName string `json:"show" gorm:"not null"`
Show Show `json:"-" gorm:"association_foreignkey:ID"`
Source FileSource `json:"source" gorm:"embedded;embedded_prefix:source__"`
Metadata FileMetadata `json:"metadata" gorm:"embedded;embedded_prefix:metadata__"`
......@@ -322,6 +323,7 @@ var (
Description string `json:"description"`
PlayoutMode string `json:"playoutMode" gorm:"not null;default:'linear'"`
ShowID uint64 `json:"showID" gorm:"not null;index"`
ShowName string `json:"show" gorm:"not null"`
Show Show `json:"-" gorm:"association_foreignkey:ID"`
Entries []PlaylistEntry `json:"entries"`
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment