So I'm creating a simple app where user can posts. I'm still learning elixir so please bear with me.
MODEL SCHEMA
- User
- Avatar
- Post
- Comment
My problem is associating the user in the comment schema.
user -> has_one -> avatar
user -> has_many -> post -> has_many -> comments (user?)
I'm confused on how will I associate the user to comments