View supabase_svelte_todolist_todolist.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- For use with: | |
-- https://github.com/supabase/supabase/tree/master/examples/todo-list/nextjs-todo-list or | |
-- https://github.com/supabase/supabase/tree/master/examples/todo-list/react-todo-list or | |
-- https://github.com/supabase/supabase/tree/master/examples/todo-list/sveltejs-todo-list or | |
-- https://github.com/supabase/supabase/tree/master/examples/todo-list/vue3-ts-todo-list | |
-- | |
create table todos ( | |
id bigint generated by default as identity primary key, |
View supabase_svelte_todolist_profiles.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create a table for public profiles | |
create table profiles ( | |
id uuid references auth.users not null primary key, | |
updated_at timestamp with time zone, | |
username text unique, | |
full_name text, | |
avatar_url text, | |
website text, | |
constraint username_length check (char_length(username) >= 3) |