mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat: introduce new report "Top Albums"
This commit is contained in:
parent
09858076bf
commit
9896ea31ff
16 changed files with 246 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue