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

feat: ensure showId is camel case everywhere

parent a175dbd6
No related branches found
No related tags found
No related merge requests found
......@@ -308,7 +308,7 @@ var (
ID uint64 `json:"id" gorm:"primary_key"`
CreatedAt time.Time `json:"created"`
UpdatedAt time.Time `json:"updated"`
ShowID uint64 `json:"showID" gorm:"not null;index"`
ShowID uint64 `json:"showId" gorm:"not null;index"`
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__"`
......@@ -321,7 +321,7 @@ var (
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"`
ShowID uint64 `json:"showId" gorm:"not null;index"`
Show Show `json:"-" gorm:"association_foreignkey:ID"`
Entries []PlaylistEntry `json:"entries"`
}
......
......@@ -180,7 +180,7 @@ type File struct {
ID uint64 `json:"id" gorm:"primary_key"`
CreatedAt time.Time `json:"created"`
UpdatedAt time.Time `json:"updated"`
ShowID uint64 `json:"showID" gorm:"not null;index"`
ShowID uint64 `json:"showId" gorm:"not null;index"`
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__"`
......@@ -219,7 +219,7 @@ type Playlist struct {
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"`
ShowID uint64 `json:"showId" gorm:"not null;index"`
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