rooms fk constraint check