Created structure for models query