feat: store duration as float, to cater for milliseconds

This commit is contained in:
Deluan
2020-02-20 17:00:56 -05:00
parent 5525145906
commit fc14e346b9
12 changed files with 150 additions and 13 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ type Album struct {
Year int `json:"year"`
Compilation bool `json:"compilation"`
SongCount int `json:"songCount"`
Duration int `json:"duration"`
Duration float32 `json:"duration"`
Genre string `json:"genre"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`