dottelsc
10/01/2021, 2:50 PMcreate table user_roles (
id bigint generated by default as identity primary key,
user_id uuid references auth.users not null,
role_definition_id bigint references role_definitions (id)
);
Why does auth.users correctly reference a foreign key but if I do role_definitions.id it says schema permissions doesn't exist?HarryET
10/01/2021, 6:47 PMJanR
10/01/2021, 8:23 PMchasers
10/01/2021, 8:58 PMcurl 'https://ixlqpcigbdlbmfnvzxtw.supabase.co/rest/v1/buyers?select=json_agg%28buyers%29'
I get {"hint":"If a new foreign key between these entities was created in the database, try reloading the schema cache.","message":"Could not find a relationship between buyers and json_agg in the schema cache"}
and am wondering what I'm doing wrong.
Works great in the sql editor. Many thanks!chasers
10/01/2021, 9:24 PMchasers
10/01/2021, 9:25 PMchasers
10/01/2021, 9:25 PMchasers
10/01/2021, 9:25 PMsilentworks
10/01/2021, 9:52 PMHarryET
10/01/2021, 11:22 PMid,
chat_id,
members (
id,
nickname,
auth.users (
raw_user_meta_data
)
),
created_at,
edited_at
but get a 400 back with
json
{
"hint":"If a new foreign key between these entities was created in the database, try reloading the schema cache.",
"message":"Could not find a relationship between members and auth in the schema cache"
}
Even though i do have a forign key between members and auth.userssilentworks
10/02/2021, 1:22 AMRossveth
10/02/2021, 2:52 AMjak
10/02/2021, 9:42 AMbnjmnt4n
10/02/2021, 10:20 AMeunjae
10/02/2021, 10:55 AMYogurtDrinker
10/02/2021, 11:06 AMNow()
thoughYogurtDrinker
10/02/2021, 11:43 AMCURRENT_TIME
worksNig0
10/02/2021, 12:02 PMLautaro Pereyra
10/02/2021, 2:23 PMScott P
10/02/2021, 3:01 PMHal
10/02/2021, 3:31 PMPoypoypoy
10/02/2021, 4:38 PMdhzdhd
10/02/2021, 5:37 PMdhzdhd
10/02/2021, 5:37 PMdhzdhd
10/02/2021, 5:37 PMdhzdhd
10/02/2021, 6:45 PMdhzdhd
10/02/2021, 6:45 PMMihai Andrei
10/02/2021, 7:54 PMlarryM
10/03/2021, 2:03 AMsilentworks
10/03/2021, 2:07 AM