add crud for custom transcode selection profile

This commit is contained in:
sentriz
2020-03-11 18:40:04 +00:00
parent 8d09e0d3b4
commit acadca6a02
8 changed files with 494 additions and 298 deletions

View File

@@ -176,3 +176,10 @@ func (p *PlayQueue) GetItems() []int {
func (p *PlayQueue) SetItems(items []int) {
p.Items = joinInt(items, ",")
}
type TranscodePreference struct {
User *User
UserID int `sql:"default: null; type:int REFERENCES users(id) ON DELETE CASCADE"`
Client string `gorm:"not null; unique_index:idx_client_profile" sql:"default: null"`
Profile string `gorm:"not null; unique_index:idx_client_profile" sql:"default: null"`
}