How to build custom relationship 1:M?

custom relationship 1:M