Added Type enum to Relation class