entity, category and type model relation ship