Many-to-many associations in phoenix and ecto

The first one seems a sensible approach.

The problem with the second one, is that the table doesn’t have primary key.

Thanks!