OVT-7678: Prevent creation of relation

With codes itself. Backend implementation. Need to do GUI part as well.