What country did Moldova belong to?

Moldova is an independent country now; but the province Transnistria is controlled by Russia and Southern Basarabia is under Ukrainian control.