Postgresql Create View With Foreign Key