make sure all fields relation type