Setting up database relationships in the Marking Calendar

hello everyone, I have a calendar that I want to set up for 2 relationships, the first one is closing the date by the ad author and the second one is to select some free dates by the user. everything is as in the photo example, how do you need to set up and combine all this into one calendar?

I can make 1 marked date, but I don’t understand how to make a lot of them?