Five teams play a single round robin, and each team has two home courts. How to group?

To put it simply, draw lots for 5 teams with the number 1-5.

The schedule is as follows (the first one is home):

Round 1: 2-5, 3-4

Round 2:1-3,4-2

Round 3: 5- 1, 2-3

Round 4: 1-2, 5-4

Round 5: 4- 1.3-5

The advantage of this schedule is to ensure that the schedules of each team are separated from the home and away games.