mirror of
https://github.com/apricote/Listory.git
synced 2026-02-07 10:17:02 +00:00
feat(api): setup database migrations
This commit is contained in:
parent
d58cb46f3e
commit
a7c5c68540
6 changed files with 329 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ export class Album {
|
|||
name: string;
|
||||
|
||||
@ManyToMany((type) => Artist, (artist) => artist.albums)
|
||||
@JoinTable()
|
||||
@JoinTable({ name: "album_artists" })
|
||||
artists: Artist[];
|
||||
|
||||
@OneToMany((type) => Track, (track) => track.album)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export class Track {
|
|||
album: Album;
|
||||
|
||||
@ManyToMany((type) => Artist)
|
||||
@JoinTable()
|
||||
@JoinTable({ name: "track_artists" })
|
||||
artists: Artist[];
|
||||
|
||||
@Column((type) => SpotifyLibraryDetails)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue