File tree Expand file tree Collapse file tree
ultimate-test-suite/chinook_database/entity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ export class Genre {
5353 // name VARCHAR(120),
5454 @Column ( { name : "name" , nullable : true } )
5555 name : string ;
56+
57+ @OneToMany ( ( ) => Track , o => o . genre )
58+ tracks : Track [ ] ;
5659}
5760
5861@Entity ( "playlist" )
@@ -66,8 +69,8 @@ export class Playlist {
6669 @Column ( { name : "name" , nullable : true } )
6770 name : string ;
6871
69- @OneToMany ( ( ) => PlaylistTrack , o => o . track )
70- tracks : Track [ ] ;
72+ @OneToMany ( ( ) => PlaylistTrack , o => o . playlist )
73+ playlistTracks : PlaylistTrack [ ] ;
7174}
7275
7376@Entity ( "media_type" )
@@ -351,7 +354,7 @@ export class Track {
351354 @OneToMany ( ( ) => PlaylistTrack , o => o . playlist )
352355 playlists : Playlist [ ] ;
353356
354- @OneToMany ( ( ) => InvoiceLine , o => o . invoice )
357+ @OneToMany ( ( ) => InvoiceLine , o => o . track )
355358 invoiceLines : InvoiceLine [ ] ;
356359}
357360
Original file line number Diff line number Diff line change @@ -14,5 +14,4 @@ export const setup = async () => {
1414 } ) ;
1515
1616 await Promise . all ( dataSources . map ( seedChinookDatabase ) )
17-
1817}
You can’t perform that action at this time.
0 commit comments