mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
* fix: hono example. * fix: hono quickstart. * chore: update numbered list.
19 lines
486 B
SQL
19 lines
486 B
SQL
-- Create the table
|
|
create table countries (
|
|
id bigint primary key generated always as identity,
|
|
name text not null
|
|
);
|
|
-- Insert some sample data into the table
|
|
insert into countries (name)
|
|
values
|
|
('Canada'),
|
|
('United States'),
|
|
('Mexico');
|
|
|
|
alter table countries enable row level security;
|
|
|
|
-- Create a policy that allows authenticated users to read countries
|
|
create policy "authenticated users can read countries"
|
|
on public.countries
|
|
for select to authenticated
|
|
using (true); |