Instead of a many-to-many join table, serialize the ids into a JSON array.