Skip to content

Commit f42a843

Browse files
committed
Fix typos and correct OneToMany relations
1 parent 9934676 commit f42a843

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

ultimate-test-suite/chinook_database/entity/Entities.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

vitest.global-setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ export const setup = async () => {
1414
});
1515

1616
await Promise.all(dataSources.map(seedChinookDatabase))
17-
1817
}

0 commit comments

Comments
 (0)