tim
10/25/2018, 9:38 PMtype Song @model {
id: ID! @isUnique
name: String!
performances: [SongPerformance!]! @relation(name: "Song??")
}
type SongPerformance @model {
id: ID! @isUnique
song: Song! @relation(name: "Song??")
concerts: [SongPerformance!]! @relation(name: "SongPerformances")
}
type Concert @model {
id: ID! @isUnique
setlist: [SongPerformance!]! @relation(name: "SongPerformances")
}
basically the models are a song, a concert, and songPerformance which is an instance of the song being played at a concert. Anyone have a good name for that? And do the relationships look correct?