mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore(lint): switch to eslint
This commit is contained in:
parent
f56548e432
commit
9b96d0fab4
29 changed files with 1609 additions and 113 deletions
|
|
@ -18,13 +18,13 @@ export class Album {
|
|||
@Column()
|
||||
name: string;
|
||||
|
||||
@ManyToMany((type) => Artist, (artist) => artist.albums)
|
||||
@ManyToMany(() => Artist, (artist) => artist.albums)
|
||||
@JoinTable({ name: "album_artists" })
|
||||
artists?: Artist[];
|
||||
|
||||
@OneToMany((type) => Track, (track) => track.album)
|
||||
@OneToMany(() => Track, (track) => track.album)
|
||||
tracks?: Track[];
|
||||
|
||||
@Column((type) => SpotifyLibraryDetails)
|
||||
@Column(() => SpotifyLibraryDetails)
|
||||
spotify: SpotifyLibraryDetails;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ export class Artist {
|
|||
@Column()
|
||||
name: string;
|
||||
|
||||
@ManyToMany((type) => Album, (album) => album.artists)
|
||||
@ManyToMany(() => Album, (album) => album.artists)
|
||||
albums?: Album[];
|
||||
|
||||
@Column((type) => SpotifyLibraryDetails)
|
||||
@Column(() => SpotifyLibraryDetails)
|
||||
spotify: SpotifyLibraryDetails;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,13 +18,13 @@ export class Track {
|
|||
@Column()
|
||||
name: string;
|
||||
|
||||
@ManyToOne((type) => Album, (album) => album.tracks)
|
||||
@ManyToOne(() => Album, (album) => album.tracks)
|
||||
album?: Album;
|
||||
|
||||
@ManyToMany((type) => Artist)
|
||||
@ManyToMany(() => Artist)
|
||||
@JoinTable({ name: "track_artists" })
|
||||
artists?: Artist[];
|
||||
|
||||
@Column((type) => SpotifyLibraryDetails)
|
||||
@Column(() => SpotifyLibraryDetails)
|
||||
spotify?: SpotifyLibraryDetails;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue