feat: introduce new report "Top Albums"

This commit is contained in:
Julian Tölle 2020-11-15 02:43:23 +01:00
parent 09858076bf
commit 9896ea31ff
16 changed files with 246 additions and 9 deletions

View file

@ -20,10 +20,10 @@ export class Album {
@ManyToMany((type) => Artist, (artist) => artist.albums)
@JoinTable({ name: "album_artists" })
artists: Artist[];
artists?: Artist[];
@OneToMany((type) => Track, (track) => track.album)
tracks: Track[];
tracks?: Track[];
@Column((type) => SpotifyLibraryDetails)
spotify: SpotifyLibraryDetails;

View file

@ -19,11 +19,11 @@ export class Track {
name: string;
@ManyToOne((type) => Album, (album) => album.tracks)
album: Album;
album?: Album;
@ManyToMany((type) => Artist)
@JoinTable({ name: "track_artists" })
artists: Artist[];
artists?: Artist[];
@Column((type) => SpotifyLibraryDetails)
spotify?: SpotifyLibraryDetails;