Help to create a relationship with a foreign_key

Hi guys!

I’m new with backend and databases and I’m having trouble making a relationship with a foreign_key.

I tried to follow the beginning of ecto and elixir school but this not works: pensive:.

Someone can show me a repo or some example what implements this for i try please?

You can use GitHub to find useful examples of implementations, example: https://github.com/search?l=Elixir&q=has_many&type=Code