Database Design with EF Core: Two Entities share another Entity

I'm building a website to store Procedures, which contains multiple Steps. Both the procedure and the steps have Media entities, a wrapper for files stored on the server. The procedure has a single media (the header picture, one-to-one), but the steps have multiple images (many-to-many).

How can I handle the context setup?
Was this page helpful?