relation between entities and persist data in them