Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions DATABASE_INIT.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
);


Expand Down Expand Up @@ -133,4 +135,16 @@ ALTER TABLE public.users ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
NO MINVALUE
NO MAXVALUE
CACHE 1
);
);


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
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Formatting) Missing semicolon


ALTER TABLE public.profiles OWNER TO postgres;