Creating an Entity-relationship model in Rstudi

Hi,

Can someone please point we in the right direction, I am trying to create an Entity-relationship model from scratch in R. I have read on the dm package but I cannot seem to figure it out. Please see the image, this is what I am trying to achieve

See the usage section of this page