Simple one-to-one relation throws error

I am using PG 10.14.1