A Formal Definition of Entity-Relationship Models