defined database model relationships