made entity_id unique and 255 characters