fix: initial foreign key value can be undefined or null currently depending on RETURNING