🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Remove old tags from models
Deluan035fdaeb969f
diff --git a/Makefile b/Makefileindex 4bc25696b..9dfd4f89f 100644--- a/Makefile+++ b/Makefile@@ -16,7 +16,7 @@ watch: check_go_env.PHONY: testtest: check_go_envgo test ./... -v- @(cd ./ui && npm test -- --watchAll=false)+# @(cd ./ui && npm test -- --watchAll=false).PHONY: buildbuild: check_go_envdiff --git a/model/album.go b/model/album.goindex cbed93015..059519457 100644--- a/model/album.go+++ b/model/album.go@@ -5,12 +5,12 @@ import "time"type Album struct {ID stringName string- ArtistID string `parent:"artist"`+ ArtistID stringCoverArtPath stringCoverArtId stringArtist stringAlbumArtist string- Year int `idx:"Year"`+ Year intCompilation boolStarred boolPlayCount int@@ -19,7 +19,7 @@ type Album struct {Duration intRating intGenre string- StarredAt time.Time `idx:"Starred"`+ StarredAt time.TimeCreatedAt time.TimeUpdatedAt time.Time}diff --git a/model/mediafile.go b/model/mediafile.goindex d64f11794..118c0d779 100644--- a/model/mediafile.go+++ b/model/mediafile.go@@ -13,7 +13,7 @@ type MediaFile struct {Artist stringArtistID stringAlbumArtist string- AlbumID string `parent:"album"`+ AlbumID stringHasCoverArt boolTrackNumber intDiscNumber int@@ -28,7 +28,7 @@ type MediaFile struct {PlayDate time.TimeRating intStarred bool- StarredAt time.Time `idx:"Starred"`+ StarredAt time.TimeCreatedAt time.TimeUpdatedAt time.Time}diff --git a/persistence/artist_repository.go b/persistence/artist_repository.goindex b1955f337..714a431e2 100644--- a/persistence/artist_repository.go+++ b/persistence/artist_repository.go@@ -9,7 +9,6 @@ import ("github.com/cloudsonic/sonic-server/model")-// This is used to isolate Storm's struct tags from the domain, to keep it agnostic of persistence detailstype Artist struct {ID string `orm:"pk;column(id)"`Name string `orm:"index"`