Providing a foundation for many-to-many relationships