From 3d9374b6be41fcf80b0f12366b419d3e9a51f574 Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 27 Feb 2023 11:20:03 -0300 Subject: [PATCH] issue5: The INIT_DATABASE File need update. i received missing profiles table #5 --- DATABASE_INIT.sql | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/DATABASE_INIT.sql b/DATABASE_INIT.sql index 517a35f..c32f39c 100644 --- a/DATABASE_INIT.sql +++ b/DATABASE_INIT.sql @@ -37,7 +37,9 @@ CREATE TABLE public.rooms ( owner_id integer NOT NULL, name character varying DEFAULT 'New Room'::character varying NOT NULL, "isPublic" boolean DEFAULT true NOT NULL, - slug character varying NOT NULL + slug character varying NOT NULL, + visibility text NOT NULL, + creator_id text NOT NULL ); @@ -133,4 +135,16 @@ ALTER TABLE public.users ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( NO MINVALUE NO MAXVALUE CACHE 1 -); \ No newline at end of file +); + + +CREATE TABLE public.profiles ( + id text NOT NULL, + service character varying DEFAULT 'spotify'::character varying NOT NULL, + service_id text NULL, + service_avatar_url text NULL, + service_display_name text NULL, + display_name text NULL +) + +ALTER TABLE public.profiles OWNER TO postgres; \ No newline at end of file