Add new relation view definition function.