Create relation table for playlist tracks

This commit is contained in:
Deluan
2020-05-08 13:57:32 -04:00
committed by Deluan Quintão
parent 27de18f8c9
commit a56e588c8e
7 changed files with 250 additions and 174 deletions
+2 -1
View File
@@ -3,10 +3,11 @@ package model
import "time"
type Playlist struct {
ID string `json:"id"`
ID string `json:"id" orm:"column(id)"`
Name string `json:"name"`
Comment string `json:"comment"`
Duration float32 `json:"duration"`
SongCount int `json:"songCount"`
Owner string `json:"owner"`
Public bool `json:"public"`
Tracks MediaFiles `json:"tracks"`