Definition of entity type and entity instance