From 6d600c8545116a9e9d089ce6d5685e03e77a2411 Mon Sep 17 00:00:00 2001 From: Nick Raskop Date: Wed, 7 Feb 2024 23:52:11 -0800 Subject: [PATCH 1/2] Add podium and events migrations --- .../20240207000000_create_events_contacts.sql | 11 +++++++++++ .../20240207000000_create_events_event_tags.sql | 7 +++++++ .../20240207000000_create_events_events.sql | 13 +++++++++++++ .../20240207000000_create_events_industry_tags.sql | 7 +++++++ .../20240207000000_create_events_pinned_events.sql | 7 +++++++ .../20240207000000_create_podium_comments.sql | 10 ++++++++++ .../20240207000000_create_podium_judges.sql | 7 +++++++ .../20240207000000_create_podium_notes.sql | 8 ++++++++ .../20240207000000_create_podium_projects.sql | 14 ++++++++++++++ .../20240207000000_create_podium_ranking.sql | 8 ++++++++ .../20240207000000_create_podium_ranking_final.sql | 7 +++++++ .../20240207000000_create_podium_ranking_locks.sql | 6 ++++++ .../20240207000000_create_podium_verticals.sql | 7 +++++++ 13 files changed, 112 insertions(+) create mode 100644 supabase/migrations/20240207000000_create_events_contacts.sql create mode 100644 supabase/migrations/20240207000000_create_events_event_tags.sql create mode 100644 supabase/migrations/20240207000000_create_events_events.sql create mode 100644 supabase/migrations/20240207000000_create_events_industry_tags.sql create mode 100644 supabase/migrations/20240207000000_create_events_pinned_events.sql create mode 100644 supabase/migrations/20240207000000_create_podium_comments.sql create mode 100644 supabase/migrations/20240207000000_create_podium_judges.sql create mode 100644 supabase/migrations/20240207000000_create_podium_notes.sql create mode 100644 supabase/migrations/20240207000000_create_podium_projects.sql create mode 100644 supabase/migrations/20240207000000_create_podium_ranking.sql create mode 100644 supabase/migrations/20240207000000_create_podium_ranking_final.sql create mode 100644 supabase/migrations/20240207000000_create_podium_ranking_locks.sql create mode 100644 supabase/migrations/20240207000000_create_podium_verticals.sql diff --git a/supabase/migrations/20240207000000_create_events_contacts.sql b/supabase/migrations/20240207000000_create_events_contacts.sql new file mode 100644 index 00000000..e50dc4b4 --- /dev/null +++ b/supabase/migrations/20240207000000_create_events_contacts.sql @@ -0,0 +1,11 @@ +create table + events.contacts ( + contact_id uuid not null default gen_random_uuid (), + event_id uuid not null, + name character varying not null, + role character varying null, + phone character varying null, + email character varying null, + constraint contacts_pkey primary key (contact_id), + constraint contacts_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_event_tags.sql b/supabase/migrations/20240207000000_create_events_event_tags.sql new file mode 100644 index 00000000..d0949848 --- /dev/null +++ b/supabase/migrations/20240207000000_create_events_event_tags.sql @@ -0,0 +1,7 @@ +create table + events.event_tags ( + event_id uuid not null, + event_tag character varying not null, + constraint event_tags_pkey primary key (event_id, event_tag), + constraint event_tags_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_events.sql b/supabase/migrations/20240207000000_create_events_events.sql new file mode 100644 index 00000000..368d8431 --- /dev/null +++ b/supabase/migrations/20240207000000_create_events_events.sql @@ -0,0 +1,13 @@ +create table + events.events ( + event_id uuid not null default gen_random_uuid (), + name character varying not null, + start_time timestamp with time zone not null, + end_time timestamp with time zone not null, + location character varying not null, + description character varying null, + bp_points bigint not null, + capacity bigint null, + organizer_details character varying null, + constraint events_pkey primary key (event_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_industry_tags.sql b/supabase/migrations/20240207000000_create_events_industry_tags.sql new file mode 100644 index 00000000..542a23b1 --- /dev/null +++ b/supabase/migrations/20240207000000_create_events_industry_tags.sql @@ -0,0 +1,7 @@ +create table + events.industry_tags ( + event_id uuid not null, + industry_tag character varying not null, + constraint industry_tags_pkey primary key (event_id, industry_tag), + constraint industry_tags_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_pinned_events.sql b/supabase/migrations/20240207000000_create_events_pinned_events.sql new file mode 100644 index 00000000..72b11d79 --- /dev/null +++ b/supabase/migrations/20240207000000_create_events_pinned_events.sql @@ -0,0 +1,7 @@ +create table + events.pinned_events ( + user_id uuid not null, + event_id uuid not null, + constraint pinned_events_pkey primary key (user_id, event_id), + constraint pinned_events_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_comments.sql b/supabase/migrations/20240207000000_create_podium_comments.sql new file mode 100644 index 00000000..dded067a --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_comments.sql @@ -0,0 +1,10 @@ +create table + podium.comments ( + project_id uuid not null, + user_id character varying not null, + comment character varying not null, + created_at timestamp with time zone not null default now(), + comment_id uuid not null default gen_random_uuid (), + constraint comments_pkey primary key (comment_id), + constraint comments_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_judges.sql b/supabase/migrations/20240207000000_create_podium_judges.sql new file mode 100644 index 00000000..8c6caebd --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_judges.sql @@ -0,0 +1,7 @@ +create table + podium.judges ( + user_id character varying not null, + vertical_id uuid null, + constraint judges_pkey primary key (user_id), + constraint judges_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_notes.sql b/supabase/migrations/20240207000000_create_podium_notes.sql new file mode 100644 index 00000000..b859f8d9 --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_notes.sql @@ -0,0 +1,8 @@ +create table + podium.notes ( + project_id uuid not null, + user_id character varying not null, + notes character varying not null, + constraint notes_pkey primary key (project_id, user_id), + constraint notes_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_projects.sql b/supabase/migrations/20240207000000_create_podium_projects.sql new file mode 100644 index 00000000..75452a9b --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_projects.sql @@ -0,0 +1,14 @@ +create table + podium.projects ( + project_id uuid not null default gen_random_uuid (), + vertical_id uuid not null, + name character varying not null, + team character varying null, + description character varying null, + image_url character varying null, + devpost_url character varying null, + video_url character varying null, + valid boolean not null default true, + constraint projects_pkey primary key (project_id), + constraint projects_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_ranking.sql b/supabase/migrations/20240207000000_create_podium_ranking.sql new file mode 100644 index 00000000..e2b39c12 --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_ranking.sql @@ -0,0 +1,8 @@ +create table + podium.ranking ( + project_id uuid not null, + user_id character varying not null, + rank bigint not null, + constraint ranking_pkey primary key (project_id, user_id), + constraint ranking_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_ranking_final.sql b/supabase/migrations/20240207000000_create_podium_ranking_final.sql new file mode 100644 index 00000000..da24b20e --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_ranking_final.sql @@ -0,0 +1,7 @@ +create table + podium.ranking_final ( + project_id uuid not null, + rank bigint not null, + constraint ranking_final_pkey primary key (project_id), + constraint ranking_final_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_ranking_locks.sql b/supabase/migrations/20240207000000_create_podium_ranking_locks.sql new file mode 100644 index 00000000..d51ba395 --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_ranking_locks.sql @@ -0,0 +1,6 @@ +create table + podium.ranking_locks ( + vertical_id uuid not null, + constraint ranking_locks_pkey primary key (vertical_id), + constraint ranking_locks_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) + ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_verticals.sql b/supabase/migrations/20240207000000_create_podium_verticals.sql new file mode 100644 index 00000000..02bf18b8 --- /dev/null +++ b/supabase/migrations/20240207000000_create_podium_verticals.sql @@ -0,0 +1,7 @@ +create table + podium.verticals ( + vertical_id uuid not null default gen_random_uuid (), + name character varying not null, + description character varying null, + constraint verticals_pkey primary key (vertical_id) + ) tablespace pg_default; \ No newline at end of file From 08824556d30465c3a8ed1655bf916fe3fe7580a1 Mon Sep 17 00:00:00 2001 From: Jiong Yan Yap Date: Tue, 19 Mar 2024 17:19:59 -0700 Subject: [PATCH 2/2] Merge migrations into single file, add create schema commands --- ...0240207000000_create_events_and_podium.sql | 132 ++++++++++++++++++ .../20240207000000_create_events_contacts.sql | 11 -- ...0240207000000_create_events_event_tags.sql | 7 - .../20240207000000_create_events_events.sql | 13 -- ...0207000000_create_events_industry_tags.sql | 7 - ...0207000000_create_events_pinned_events.sql | 7 - .../20240207000000_create_podium_comments.sql | 10 -- .../20240207000000_create_podium_judges.sql | 7 - .../20240207000000_create_podium_notes.sql | 8 -- .../20240207000000_create_podium_projects.sql | 14 -- .../20240207000000_create_podium_ranking.sql | 8 -- ...0207000000_create_podium_ranking_final.sql | 7 - ...0207000000_create_podium_ranking_locks.sql | 6 - ...20240207000000_create_podium_verticals.sql | 7 - 14 files changed, 132 insertions(+), 112 deletions(-) create mode 100644 supabase/migrations/20240207000000_create_events_and_podium.sql delete mode 100644 supabase/migrations/20240207000000_create_events_contacts.sql delete mode 100644 supabase/migrations/20240207000000_create_events_event_tags.sql delete mode 100644 supabase/migrations/20240207000000_create_events_events.sql delete mode 100644 supabase/migrations/20240207000000_create_events_industry_tags.sql delete mode 100644 supabase/migrations/20240207000000_create_events_pinned_events.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_comments.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_judges.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_notes.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_projects.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_ranking.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_ranking_final.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_ranking_locks.sql delete mode 100644 supabase/migrations/20240207000000_create_podium_verticals.sql diff --git a/supabase/migrations/20240207000000_create_events_and_podium.sql b/supabase/migrations/20240207000000_create_events_and_podium.sql new file mode 100644 index 00000000..bac49183 --- /dev/null +++ b/supabase/migrations/20240207000000_create_events_and_podium.sql @@ -0,0 +1,132 @@ +--EVENT SERVICE +create schema events; + +create table + events.events ( + event_id uuid not null default gen_random_uuid (), + name character varying not null, + start_time timestamp with time zone not null, + end_time timestamp with time zone not null, + location character varying not null, + description character varying null, + bp_points bigint not null, + capacity bigint null, + organizer_details character varying null, + constraint events_pkey primary key (event_id) + ) tablespace pg_default; + +create table + events.contacts ( + contact_id uuid not null default gen_random_uuid (), + event_id uuid not null, + name character varying not null, + role character varying null, + phone character varying null, + email character varying null, + constraint contacts_pkey primary key (contact_id), + constraint contacts_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; + +create table + events.event_tags ( + event_id uuid not null, + event_tag character varying not null, + constraint event_tags_pkey primary key (event_id, event_tag), + constraint event_tags_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; + +create table + events.industry_tags ( + event_id uuid not null, + industry_tag character varying not null, + constraint industry_tags_pkey primary key (event_id, industry_tag), + constraint industry_tags_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; + +create table + events.pinned_events ( + user_id uuid not null, + event_id uuid not null, + constraint pinned_events_pkey primary key (user_id, event_id), + constraint pinned_events_event_id_fkey foreign key (event_id) references events.events (event_id) + ) tablespace pg_default; + + +--PODIUM +create schema podium; + +create table + podium.verticals ( + vertical_id uuid not null default gen_random_uuid (), + name character varying not null, + description character varying null, + constraint verticals_pkey primary key (vertical_id) + ) tablespace pg_default; + +create table + podium.projects ( + project_id uuid not null default gen_random_uuid (), + vertical_id uuid not null, + name character varying not null, + team character varying null, + description character varying null, + image_url character varying null, + devpost_url character varying null, + video_url character varying null, + valid boolean not null default true, + constraint projects_pkey primary key (project_id), + constraint projects_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) + ) tablespace pg_default; + +create table + podium.comments ( + project_id uuid not null, + user_id character varying not null, + comment character varying not null, + created_at timestamp with time zone not null default now(), + comment_id uuid not null default gen_random_uuid (), + constraint comments_pkey primary key (comment_id), + constraint comments_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; + +create table + podium.judges ( + user_id character varying not null, + vertical_id uuid null, + constraint judges_pkey primary key (user_id), + constraint judges_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) + ) tablespace pg_default; + +create table + podium.notes ( + project_id uuid not null, + user_id character varying not null, + notes character varying not null, + constraint notes_pkey primary key (project_id, user_id), + constraint notes_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; + +create table + podium.ranking_final ( + project_id uuid not null, + rank bigint not null, + constraint ranking_final_pkey primary key (project_id), + constraint ranking_final_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; + +create table + podium.ranking_locks ( + vertical_id uuid not null, + constraint ranking_locks_pkey primary key (vertical_id), + constraint ranking_locks_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) + ) tablespace pg_default; + +create table + podium.ranking ( + project_id uuid not null, + user_id character varying not null, + rank bigint not null, + constraint ranking_pkey primary key (project_id, user_id), + constraint ranking_project_id_fkey foreign key (project_id) references podium.projects (project_id) + ) tablespace pg_default; + diff --git a/supabase/migrations/20240207000000_create_events_contacts.sql b/supabase/migrations/20240207000000_create_events_contacts.sql deleted file mode 100644 index e50dc4b4..00000000 --- a/supabase/migrations/20240207000000_create_events_contacts.sql +++ /dev/null @@ -1,11 +0,0 @@ -create table - events.contacts ( - contact_id uuid not null default gen_random_uuid (), - event_id uuid not null, - name character varying not null, - role character varying null, - phone character varying null, - email character varying null, - constraint contacts_pkey primary key (contact_id), - constraint contacts_event_id_fkey foreign key (event_id) references events.events (event_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_event_tags.sql b/supabase/migrations/20240207000000_create_events_event_tags.sql deleted file mode 100644 index d0949848..00000000 --- a/supabase/migrations/20240207000000_create_events_event_tags.sql +++ /dev/null @@ -1,7 +0,0 @@ -create table - events.event_tags ( - event_id uuid not null, - event_tag character varying not null, - constraint event_tags_pkey primary key (event_id, event_tag), - constraint event_tags_event_id_fkey foreign key (event_id) references events.events (event_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_events.sql b/supabase/migrations/20240207000000_create_events_events.sql deleted file mode 100644 index 368d8431..00000000 --- a/supabase/migrations/20240207000000_create_events_events.sql +++ /dev/null @@ -1,13 +0,0 @@ -create table - events.events ( - event_id uuid not null default gen_random_uuid (), - name character varying not null, - start_time timestamp with time zone not null, - end_time timestamp with time zone not null, - location character varying not null, - description character varying null, - bp_points bigint not null, - capacity bigint null, - organizer_details character varying null, - constraint events_pkey primary key (event_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_industry_tags.sql b/supabase/migrations/20240207000000_create_events_industry_tags.sql deleted file mode 100644 index 542a23b1..00000000 --- a/supabase/migrations/20240207000000_create_events_industry_tags.sql +++ /dev/null @@ -1,7 +0,0 @@ -create table - events.industry_tags ( - event_id uuid not null, - industry_tag character varying not null, - constraint industry_tags_pkey primary key (event_id, industry_tag), - constraint industry_tags_event_id_fkey foreign key (event_id) references events.events (event_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_events_pinned_events.sql b/supabase/migrations/20240207000000_create_events_pinned_events.sql deleted file mode 100644 index 72b11d79..00000000 --- a/supabase/migrations/20240207000000_create_events_pinned_events.sql +++ /dev/null @@ -1,7 +0,0 @@ -create table - events.pinned_events ( - user_id uuid not null, - event_id uuid not null, - constraint pinned_events_pkey primary key (user_id, event_id), - constraint pinned_events_event_id_fkey foreign key (event_id) references events.events (event_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_comments.sql b/supabase/migrations/20240207000000_create_podium_comments.sql deleted file mode 100644 index dded067a..00000000 --- a/supabase/migrations/20240207000000_create_podium_comments.sql +++ /dev/null @@ -1,10 +0,0 @@ -create table - podium.comments ( - project_id uuid not null, - user_id character varying not null, - comment character varying not null, - created_at timestamp with time zone not null default now(), - comment_id uuid not null default gen_random_uuid (), - constraint comments_pkey primary key (comment_id), - constraint comments_project_id_fkey foreign key (project_id) references podium.projects (project_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_judges.sql b/supabase/migrations/20240207000000_create_podium_judges.sql deleted file mode 100644 index 8c6caebd..00000000 --- a/supabase/migrations/20240207000000_create_podium_judges.sql +++ /dev/null @@ -1,7 +0,0 @@ -create table - podium.judges ( - user_id character varying not null, - vertical_id uuid null, - constraint judges_pkey primary key (user_id), - constraint judges_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_notes.sql b/supabase/migrations/20240207000000_create_podium_notes.sql deleted file mode 100644 index b859f8d9..00000000 --- a/supabase/migrations/20240207000000_create_podium_notes.sql +++ /dev/null @@ -1,8 +0,0 @@ -create table - podium.notes ( - project_id uuid not null, - user_id character varying not null, - notes character varying not null, - constraint notes_pkey primary key (project_id, user_id), - constraint notes_project_id_fkey foreign key (project_id) references podium.projects (project_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_projects.sql b/supabase/migrations/20240207000000_create_podium_projects.sql deleted file mode 100644 index 75452a9b..00000000 --- a/supabase/migrations/20240207000000_create_podium_projects.sql +++ /dev/null @@ -1,14 +0,0 @@ -create table - podium.projects ( - project_id uuid not null default gen_random_uuid (), - vertical_id uuid not null, - name character varying not null, - team character varying null, - description character varying null, - image_url character varying null, - devpost_url character varying null, - video_url character varying null, - valid boolean not null default true, - constraint projects_pkey primary key (project_id), - constraint projects_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_ranking.sql b/supabase/migrations/20240207000000_create_podium_ranking.sql deleted file mode 100644 index e2b39c12..00000000 --- a/supabase/migrations/20240207000000_create_podium_ranking.sql +++ /dev/null @@ -1,8 +0,0 @@ -create table - podium.ranking ( - project_id uuid not null, - user_id character varying not null, - rank bigint not null, - constraint ranking_pkey primary key (project_id, user_id), - constraint ranking_project_id_fkey foreign key (project_id) references podium.projects (project_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_ranking_final.sql b/supabase/migrations/20240207000000_create_podium_ranking_final.sql deleted file mode 100644 index da24b20e..00000000 --- a/supabase/migrations/20240207000000_create_podium_ranking_final.sql +++ /dev/null @@ -1,7 +0,0 @@ -create table - podium.ranking_final ( - project_id uuid not null, - rank bigint not null, - constraint ranking_final_pkey primary key (project_id), - constraint ranking_final_project_id_fkey foreign key (project_id) references podium.projects (project_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_ranking_locks.sql b/supabase/migrations/20240207000000_create_podium_ranking_locks.sql deleted file mode 100644 index d51ba395..00000000 --- a/supabase/migrations/20240207000000_create_podium_ranking_locks.sql +++ /dev/null @@ -1,6 +0,0 @@ -create table - podium.ranking_locks ( - vertical_id uuid not null, - constraint ranking_locks_pkey primary key (vertical_id), - constraint ranking_locks_vertical_id_fkey foreign key (vertical_id) references podium.verticals (vertical_id) - ) tablespace pg_default; \ No newline at end of file diff --git a/supabase/migrations/20240207000000_create_podium_verticals.sql b/supabase/migrations/20240207000000_create_podium_verticals.sql deleted file mode 100644 index 02bf18b8..00000000 --- a/supabase/migrations/20240207000000_create_podium_verticals.sql +++ /dev/null @@ -1,7 +0,0 @@ -create table - podium.verticals ( - vertical_id uuid not null default gen_random_uuid (), - name character varying not null, - description character varying null, - constraint verticals_pkey primary key (vertical_id) - ) tablespace pg_default; \ No newline at end of file