diff --git a/db/query.sql b/db/query.sql new file mode 100644 index 0000000..525f502 --- /dev/null +++ b/db/query.sql @@ -0,0 +1,43 @@ +create table public.profiles ( + id bigint generated by default as identity primary key, + email text not null, + first_name text +); + +create or replace function public.handle_new_user() +returns trigger as $$ +begin + insert into public.profiles (id, email, first_name) + values ( + new.id, + new.email, + new.raw_user_meta_data ->> 'first_name' + ); + return new; +end; +$$ language plpgsql security definer; + + +create table public.book_library ( + id bigint generated by default as identity primary key, + user_id uuid references auth.users not null, + g_id text not null, + title text, + authors text, + thumbnail text, + categories text, + rating float, + insertedAt timestamp with time zone default timezone('utc'::text, now()) not null +); + +create table public.book_wishlist ( + id bigint generated by default as identity primary key, + user_id uuid references auth.users not null, + g_id text not null, + title text, + authors text, + thumbnail text, + categories text, + rating float, + insertedAt timestamp with time zone default timezone('utc'::text, now()) not null +); \ No newline at end of file diff --git a/public/images/bookworm-logo.png b/public/images/bookworm-logo.png index 7c46c8b..4606535 100644 Binary files a/public/images/bookworm-logo.png and b/public/images/bookworm-logo.png differ diff --git a/public/images/bookworm-seo-image.png b/public/images/bookworm-seo-image.png index f2a9029..b72208d 100644 Binary files a/public/images/bookworm-seo-image.png and b/public/images/bookworm-seo-image.png differ diff --git a/resources/Bookworm - Presentation.pdf b/resources/Bookworm - Presentation.pdf new file mode 100644 index 0000000..40a9a48 Binary files /dev/null and b/resources/Bookworm - Presentation.pdf differ