create table countries {
id: uuid();
name: string;
}create table cities {
id: uuid();
name: string;
counry_id: uuid references countries(id)
}
CREATE VIEW cities_fts
SELECT
cities.id as city_id,
cities.country_id as county_id, to_tsvector('english', concat_ws(' ', cities.name, country.name )) AS fts
FROM countries, cities
WHERE (cities.country_id = countries.id);
.from('custom_view').select(*, counties(*)) I will get a response with country object included..from('custom_view').select(*, cities(*)) I'll get an error about no relationship between custom_view view and citiescities.id which is just a id and not a foreign key and cities.county_id which is a foreign key, right?