Given the use case below, design a database schema to represent the data involved in the problem.
Identify the tables and the relationships between them. Define the primary and foreign keys to ensure data integrity. Keep the schema as simple as possible—avoid adding unnecessary complexity.
Create a diagram representing the tables and their relationships (a simplified version, without the need for formal ERD notation). You can use draw.io or any other tool of your choice for visualization.
A rock fan wants to manage their music library. They need to keep an inventory of their albums, including the title, band/artist, and year for each one. An album may either be credited to a band or one (or more) artists.
Bands are naturally composed of artists, for whom we also note the instruments they play. Additionally, an album may feature guest stars who contributed without being credited as the primary artist on the album. An artist might simultaneously be part of one (or more) bands and collaborate on one (or more) albums as a guest.
In short, all possible situations need to be accounted for, and it should be possible to retrieve all relevant information related to the albums, the bands, their members, the history of each musician, etc.