connector { provider: .mysql, url: "mysql://localhost:3306/oct22", } server { bind: ("0.0.0.0", 5500), } model Artist { @id @readonly @autoIncrement id: Int name: String @relation(through: Perform, local: .artist, foreign: .song) songs: Song[] } model Song { @id @readonly @autoIncrement id: Int name: String @relation(through: Perform, local: .song, foreign: .artist) artists: Artist[] } @id([.songId, .artistId]) model Perform { @relation(fields: .songId, references: .id) song: Song @relation(fields: .artistId, references: .id) artist: Artist @foreignKey songId: Int @foreignKey artistId: Int }