Add id autoincrement for many-to-many relations entities.