I assume that you are using module generator to create basic module structure. Here are 2 articles about creating relations.
View at Medium.com
Support staff monitor the community forum and email 9 AM - 6 PM, Monday to Friday. Please be patient when posting an issue as staff may not be in the same timezone as you.