references for model classes in relations