roman à clef
noun
°a piece of fiction, especially a novel, containing real-life people and/or events.