diff --git a/cordis/restore.sql b/cordis/restore.sql new file mode 100644 index 0000000..a124876 --- /dev/null +++ b/cordis/restore.sql @@ -0,0 +1,1732 @@ +-- +-- NOTE: +-- +-- File paths need to be edited. Search for $$PATH$$ and +-- replace it with the path to the directory containing +-- the extracted data files. +-- +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 9.5.20 +-- Dumped by pg_dump version 14.4 + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +DROP DATABASE IF EXISTS cordis_temporary; +-- +-- Name: cordis_temporary; Type: DATABASE; Schema: -; Owner: postgres +-- + +CREATE DATABASE cordis_temporary WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE = 'en_US.utf8'; + + +ALTER DATABASE cordis_temporary OWNER TO postgres; + +\connect cordis_temporary + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Name: cordis_temporary; Type: DATABASE PROPERTIES; Schema: -; Owner: postgres +-- + +ALTER DATABASE cordis_temporary SET search_path TO 'unics_cordis'; + + +\connect cordis_temporary + +CREATE EXTENSION IF NOT EXISTS pg_trgm SCHEMA cordis_temporary; +CREATE EXTENSION IF NOT EXISTS pg_trgm SCHEMA public; + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Name: unics_cordis; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA unics_cordis; + + +ALTER SCHEMA unics_cordis OWNER TO postgres; + +SET default_tablespace = ''; + +-- +-- Name: activity_types; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.activity_types ( + code text NOT NULL, + description text +); + + +ALTER TABLE unics_cordis.activity_types OWNER TO postgres; + +-- +-- Name: countries; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.countries ( + unics_id integer NOT NULL, + country_name text NOT NULL, + country_code2 character varying(2) NOT NULL, + country_code3 character varying(3) NOT NULL, + geocode_country_code character varying(2) +); + + +ALTER TABLE unics_cordis.countries OWNER TO postgres; + +-- +-- Name: ec_framework_programs; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.ec_framework_programs ( + ec_framework_program_name text NOT NULL +); + + +ALTER TABLE unics_cordis.ec_framework_programs OWNER TO postgres; + +-- +-- Name: projects; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.projects ( + unics_id integer NOT NULL, + acronym text, + title text, + ec_call text, + ec_fund_scheme text, + cordis_ref text, + ec_ref text, + start_date date, + end_date date, + start_year integer, + end_year integer, + homepage text, + total_cost double precision, + ec_max_contribution double precision, + framework_program text, + objective text, + principal_investigator integer +); + + +ALTER TABLE unics_cordis.projects OWNER TO postgres; + +-- +-- Name: erc_calls; Type: MATERIALIZED VIEW; Schema: unics_cordis; Owner: postgres +-- + +CREATE MATERIALIZED VIEW unics_cordis.erc_calls AS + SELECT q.ec_call, + q.erc_type, + q.erc_type_name + FROM ( SELECT DISTINCT p.ec_call, + CASE + WHEN (p.ec_call ~~* 'ERC-%-AdG%'::text) THEN 'ADG'::text + WHEN (p.ec_call ~~* 'ERC-%-CoG%'::text) THEN 'COG'::text + WHEN (p.ec_call ~~* 'ERC-%-PoC%'::text) THEN 'POC'::text + WHEN (p.ec_call ~~* 'ERC-%-STG%'::text) THEN 'STG'::text + WHEN (p.ec_call ~~* 'ERC-%-Sup%'::text) THEN 'SUP'::text + WHEN (p.ec_call ~~* 'ERC-%-SyG%'::text) THEN 'SYG'::text + ELSE NULL::text + END AS erc_type, + CASE + WHEN (p.ec_call ~~* 'ERC-%-AdG%'::text) THEN 'ERC Advanced Grant'::text + WHEN (p.ec_call ~~* 'ERC-%-CoG%'::text) THEN 'ERC Consolidator Grant'::text + WHEN (p.ec_call ~~* 'ERC-%-PoC%'::text) THEN 'ERC Proof of Concept Grant'::text + WHEN (p.ec_call ~~* 'ERC-%-STG%'::text) THEN 'ERC Starting Grant'::text + WHEN (p.ec_call ~~* 'ERC-%-Sup%'::text) THEN 'ERC Support'::text + WHEN (p.ec_call ~~* 'ERC-%-SyG%'::text) THEN 'ERC Synergy Grant'::text + ELSE NULL::text + END AS erc_type_name + FROM unics_cordis.projects p + WHERE (p.ec_call ~~* 'ERC-%'::text)) q + WHERE ((q.erc_type IS NOT NULL) AND (q.erc_type_name IS NOT NULL)) + WITH NO DATA; + + +ALTER TABLE unics_cordis.erc_calls OWNER TO postgres; + +-- +-- Name: erc_grants; Type: MATERIALIZED VIEW; Schema: unics_cordis; Owner: postgres +-- + +CREATE MATERIALIZED VIEW unics_cordis.erc_grants AS + SELECT DISTINCT erc_calls.erc_type AS code, + erc_calls.erc_type_name AS name + FROM unics_cordis.erc_calls + WITH NO DATA; + + +ALTER TABLE unics_cordis.erc_grants OWNER TO postgres; + +-- +-- Name: erc_panels; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.erc_panels ( + code text NOT NULL, + description text, + part_of text +); + + +ALTER TABLE unics_cordis.erc_panels OWNER TO postgres; + +-- +-- Name: erc_research_domains; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.erc_research_domains ( + code text NOT NULL, + description text +); + + +ALTER TABLE unics_cordis.erc_research_domains OWNER TO postgres; + +-- +-- Name: eu_territorial_units; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.eu_territorial_units ( + geocode_regions text NOT NULL, + description text, + geocode_level integer, + nuts_version text +); + + +ALTER TABLE unics_cordis.eu_territorial_units OWNER TO postgres; + +-- +-- Name: funding_schemes; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.funding_schemes ( + code text NOT NULL, + title text +); + + +ALTER TABLE unics_cordis.funding_schemes OWNER TO postgres; + +-- +-- Name: institutions; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.institutions ( + unics_id integer NOT NULL, + country_id integer, + institutions_name text NOT NULL, + geocode_regions_3 text, + db_pedia_url text, + wikidata_url text, + grid_id text, + acronym text, + short_name text, + website text, + document_vectors tsvector +); + + +ALTER TABLE unics_cordis.institutions OWNER TO postgres; + +-- +-- Name: nuts_hierarchy; Type: MATERIALIZED VIEW; Schema: unics_cordis; Owner: postgres +-- + +CREATE MATERIALIZED VIEW unics_cordis.nuts_hierarchy AS + SELECT etu.geocode_regions AS nuts_3, + "substring"(etu.geocode_regions, 1, 4) AS nuts_2, + "substring"(etu.geocode_regions, 1, 3) AS nuts_1 + FROM unics_cordis.eu_territorial_units etu + WHERE (length(etu.geocode_regions) >= 5) + WITH NO DATA; + + +ALTER TABLE unics_cordis.nuts_hierarchy OWNER TO postgres; + +-- +-- Name: people; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.people ( + unics_id integer NOT NULL, + full_name text +); + + +ALTER TABLE unics_cordis.people OWNER TO postgres; + +-- +-- Name: people_unics_id_seq; Type: SEQUENCE; Schema: unics_cordis; Owner: postgres +-- + +CREATE SEQUENCE unics_cordis.people_unics_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE unics_cordis.people_unics_id_seq OWNER TO postgres; + +-- +-- Name: people_unics_id_seq; Type: SEQUENCE OWNED BY; Schema: unics_cordis; Owner: postgres +-- + +ALTER SEQUENCE unics_cordis.people_unics_id_seq OWNED BY unics_cordis.people.unics_id; + + +-- +-- Name: programmes; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.programmes ( + code text NOT NULL, + rcn text, + title text, + short_name text, + parent text +); + + +ALTER TABLE unics_cordis.programmes OWNER TO postgres; + +-- +-- Name: programme_partof_programme; Type: MATERIALIZED VIEW; Schema: unics_cordis; Owner: postgres +-- + +CREATE MATERIALIZED VIEW unics_cordis.programme_partof_programme AS +( WITH RECURSIVE transitive_closure(prog, parent) AS ( + SELECT epp.code, + epp.parent + FROM unics_cordis.programmes epp + UNION ALL + SELECT tc.prog, + epp.parent + FROM (transitive_closure tc + JOIN unics_cordis.programmes epp ON ((epp.code = tc.parent))) + ) + SELECT transitive_closure.prog AS programme1, + transitive_closure.parent AS programme2 + FROM transitive_closure + WHERE (transitive_closure.parent IS NOT NULL)) +UNION ALL + SELECT epp.code AS programme1, + epp.code AS programme2 + FROM unics_cordis.programmes epp + WITH NO DATA; + + +ALTER TABLE unics_cordis.programme_partof_programme OWNER TO postgres; + +-- +-- Name: project_erc_panels; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.project_erc_panels ( + project integer NOT NULL, + panel text NOT NULL +); + + +ALTER TABLE unics_cordis.project_erc_panels OWNER TO postgres; + +-- +-- Name: project_member_roles; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.project_member_roles ( + code text NOT NULL, + description text +); + + +ALTER TABLE unics_cordis.project_member_roles OWNER TO postgres; + +-- +-- Name: project_members; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.project_members ( + unics_id integer NOT NULL, + project integer NOT NULL, + pic_number text, + rcn text, + member_name text, + activity_type text, + country text, + street text, + city text, + postal_code text, + ec_contribution double precision, + institution_id integer, + member_role text NOT NULL, + geocode_regions_3 text, + member_short_name text, + department_name text, + vat_number character varying, + latitude numeric, + longitude numeric, + region_code text, + region_name text +); + + +ALTER TABLE unics_cordis.project_members OWNER TO postgres; + +-- +-- Name: project_members_unics_id_seq; Type: SEQUENCE; Schema: unics_cordis; Owner: postgres +-- + +CREATE SEQUENCE unics_cordis.project_members_unics_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE unics_cordis.project_members_unics_id_seq OWNER TO postgres; + +-- +-- Name: project_members_unics_id_seq; Type: SEQUENCE OWNED BY; Schema: unics_cordis; Owner: postgres +-- + +ALTER SEQUENCE unics_cordis.project_members_unics_id_seq OWNED BY unics_cordis.project_members.unics_id; + + +-- +-- Name: project_programmes; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.project_programmes ( + project integer NOT NULL, + programme text NOT NULL +); + + +ALTER TABLE unics_cordis.project_programmes OWNER TO postgres; + +-- +-- Name: project_subject_areas; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.project_subject_areas ( + project integer NOT NULL, + subject_area text NOT NULL +); + + +ALTER TABLE unics_cordis.project_subject_areas OWNER TO postgres; + +-- +-- Name: project_topics; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.project_topics ( + project integer NOT NULL, + topic text NOT NULL +); + + +ALTER TABLE unics_cordis.project_topics OWNER TO postgres; + +-- +-- Name: projects_unics_id_seq; Type: SEQUENCE; Schema: unics_cordis; Owner: postgres +-- + +CREATE SEQUENCE unics_cordis.projects_unics_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE unics_cordis.projects_unics_id_seq OWNER TO postgres; + +-- +-- Name: projects_unics_id_seq; Type: SEQUENCE OWNED BY; Schema: unics_cordis; Owner: postgres +-- + +ALTER SEQUENCE unics_cordis.projects_unics_id_seq OWNED BY unics_cordis.projects.unics_id; + + +-- +-- Name: subject_areas; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.subject_areas ( + code text NOT NULL, + title text, + description text +); + + +ALTER TABLE unics_cordis.subject_areas OWNER TO postgres; + +-- +-- Name: topics; Type: TABLE; Schema: unics_cordis; Owner: postgres +-- + +CREATE TABLE unics_cordis.topics ( + code text NOT NULL, + rcn text, + title text +); + + +ALTER TABLE unics_cordis.topics OWNER TO postgres; + +-- +-- Name: people unics_id; Type: DEFAULT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.people ALTER COLUMN unics_id SET DEFAULT nextval('unics_cordis.people_unics_id_seq'::regclass); + + +-- +-- Name: project_members unics_id; Type: DEFAULT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_members ALTER COLUMN unics_id SET DEFAULT nextval('unics_cordis.project_members_unics_id_seq'::regclass); + + +-- +-- Name: projects unics_id; Type: DEFAULT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.projects ALTER COLUMN unics_id SET DEFAULT nextval('unics_cordis.projects_unics_id_seq'::regclass); + + +-- +-- Data for Name: activity_types; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2484.dat + +-- +-- Data for Name: countries; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2485.dat + +-- +-- Data for Name: ec_framework_programs; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2486.dat + +-- +-- Data for Name: erc_panels; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2490.dat + +-- +-- Data for Name: erc_research_domains; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2491.dat + +-- +-- Data for Name: eu_territorial_units; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2492.dat + +-- +-- Data for Name: funding_schemes; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2493.dat + +-- +-- Data for Name: institutions; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2494.dat + +-- +-- Data for Name: people; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2496.dat + +-- +-- Data for Name: programmes; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2498.dat + +-- +-- Data for Name: project_erc_panels; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2500.dat + +-- +-- Data for Name: project_member_roles; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2501.dat + +-- +-- Data for Name: project_members; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2502.dat + +-- +-- Data for Name: project_programmes; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2504.dat + +-- +-- Data for Name: project_subject_areas; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2505.dat + +-- +-- Data for Name: project_topics; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2506.dat + +-- +-- Data for Name: projects; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2487.dat + +-- +-- Data for Name: subject_areas; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2508.dat + +-- +-- Data for Name: topics; Type: TABLE DATA; Schema: unics_cordis; Owner: postgres +-- + +\i $$PATH$$/2509.dat + +-- +-- Name: people_unics_id_seq; Type: SEQUENCE SET; Schema: unics_cordis; Owner: postgres +-- + +SELECT pg_catalog.setval('unics_cordis.people_unics_id_seq', 1, false); + + +-- +-- Name: project_members_unics_id_seq; Type: SEQUENCE SET; Schema: unics_cordis; Owner: postgres +-- + +SELECT pg_catalog.setval('unics_cordis.project_members_unics_id_seq', 1, false); + + +-- +-- Name: projects_unics_id_seq; Type: SEQUENCE SET; Schema: unics_cordis; Owner: postgres +-- + +SELECT pg_catalog.setval('unics_cordis.projects_unics_id_seq', 1, false); + + +-- +-- Name: activity_types activity_types_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.activity_types + ADD CONSTRAINT activity_types_pkey PRIMARY KEY (code); + + +-- +-- Name: countries countries_country_code2_key; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.countries + ADD CONSTRAINT countries_country_code2_key UNIQUE (country_code2); + + +-- +-- Name: countries countries_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.countries + ADD CONSTRAINT countries_pkey PRIMARY KEY (unics_id); + + +-- +-- Name: ec_framework_programs ec_framework_programs_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.ec_framework_programs + ADD CONSTRAINT ec_framework_programs_pkey PRIMARY KEY (ec_framework_program_name); + + +-- +-- Name: erc_panels erc_panels_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.erc_panels + ADD CONSTRAINT erc_panels_pkey PRIMARY KEY (code); + + +-- +-- Name: erc_research_domains erc_research_domains_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.erc_research_domains + ADD CONSTRAINT erc_research_domains_pkey PRIMARY KEY (code); + + +-- +-- Name: eu_territorial_units eu_territorial_units_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.eu_territorial_units + ADD CONSTRAINT eu_territorial_units_pkey PRIMARY KEY (geocode_regions); + + +-- +-- Name: funding_schemes funding_schemes_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.funding_schemes + ADD CONSTRAINT funding_schemes_pkey PRIMARY KEY (code); + + +-- +-- Name: institutions institutions_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.institutions + ADD CONSTRAINT institutions_pkey PRIMARY KEY (unics_id); + + +-- +-- Name: people people_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.people + ADD CONSTRAINT people_pkey PRIMARY KEY (unics_id); + + +-- +-- Name: programmes programmes_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.programmes + ADD CONSTRAINT programmes_pkey PRIMARY KEY (code); + + +-- +-- Name: project_erc_panels project_erc_panels_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_erc_panels + ADD CONSTRAINT project_erc_panels_pkey PRIMARY KEY (project); + + +-- +-- Name: project_member_roles project_member_roles_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_member_roles + ADD CONSTRAINT project_member_roles_pkey PRIMARY KEY (code); + + +-- +-- Name: project_members project_members_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_members + ADD CONSTRAINT project_members_pkey PRIMARY KEY (unics_id); + + +-- +-- Name: project_programmes project_programmes_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_programmes + ADD CONSTRAINT project_programmes_pkey PRIMARY KEY (project, programme); + + +-- +-- Name: project_subject_areas project_subject_areas_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_subject_areas + ADD CONSTRAINT project_subject_areas_pkey PRIMARY KEY (project, subject_area); + + +-- +-- Name: project_topics project_topics_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_topics + ADD CONSTRAINT project_topics_pkey PRIMARY KEY (project, topic); + + +-- +-- Name: projects projects_cordis_ref_key; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.projects + ADD CONSTRAINT projects_cordis_ref_key UNIQUE (cordis_ref); + + +-- +-- Name: projects projects_ec_ref_key; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.projects + ADD CONSTRAINT projects_ec_ref_key UNIQUE (ec_ref); + + +-- +-- Name: projects projects_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.projects + ADD CONSTRAINT projects_pkey PRIMARY KEY (unics_id); + + +-- +-- Name: subject_areas subject_areas_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.subject_areas + ADD CONSTRAINT subject_areas_pkey PRIMARY KEY (code); + + +-- +-- Name: topics topics_pkey; Type: CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.topics + ADD CONSTRAINT topics_pkey PRIMARY KEY (code); + + +-- +-- Name: activity_types_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX activity_types_code_gist_idx ON unics_cordis.activity_types USING gist (code public.gist_trgm_ops); + + +-- +-- Name: activity_types_description_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX activity_types_description_gist_idx ON unics_cordis.activity_types USING gist (description public.gist_trgm_ops); + + +-- +-- Name: countries_country_code2_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX countries_country_code2_gist_idx ON unics_cordis.countries USING gist (country_code2 public.gist_trgm_ops); + + +-- +-- Name: countries_country_code3_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX countries_country_code3_gist_idx ON unics_cordis.countries USING gist (country_code3 public.gist_trgm_ops); + + +-- +-- Name: countries_country_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX countries_country_name_gist_idx ON unics_cordis.countries USING gist (country_name public.gist_trgm_ops); + + +-- +-- Name: countries_geocode_country_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX countries_geocode_country_code_gist_idx ON unics_cordis.countries USING gist (geocode_country_code public.gist_trgm_ops); + + +-- +-- Name: ec_framework_programs_ec_framework_program_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX ec_framework_programs_ec_framework_program_name_gist_idx ON unics_cordis.ec_framework_programs USING gist (ec_framework_program_name public.gist_trgm_ops); + + +-- +-- Name: erc_calls_ec_call_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE UNIQUE INDEX erc_calls_ec_call_idx ON unics_cordis.erc_calls USING btree (ec_call); + + +-- +-- Name: erc_grants_code_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE UNIQUE INDEX erc_grants_code_idx ON unics_cordis.erc_grants USING btree (code); + + +-- +-- Name: erc_grants_name_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE UNIQUE INDEX erc_grants_name_idx ON unics_cordis.erc_grants USING btree (name); + + +-- +-- Name: erc_panels_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX erc_panels_code_gist_idx ON unics_cordis.erc_panels USING gist (code public.gist_trgm_ops); + + +-- +-- Name: erc_panels_description_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX erc_panels_description_gist_idx ON unics_cordis.erc_panels USING gist (description public.gist_trgm_ops); + + +-- +-- Name: erc_panels_part_of_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX erc_panels_part_of_gist_idx ON unics_cordis.erc_panels USING gist (part_of public.gist_trgm_ops); + + +-- +-- Name: erc_research_domains_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX erc_research_domains_code_gist_idx ON unics_cordis.erc_research_domains USING gist (code public.gist_trgm_ops); + + +-- +-- Name: erc_research_domains_description_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX erc_research_domains_description_gist_idx ON unics_cordis.erc_research_domains USING gist (description public.gist_trgm_ops); + + +-- +-- Name: eu_territorial_units_description_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX eu_territorial_units_description_gist_idx ON unics_cordis.eu_territorial_units USING gist (description public.gist_trgm_ops); + + +-- +-- Name: eu_territorial_units_geocode_regions_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX eu_territorial_units_geocode_regions_gist_idx ON unics_cordis.eu_territorial_units USING gist (geocode_regions public.gist_trgm_ops); + + +-- +-- Name: eu_territorial_units_nuts_version_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX eu_territorial_units_nuts_version_gist_idx ON unics_cordis.eu_territorial_units USING gist (nuts_version public.gist_trgm_ops); + + +-- +-- Name: funding_schemes_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX funding_schemes_code_gist_idx ON unics_cordis.funding_schemes USING gist (code public.gist_trgm_ops); + + +-- +-- Name: funding_schemes_title_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX funding_schemes_title_gist_idx ON unics_cordis.funding_schemes USING gist (title public.gist_trgm_ops); + + +-- +-- Name: institutions_acronym_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_acronym_gist_idx ON unics_cordis.institutions USING gist (acronym public.gist_trgm_ops); + + +-- +-- Name: institutions_db_pedia_url_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_db_pedia_url_gist_idx ON unics_cordis.institutions USING gist (db_pedia_url public.gist_trgm_ops); + + +-- +-- Name: institutions_geocode_regions_3_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_geocode_regions_3_gist_idx ON unics_cordis.institutions USING gist (geocode_regions_3 public.gist_trgm_ops); + + +-- +-- Name: institutions_grid_id_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_grid_id_gist_idx ON unics_cordis.institutions USING gist (grid_id public.gist_trgm_ops); + + +-- +-- Name: institutions_institutions_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_institutions_name_gist_idx ON unics_cordis.institutions USING gist (institutions_name public.gist_trgm_ops); + + +-- +-- Name: institutions_short_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_short_name_gist_idx ON unics_cordis.institutions USING gist (short_name public.gist_trgm_ops); + + +-- +-- Name: institutions_website_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_website_gist_idx ON unics_cordis.institutions USING gist (website public.gist_trgm_ops); + + +-- +-- Name: institutions_wikidata_url_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX institutions_wikidata_url_gist_idx ON unics_cordis.institutions USING gist (wikidata_url public.gist_trgm_ops); + + +-- +-- Name: nuts_hierarchy_nuts_3_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE UNIQUE INDEX nuts_hierarchy_nuts_3_idx ON unics_cordis.nuts_hierarchy USING btree (nuts_3); + + +-- +-- Name: people_full_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX people_full_name_gist_idx ON unics_cordis.people USING gist (full_name public.gist_trgm_ops); + + +-- +-- Name: programmes_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX programmes_code_gist_idx ON unics_cordis.programmes USING gist (code public.gist_trgm_ops); + + +-- +-- Name: programmes_parent_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX programmes_parent_gist_idx ON unics_cordis.programmes USING gist (parent public.gist_trgm_ops); + + +-- +-- Name: programmes_rcn_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX programmes_rcn_gist_idx ON unics_cordis.programmes USING gist (rcn public.gist_trgm_ops); + + +-- +-- Name: programmes_short_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX programmes_short_name_gist_idx ON unics_cordis.programmes USING gist (short_name public.gist_trgm_ops); + + +-- +-- Name: programmes_title_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX programmes_title_gist_idx ON unics_cordis.programmes USING gist (title public.gist_trgm_ops); + + +-- +-- Name: project_erc_panels_panel_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_erc_panels_panel_gist_idx ON unics_cordis.project_erc_panels USING gist (panel public.gist_trgm_ops); + + +-- +-- Name: project_member_roles_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_member_roles_code_gist_idx ON unics_cordis.project_member_roles USING gist (code public.gist_trgm_ops); + + +-- +-- Name: project_member_roles_description_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_member_roles_description_gist_idx ON unics_cordis.project_member_roles USING gist (description public.gist_trgm_ops); + + +-- +-- Name: project_members_activity_type_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_activity_type_gist_idx ON unics_cordis.project_members USING gist (activity_type public.gist_trgm_ops); + + +-- +-- Name: project_members_city_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_city_gist_idx ON unics_cordis.project_members USING gist (city public.gist_trgm_ops); + + +-- +-- Name: project_members_country_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_country_gist_idx ON unics_cordis.project_members USING gist (country public.gist_trgm_ops); + + +-- +-- Name: project_members_department_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_department_name_gist_idx ON unics_cordis.project_members USING gist (department_name public.gist_trgm_ops); + + +-- +-- Name: project_members_geocode_regions_3_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_geocode_regions_3_gist_idx ON unics_cordis.project_members USING gist (geocode_regions_3 public.gist_trgm_ops); + + +-- +-- Name: project_members_institution_id_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_institution_id_idx ON unics_cordis.project_members USING btree (institution_id); + + +-- +-- Name: project_members_member_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_member_name_gist_idx ON unics_cordis.project_members USING gist (member_name public.gist_trgm_ops); + + +-- +-- Name: project_members_member_role_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_member_role_gist_idx ON unics_cordis.project_members USING gist (member_role public.gist_trgm_ops); + + +-- +-- Name: project_members_member_short_name_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_member_short_name_gist_idx ON unics_cordis.project_members USING gist (member_short_name public.gist_trgm_ops); + + +-- +-- Name: project_members_pic_number_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_pic_number_gist_idx ON unics_cordis.project_members USING gist (pic_number public.gist_trgm_ops); + + +-- +-- Name: project_members_postal_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_postal_code_gist_idx ON unics_cordis.project_members USING gist (postal_code public.gist_trgm_ops); + + +-- +-- Name: project_members_rcn_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_rcn_gist_idx ON unics_cordis.project_members USING gist (rcn public.gist_trgm_ops); + + +-- +-- Name: project_members_street_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_street_gist_idx ON unics_cordis.project_members USING gist (street public.gist_trgm_ops); + + +-- +-- Name: project_members_vat_number_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_members_vat_number_gist_idx ON unics_cordis.project_members USING gist (vat_number public.gist_trgm_ops); + + +-- +-- Name: project_programmes_programme_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_programmes_programme_gist_idx ON unics_cordis.project_programmes USING gist (programme public.gist_trgm_ops); + + +-- +-- Name: project_subject_areas_subject_area_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_subject_areas_subject_area_gist_idx ON unics_cordis.project_subject_areas USING gist (subject_area public.gist_trgm_ops); + + +-- +-- Name: project_topics_topic_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX project_topics_topic_gist_idx ON unics_cordis.project_topics USING gist (topic public.gist_trgm_ops); + + +-- +-- Name: projects_acronym_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_acronym_gist_idx ON unics_cordis.projects USING gist (acronym public.gist_trgm_ops); + + +-- +-- Name: projects_cordis_ref_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_cordis_ref_gist_idx ON unics_cordis.projects USING gist (cordis_ref public.gist_trgm_ops); + + +-- +-- Name: projects_ec_call_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_ec_call_gist_idx ON unics_cordis.projects USING gist (ec_call public.gist_trgm_ops); + + +-- +-- Name: projects_ec_fund_scheme_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_ec_fund_scheme_gist_idx ON unics_cordis.projects USING gist (ec_fund_scheme public.gist_trgm_ops); + + +-- +-- Name: projects_ec_ref_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_ec_ref_gist_idx ON unics_cordis.projects USING gist (ec_ref public.gist_trgm_ops); + + +-- +-- Name: projects_framework_program_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_framework_program_gist_idx ON unics_cordis.projects USING gist (framework_program public.gist_trgm_ops); + + +-- +-- Name: projects_homepage_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_homepage_gist_idx ON unics_cordis.projects USING gist (homepage public.gist_trgm_ops); + + +-- +-- Name: projects_objective_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_objective_gist_idx ON unics_cordis.projects USING gist (objective public.gist_trgm_ops); + + +-- +-- Name: projects_title_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX projects_title_gist_idx ON unics_cordis.projects USING gist (title public.gist_trgm_ops); + + +-- +-- Name: subject_areas_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX subject_areas_code_gist_idx ON unics_cordis.subject_areas USING gist (code public.gist_trgm_ops); + + +-- +-- Name: subject_areas_description_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX subject_areas_description_gist_idx ON unics_cordis.subject_areas USING gist (description public.gist_trgm_ops); + + +-- +-- Name: subject_areas_title_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX subject_areas_title_gist_idx ON unics_cordis.subject_areas USING gist (title public.gist_trgm_ops); + + +-- +-- Name: topics_code_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX topics_code_gist_idx ON unics_cordis.topics USING gist (code public.gist_trgm_ops); + + +-- +-- Name: topics_rcn_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX topics_rcn_gist_idx ON unics_cordis.topics USING gist (rcn public.gist_trgm_ops); + + +-- +-- Name: topics_title_gist_idx; Type: INDEX; Schema: unics_cordis; Owner: postgres +-- + +CREATE INDEX topics_title_gist_idx ON unics_cordis.topics USING gist (title public.gist_trgm_ops); + + +-- +-- Name: erc_panels erc_panels_part_of_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.erc_panels + ADD CONSTRAINT erc_panels_part_of_fkey FOREIGN KEY (part_of) REFERENCES unics_cordis.erc_research_domains(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: institutions institutions_countries_unics_id_fk; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.institutions + ADD CONSTRAINT institutions_countries_unics_id_fk FOREIGN KEY (country_id) REFERENCES unics_cordis.countries(unics_id); + + +-- +-- Name: institutions institutions_geocode_regions_3_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.institutions + ADD CONSTRAINT institutions_geocode_regions_3_fkey FOREIGN KEY (geocode_regions_3) REFERENCES unics_cordis.eu_territorial_units(geocode_regions) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: programmes programmes_parent_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.programmes + ADD CONSTRAINT programmes_parent_fkey FOREIGN KEY (parent) REFERENCES unics_cordis.programmes(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_erc_panels project_erc_panels_panel_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_erc_panels + ADD CONSTRAINT project_erc_panels_panel_fkey FOREIGN KEY (panel) REFERENCES unics_cordis.erc_panels(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_erc_panels project_erc_panels_project_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_erc_panels + ADD CONSTRAINT project_erc_panels_project_fkey FOREIGN KEY (project) REFERENCES unics_cordis.projects(unics_id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_members project_members_activity_type_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_members + ADD CONSTRAINT project_members_activity_type_fkey FOREIGN KEY (activity_type) REFERENCES unics_cordis.activity_types(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_members project_members_institutions_unics_id_fk; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_members + ADD CONSTRAINT project_members_institutions_unics_id_fk FOREIGN KEY (institution_id) REFERENCES unics_cordis.institutions(unics_id); + + +-- +-- Name: project_members project_members_member_role_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_members + ADD CONSTRAINT project_members_member_role_fkey FOREIGN KEY (member_role) REFERENCES unics_cordis.project_member_roles(code); + + +-- +-- Name: project_members project_members_nuts3_code_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_members + ADD CONSTRAINT project_members_nuts3_code_fkey FOREIGN KEY (geocode_regions_3) REFERENCES unics_cordis.eu_territorial_units(geocode_regions) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_members project_members_project_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_members + ADD CONSTRAINT project_members_project_fkey FOREIGN KEY (project) REFERENCES unics_cordis.projects(unics_id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_programmes project_programmes_programme_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_programmes + ADD CONSTRAINT project_programmes_programme_fkey FOREIGN KEY (programme) REFERENCES unics_cordis.programmes(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_programmes project_programmes_project_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_programmes + ADD CONSTRAINT project_programmes_project_fkey FOREIGN KEY (project) REFERENCES unics_cordis.projects(unics_id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_subject_areas project_subject_areas_project_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_subject_areas + ADD CONSTRAINT project_subject_areas_project_fkey FOREIGN KEY (project) REFERENCES unics_cordis.projects(unics_id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_subject_areas project_subject_areas_subject_area_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_subject_areas + ADD CONSTRAINT project_subject_areas_subject_area_fkey FOREIGN KEY (subject_area) REFERENCES unics_cordis.subject_areas(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_topics project_topics_project_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_topics + ADD CONSTRAINT project_topics_project_fkey FOREIGN KEY (project) REFERENCES unics_cordis.projects(unics_id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: project_topics project_topics_topic_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.project_topics + ADD CONSTRAINT project_topics_topic_fkey FOREIGN KEY (topic) REFERENCES unics_cordis.topics(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: projects projects_ec_fund_scheme_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.projects + ADD CONSTRAINT projects_ec_fund_scheme_fkey FOREIGN KEY (ec_fund_scheme) REFERENCES unics_cordis.funding_schemes(code) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: projects projects_framework_program_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.projects + ADD CONSTRAINT projects_framework_program_fkey FOREIGN KEY (framework_program) REFERENCES unics_cordis.ec_framework_programs(ec_framework_program_name) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: projects projects_principal_investigator_fkey; Type: FK CONSTRAINT; Schema: unics_cordis; Owner: postgres +-- + +ALTER TABLE ONLY unics_cordis.projects + ADD CONSTRAINT projects_principal_investigator_fkey FOREIGN KEY (principal_investigator) REFERENCES unics_cordis.people(unics_id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: DATABASE cordis_temporary; Type: ACL; Schema: -; Owner: postgres +-- + +REVOKE ALL ON DATABASE cordis_temporary FROM PUBLIC; +REVOKE ALL ON DATABASE cordis_temporary FROM postgres; +GRANT ALL ON DATABASE cordis_temporary TO postgres; +GRANT CONNECT,TEMPORARY ON DATABASE cordis_temporary TO PUBLIC; + +-- +-- Name: SCHEMA unics_cordis; Type: ACL; Schema: -; Owner: postgres +-- + +REVOKE ALL ON SCHEMA unics_cordis FROM PUBLIC; +REVOKE ALL ON SCHEMA unics_cordis FROM postgres; +GRANT ALL ON SCHEMA unics_cordis TO postgres; + +-- +-- Name: TABLE activity_types; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.activity_types FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.activity_types FROM postgres; +GRANT ALL ON TABLE unics_cordis.activity_types TO postgres; + +-- +-- Name: TABLE countries; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.countries FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.countries FROM postgres; +GRANT ALL ON TABLE unics_cordis.countries TO postgres; + +-- +-- Name: TABLE ec_framework_programs; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.ec_framework_programs FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.ec_framework_programs FROM postgres; +GRANT ALL ON TABLE unics_cordis.ec_framework_programs TO postgres; + +-- +-- Name: TABLE projects; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.projects FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.projects FROM postgres; +GRANT ALL ON TABLE unics_cordis.projects TO postgres; + +-- +-- Name: TABLE erc_calls; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.erc_calls FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.erc_calls FROM postgres; +GRANT ALL ON TABLE unics_cordis.erc_calls TO postgres; + +-- +-- Name: TABLE erc_grants; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.erc_grants FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.erc_grants FROM postgres; +GRANT ALL ON TABLE unics_cordis.erc_grants TO postgres; + +-- +-- Name: TABLE erc_panels; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.erc_panels FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.erc_panels FROM postgres; +GRANT ALL ON TABLE unics_cordis.erc_panels TO postgres; + +-- +-- Name: TABLE erc_research_domains; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.erc_research_domains FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.erc_research_domains FROM postgres; +GRANT ALL ON TABLE unics_cordis.erc_research_domains TO postgres; + +-- +-- Name: TABLE eu_territorial_units; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.eu_territorial_units FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.eu_territorial_units FROM postgres; +GRANT ALL ON TABLE unics_cordis.eu_territorial_units TO postgres; + +-- +-- Name: TABLE funding_schemes; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.funding_schemes FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.funding_schemes FROM postgres; +GRANT ALL ON TABLE unics_cordis.funding_schemes TO postgres; + +-- +-- Name: TABLE institutions; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.institutions FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.institutions FROM postgres; +GRANT ALL ON TABLE unics_cordis.institutions TO postgres; + +-- +-- Name: TABLE nuts_hierarchy; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.nuts_hierarchy FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.nuts_hierarchy FROM postgres; +GRANT ALL ON TABLE unics_cordis.nuts_hierarchy TO postgres; + +-- +-- Name: TABLE people; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.people FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.people FROM postgres; +GRANT ALL ON TABLE unics_cordis.people TO postgres; + +-- +-- Name: TABLE programmes; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.programmes FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.programmes FROM postgres; +GRANT ALL ON TABLE unics_cordis.programmes TO postgres; + +-- +-- Name: TABLE programme_partof_programme; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.programme_partof_programme FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.programme_partof_programme FROM postgres; +GRANT ALL ON TABLE unics_cordis.programme_partof_programme TO postgres; + +-- +-- Name: TABLE project_erc_panels; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.project_erc_panels FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.project_erc_panels FROM postgres; +GRANT ALL ON TABLE unics_cordis.project_erc_panels TO postgres; + +-- +-- Name: TABLE project_member_roles; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.project_member_roles FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.project_member_roles FROM postgres; +GRANT ALL ON TABLE unics_cordis.project_member_roles TO postgres; + +-- +-- Name: TABLE project_members; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.project_members FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.project_members FROM postgres; +GRANT ALL ON TABLE unics_cordis.project_members TO postgres; + +-- +-- Name: TABLE project_programmes; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.project_programmes FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.project_programmes FROM postgres; +GRANT ALL ON TABLE unics_cordis.project_programmes TO postgres; + +-- +-- Name: TABLE project_subject_areas; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.project_subject_areas FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.project_subject_areas FROM postgres; +GRANT ALL ON TABLE unics_cordis.project_subject_areas TO postgres; + +-- +-- Name: TABLE project_topics; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.project_topics FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.project_topics FROM postgres; +GRANT ALL ON TABLE unics_cordis.project_topics TO postgres; + +-- +-- Name: TABLE subject_areas; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.subject_areas FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.subject_areas FROM postgres; +GRANT ALL ON TABLE unics_cordis.subject_areas TO postgres; + +-- +-- Name: TABLE topics; Type: ACL; Schema: unics_cordis; Owner: postgres +-- + +REVOKE ALL ON TABLE unics_cordis.topics FROM PUBLIC; +REVOKE ALL ON TABLE unics_cordis.topics FROM postgres; +GRANT ALL ON TABLE unics_cordis.topics TO postgres; + +-- +-- Name: erc_calls; Type: MATERIALIZED VIEW DATA; Schema: unics_cordis; Owner: postgres +-- + +REFRESH MATERIALIZED VIEW unics_cordis.erc_calls; + + +-- +-- Name: erc_grants; Type: MATERIALIZED VIEW DATA; Schema: unics_cordis; Owner: postgres +-- + +REFRESH MATERIALIZED VIEW unics_cordis.erc_grants; + + +-- +-- Name: nuts_hierarchy; Type: MATERIALIZED VIEW DATA; Schema: unics_cordis; Owner: postgres +-- + +REFRESH MATERIALIZED VIEW unics_cordis.nuts_hierarchy; + + +-- +-- Name: programme_partof_programme; Type: MATERIALIZED VIEW DATA; Schema: unics_cordis; Owner: postgres +-- + +REFRESH MATERIALIZED VIEW unics_cordis.programme_partof_programme; + + +-- +-- PostgreSQL database dump complete +-- + diff --git a/oncomx/restore.sql b/oncomx/restore.sql new file mode 100644 index 0000000..0fdab54 --- /dev/null +++ b/oncomx/restore.sql @@ -0,0 +1,2751 @@ +-- +-- NOTE: +-- +-- File paths need to be edited. Search for $$PATH$$ and +-- replace it with the path to the directory containing +-- the extracted data files. +-- +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 9.5.20 +-- Dumped by pg_dump version 14.4 + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +DROP DATABASE IF EXISTS oncomx_v1_0_25_small; +-- +-- Name: oncomx_v1_0_25_small; Type: DATABASE; Schema: -; Owner: postgres +-- + +CREATE DATABASE oncomx_v1_0_25_small WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE = 'en_US.utf8'; + + +ALTER DATABASE oncomx_v1_0_25_small OWNER TO postgres; + +\connect oncomx_v1_0_25_small + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Name: DATABASE oncomx_v1_0_25_small; Type: COMMENT; Schema: -; Owner: postgres +-- + +COMMENT ON DATABASE oncomx_v1_0_25_small IS 'A down sampled version of oncomx_v1_0_25 without raw data tables.'; + + +-- +-- Name: oncomx_v1_0_25; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA oncomx_v1_0_25; + +ALTER SCHEMA oncomx_v1_0_25 OWNER TO postgres; + +CREATE EXTENSION IF NOT EXISTS pg_trgm SCHEMA oncomx_v1_0_25; + +SET default_tablespace = ''; + +-- +-- Name: anatomical_entity; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.anatomical_entity ( + id character varying(20) NOT NULL, + name character varying(255), + description text +); + + +ALTER TABLE oncomx_v1_0_25.anatomical_entity OWNER TO postgres; + +-- +-- Name: COLUMN anatomical_entity.name; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.anatomical_entity.name IS 'Anatomical entity name'; + + +-- +-- Name: COLUMN anatomical_entity.description; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.anatomical_entity.description IS 'Anatomical entity description'; + + +-- +-- Name: biomarker; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker ( + id character varying(10) DEFAULT '0'::character varying NOT NULL, + gene_symbol character varying(255), + biomarker_description text, + biomarker_id character varying(50), + test_is_a_panel boolean NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker OWNER TO postgres; + +-- +-- Name: biomarker_alias; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_alias ( + biomarker_internal_id character varying(10) NOT NULL, + alias character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_alias OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_alias.biomarker_internal_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_alias.biomarker_internal_id IS 'It is an internal identifier for biomarkers (not included originally in the OncoMX dataset), and it might change for each new release. '; + + +-- +-- Name: biomarker_article; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_article ( + biomarker_internal_id character varying(10) DEFAULT '0'::character varying NOT NULL, + pmid character varying(15) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_article OWNER TO postgres; + +-- +-- Name: biomarker_edrn; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_edrn ( + id character varying(10) DEFAULT '0'::character varying NOT NULL, + qa_state character varying(12) NOT NULL, + biomarker_title character varying(300) NOT NULL, + biomarker_type character varying(30) NOT NULL, + uberon_anatomical_id character varying(20) NOT NULL, + phase character varying(20) +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_edrn OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_edrn.id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_edrn.id IS 'It is an internal identifier for biomarkers (not included originally in the OncoMX dataset), and it might change for each new release. '; + + +-- +-- Name: COLUMN biomarker_edrn.qa_state; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_edrn.qa_state IS 'It denotes whether biomarker has been accepted, curated or is under review.'; + + +-- +-- Name: COLUMN biomarker_edrn.biomarker_title; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_edrn.biomarker_title IS 'Early Detection Research Network (EDRN) title.'; + + +-- +-- Name: COLUMN biomarker_edrn.biomarker_type; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_edrn.biomarker_type IS 'Specifies the type of marker, i.e. Genomic, Proteomic, Gene, or Protein.'; + + +-- +-- Name: COLUMN biomarker_edrn.uberon_anatomical_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_edrn.uberon_anatomical_id IS 'Applicable organ for biomarker.'; + + +-- +-- Name: COLUMN biomarker_edrn.phase; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_edrn.phase IS 'The phase of biomarker development.'; + + +-- +-- Name: biomarker_fda; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_fda ( + id character varying(10) DEFAULT '0'::character varying NOT NULL, + test_trade_name character varying(255) NOT NULL, + test_submission character varying(100) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_fda OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_fda.id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda.id IS 'It is an internal identifier for biomarkers (not included originally in the OncoMX dataset), and it might change for each new release. The stable candidate key for this table is (gene_symbol, test_trade_name, test_submission)'; + + +-- +-- Name: COLUMN biomarker_fda.test_trade_name; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda.test_trade_name IS 'Test trade name.'; + + +-- +-- Name: COLUMN biomarker_fda.test_submission; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda.test_submission IS 'Test submission.'; + + +-- +-- Name: biomarker_fda_drug; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_fda_drug ( + biomarker_fda_id character varying(10) DEFAULT '0'::character varying NOT NULL, + biomarker_drug character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_fda_drug OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_fda_drug.biomarker_fda_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_drug.biomarker_fda_id IS 'It is an internal identifier for biomarkers (not included originally in the OncoMX dataset), and it might change for each new release. The stable candidate key for this table is (gene_symbol, test_trade_name, test_submission)'; + + +-- +-- Name: biomarker_fda_ncit_term; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_fda_ncit_term ( + biomarker_fda_id character varying(10) DEFAULT '0'::character varying NOT NULL, + ncit_biomarker character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_fda_ncit_term OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_fda_ncit_term.biomarker_fda_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_ncit_term.biomarker_fda_id IS 'It is an internal identifier for biomarkers (not included originally in the OncoMX dataset), and it might change for each new release. The stable candidate key for this table is (gene_symbol, test_trade_name, test_submission)'; + + +-- +-- Name: biomarker_fda_test; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_fda_test ( + test_trade_name character varying(500) NOT NULL, + test_manufacturer character varying(300) NOT NULL, + test_submission character varying(100) NOT NULL, + biomarker_origin character varying(30) NOT NULL, + doid bigint NOT NULL, + histological_type character varying(255) NOT NULL, + specimen_type character varying(255) NOT NULL, + platform_method character varying(255) NOT NULL, + test_number_genes bigint NOT NULL, + test_adoption_evidence character varying(255) NOT NULL, + test_approval_status character varying(255) NOT NULL, + test_study_design character varying(255), + clinical_significance text NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_fda_test OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_fda_test.test_trade_name; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.test_trade_name IS 'Test trade name.'; + + +-- +-- Name: COLUMN biomarker_fda_test.test_manufacturer; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.test_manufacturer IS 'Test manufacturer.'; + + +-- +-- Name: COLUMN biomarker_fda_test.test_submission; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.test_submission IS 'Test submission.'; + + +-- +-- Name: COLUMN biomarker_fda_test.biomarker_origin; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.biomarker_origin IS 'The biomarker origin.'; + + +-- +-- Name: COLUMN biomarker_fda_test.doid; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.doid IS 'Disease Ontology Identifier (DOID) (e.g. 363 that corresponds to “uterine cancer”). To express the IRI of a DO term, we can concatenate to the DOID number the following prefix: http://purl.obolibrary.org/obo/DOID_.'; + + +-- +-- Name: COLUMN biomarker_fda_test.histological_type; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.histological_type IS 'The histological type.'; + + +-- +-- Name: COLUMN biomarker_fda_test.specimen_type; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.specimen_type IS 'The speciment type to detect a biomarker.'; + + +-- +-- Name: COLUMN biomarker_fda_test.platform_method; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.platform_method IS 'The platform method.'; + + +-- +-- Name: COLUMN biomarker_fda_test.test_number_genes; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.test_number_genes IS 'The number of genes.'; + + +-- +-- Name: COLUMN biomarker_fda_test.test_adoption_evidence; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.test_adoption_evidence IS 'The test adoption evidence of a biomarker such as experimetal or clinical use.'; + + +-- +-- Name: COLUMN biomarker_fda_test.test_approval_status; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.test_approval_status IS 'Regulatory approval status.'; + + +-- +-- Name: COLUMN biomarker_fda_test.test_study_design; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.test_study_design IS 'Study design.'; + + +-- +-- Name: COLUMN biomarker_fda_test.clinical_significance; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test.clinical_significance IS 'Regulatory approval status.'; + + +-- +-- Name: biomarker_fda_test_trial; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_fda_test_trial ( + test_trade_name character varying(255) NOT NULL, + test_submission character varying(100) NOT NULL, + test_trial_id character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_fda_test_trial OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_fda_test_trial.test_trade_name; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test_trial.test_trade_name IS 'Test trade name.'; + + +-- +-- Name: COLUMN biomarker_fda_test_trial.test_submission; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test_trial.test_submission IS 'Test submission.'; + + +-- +-- Name: biomarker_fda_test_use; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.biomarker_fda_test_use ( + id bigint NOT NULL, + test_trade_name character varying(255) NOT NULL, + test_submission character varying(100) NOT NULL, + approved_indication character varying(255) NOT NULL, + actual_use character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.biomarker_fda_test_use OWNER TO postgres; + +-- +-- Name: COLUMN biomarker_fda_test_use.id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test_use.id IS 'Internal identifier for a FDA biomaker indication and actual use.'; + + +-- +-- Name: COLUMN biomarker_fda_test_use.test_trade_name; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test_use.test_trade_name IS 'Test trade name.'; + + +-- +-- Name: COLUMN biomarker_fda_test_use.test_submission; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.biomarker_fda_test_use.test_submission IS 'Test submission.'; + + +-- +-- Name: biomarker_fda_test_use_id_seq; Type: SEQUENCE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE SEQUENCE oncomx_v1_0_25.biomarker_fda_test_use_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE oncomx_v1_0_25.biomarker_fda_test_use_id_seq OWNER TO postgres; + +-- +-- Name: biomarker_fda_test_use_id_seq; Type: SEQUENCE OWNED BY; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER SEQUENCE oncomx_v1_0_25.biomarker_fda_test_use_id_seq OWNED BY oncomx_v1_0_25.biomarker_fda_test_use.id; + + +-- +-- Name: cancer_tissue; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.cancer_tissue ( + doid bigint NOT NULL, + uberon_anatomical_id character varying(20) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.cancer_tissue OWNER TO postgres; + +-- +-- Name: COLUMN cancer_tissue.doid; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.cancer_tissue.doid IS 'Disease Ontology Identifier (DOID) (e.g. 363 that corresponds to “uterine cancer”). To express the IRI of a DO term, we can concatenate to the DOID number the following prefix: http://purl.obolibrary.org/obo/DOID_ .'; + + +-- +-- Name: differential_expression; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.differential_expression ( + gene_symbol character varying(255) NOT NULL, + doid bigint NOT NULL, + log2fc double precision NOT NULL, + pvalue double precision NOT NULL, + adjpvalue double precision NOT NULL, + statistical_significance character varying(3) NOT NULL, + expression_change_direction character varying(10) NOT NULL, + subjects_up bigint NOT NULL, + subjects_down bigint NOT NULL, + subjects_nochange bigint NOT NULL, + subjects_nocoverage bigint NOT NULL, + subjects_total bigint NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.differential_expression OWNER TO postgres; + +-- +-- Name: COLUMN differential_expression.gene_symbol; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.gene_symbol IS 'Official gene symbol/name approved by HUGO Gene Nomenclature Committee (HGNC) or miRNA name.'; + + +-- +-- Name: COLUMN differential_expression.doid; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.doid IS 'Disease Ontology Identifier (DOID) (e.g. 363 that corresponds to “uterine cancer”). To express the IRI of a DO term, we can concatenate to the DOID number the following prefix: http://purl.obolibrary.org/obo/DOID_ .'; + + +-- +-- Name: COLUMN differential_expression.log2fc; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.log2fc IS 'The logarithm (to base 2) of the fold change from normal expression to tumor expression. Fold change is equivalent to the expression level of a gene in cancer divided by the expression level of a gene in the same kind of tissue but a healthy one.'; + + +-- +-- Name: COLUMN differential_expression.pvalue; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.pvalue IS 'P-value for statistical significance of the reported change, computed directly by DESeq2. DESeq2 is a tool to verify the change of expression of genes between two samples.'; + + +-- +-- Name: COLUMN differential_expression.adjpvalue; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.adjpvalue IS 'P-value adjusted for multiple testing with the Benjamini-Hochberg procedure, which controls false discovery rate (FDR).'; + + +-- +-- Name: COLUMN differential_expression.statistical_significance; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.statistical_significance IS 'Trends are considered significant when adj. P-value < 0.05'; + + +-- +-- Name: COLUMN differential_expression.expression_change_direction; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.expression_change_direction IS 'Gene expression trend. Possible values are no change, down or up.'; + + +-- +-- Name: COLUMN differential_expression.subjects_up; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.subjects_up IS 'The amount of patients with increased gene expression.'; + + +-- +-- Name: COLUMN differential_expression.subjects_down; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.subjects_down IS 'The amount of patients with decreased gene expression.'; + + +-- +-- Name: COLUMN differential_expression.subjects_nochange; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.subjects_nochange IS 'The amount of patients with no change in terms of gene expression.'; + + +-- +-- Name: COLUMN differential_expression.subjects_nocoverage; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.subjects_nocoverage IS 'The amount of patients with no coverage.'; + + +-- +-- Name: COLUMN differential_expression.subjects_total; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.differential_expression.subjects_total IS 'The total number of patients with data for the study.'; + + +-- +-- Name: disease; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.disease ( + id bigint NOT NULL, + name character varying(60) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.disease OWNER TO postgres; + +-- +-- Name: disease_mutation; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.disease_mutation ( + id bigint NOT NULL, + chromosome_id character varying(2) NOT NULL, + chromosome_pos bigint NOT NULL, + ref_nt character(1) NOT NULL, + alt_nt character(1) NOT NULL, + ensembl_transcript_id character varying(15) NOT NULL, + cds_pos bigint NOT NULL, + peptide_pos bigint NOT NULL, + aa_pos_uniprotkb bigint NOT NULL, + ref_aa character(1) NOT NULL, + alt_aa character(1) NOT NULL, + mutation_freq bigint NOT NULL, + data_source character varying(12) NOT NULL, + doid bigint NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.disease_mutation OWNER TO postgres; + +-- +-- Name: COLUMN disease_mutation.id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.id IS 'It is an internal identifier for disease mutations. A stable candidate key is the tuple (alt_nt, cds_pos, data_source, doid, ensembl_transcript_id).'; + + +-- +-- Name: COLUMN disease_mutation.chromosome_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.chromosome_id IS 'Chromosome identifier.'; + + +-- +-- Name: COLUMN disease_mutation.chromosome_pos; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.chromosome_pos IS 'Chromosome position. Indeed, the genomic position of variant. An identifier from the University of California Santa Cruz (UCSC) Genome database can be assigned as value to represent a genome position. (e.g. chr1:150830829)'; + + +-- +-- Name: COLUMN disease_mutation.ref_nt; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.ref_nt IS 'Reference or wild-type (~normal) nucleotide base. Nucleotide is an organic molecule that is the basis of a nucleic acid such as DNA. A nucleotide is coded as depicted at https://www.bioinformatics.org/sms/iupac.html .'; + + +-- +-- Name: COLUMN disease_mutation.alt_nt; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.alt_nt IS 'Nucleotide base resulting from variation (~mutation).'; + + +-- +-- Name: COLUMN disease_mutation.ensembl_transcript_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.ensembl_transcript_id IS 'Ensembl database transcript identifier.'; + + +-- +-- Name: COLUMN disease_mutation.cds_pos; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.cds_pos IS 'Nucleotide position of variation at the CoDing Sequence (CDS).'; + + +-- +-- Name: COLUMN disease_mutation.peptide_pos; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.peptide_pos IS 'Amino acid position of variation at the protein sequence.'; + + +-- +-- Name: COLUMN disease_mutation.aa_pos_uniprotkb; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.aa_pos_uniprotkb IS 'Amino acid position of variation at UniProt protein sequence (composed of amino acids).'; + + +-- +-- Name: COLUMN disease_mutation.ref_aa; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.ref_aa IS 'Reference or wild-type (~normal) amino acid residue.'; + + +-- +-- Name: COLUMN disease_mutation.alt_aa; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.alt_aa IS 'Residue resulting from variation.'; + + +-- +-- Name: COLUMN disease_mutation.mutation_freq; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.mutation_freq IS 'Mutation frequency.'; + + +-- +-- Name: COLUMN disease_mutation.data_source; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.data_source IS 'Data source of reported variation. The data sources are represented with their acronym, for example, The Cancer Genome Atlas (TCGA).'; + + +-- +-- Name: COLUMN disease_mutation.doid; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation.doid IS 'Disease Ontology Identifier (DOID) (e.g. 363 that corresponds to “uterine cancer”). To express the IRI of a DO term, we can concatenate to the DOID number the following prefix: http://purl.obolibrary.org/obo/DOID_.'; + + +-- +-- Name: disease_mutation_article; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.disease_mutation_article ( + pmid bigint NOT NULL, + disease_mutation_id bigint NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.disease_mutation_article OWNER TO postgres; + +-- +-- Name: COLUMN disease_mutation_article.disease_mutation_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation_article.disease_mutation_id IS 'It is an internal identifier for disease mutations. A stable candidate key is the tuple (alt_nt, cds_pos, data_source, doid, ensembl_transcript_id).'; + + +-- +-- Name: disease_mutation_id_seq; Type: SEQUENCE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE SEQUENCE oncomx_v1_0_25.disease_mutation_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE oncomx_v1_0_25.disease_mutation_id_seq OWNER TO postgres; + +-- +-- Name: disease_mutation_id_seq; Type: SEQUENCE OWNED BY; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER SEQUENCE oncomx_v1_0_25.disease_mutation_id_seq OWNED BY oncomx_v1_0_25.disease_mutation.id; + + +-- +-- Name: disease_mutation_impact_prediction; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.disease_mutation_impact_prediction ( + id bigint NOT NULL, + disease_mutation_id bigint NOT NULL, + site_prediction character varying(255) NOT NULL, + probability double precision, + tool character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.disease_mutation_impact_prediction OWNER TO postgres; + +-- +-- Name: COLUMN disease_mutation_impact_prediction.disease_mutation_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation_impact_prediction.disease_mutation_id IS 'It is an internal identifier for disease mutations. A stable candidate key is the tuple (alt_nt, cds_pos, data_source, doid, ensembl_transcript_id).'; + + +-- +-- Name: disease_mutation_impact_prediction_id_seq; Type: SEQUENCE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE SEQUENCE oncomx_v1_0_25.disease_mutation_impact_prediction_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE oncomx_v1_0_25.disease_mutation_impact_prediction_id_seq OWNER TO postgres; + +-- +-- Name: disease_mutation_impact_prediction_id_seq; Type: SEQUENCE OWNED BY; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER SEQUENCE oncomx_v1_0_25.disease_mutation_impact_prediction_id_seq OWNED BY oncomx_v1_0_25.disease_mutation_impact_prediction.id; + + +-- +-- Name: disease_mutation_site_annotation; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.disease_mutation_site_annotation ( + id bigint NOT NULL, + disease_mutation_id bigint NOT NULL, + description character varying(255), + feature_key character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.disease_mutation_site_annotation OWNER TO postgres; + +-- +-- Name: COLUMN disease_mutation_site_annotation.id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation_site_annotation.id IS 'Internal identifier.'; + + +-- +-- Name: COLUMN disease_mutation_site_annotation.disease_mutation_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation_site_annotation.disease_mutation_id IS 'It is an internal identifier for disease mutations. A stable candidate key is the tuple (alt_nt, cds_pos, data_source, doid, ensembl_transcript_id).'; + + +-- +-- Name: disease_mutation_site_annotation_id_seq; Type: SEQUENCE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE SEQUENCE oncomx_v1_0_25.disease_mutation_site_annotation_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE oncomx_v1_0_25.disease_mutation_site_annotation_id_seq OWNER TO postgres; + +-- +-- Name: disease_mutation_site_annotation_id_seq; Type: SEQUENCE OWNED BY; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER SEQUENCE oncomx_v1_0_25.disease_mutation_site_annotation_id_seq OWNED BY oncomx_v1_0_25.disease_mutation_site_annotation.id; + + +-- +-- Name: disease_mutation_tissue; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.disease_mutation_tissue ( + uberon_anatomical_id character varying(20) NOT NULL, + disease_mutation_id bigint NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.disease_mutation_tissue OWNER TO postgres; + +-- +-- Name: COLUMN disease_mutation_tissue.disease_mutation_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.disease_mutation_tissue.disease_mutation_id IS 'It is an internal identifier for disease mutations. A stable candidate key is the tuple (alt_nt, cds_pos, data_source, doid, ensembl_transcript_id).'; + + +-- +-- Name: healthy_expression; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.healthy_expression ( + ensembl_gene_id character varying(20) NOT NULL, + uberon_anatomical_id character varying(20) NOT NULL, + uberon_developmental_id character varying(14) NOT NULL, + expression_level_gene_relative character varying(6) NOT NULL, + expression_level_anatomical_relative character varying(6) NOT NULL, + call_quality character varying(6) NOT NULL, + expression_rank_score numeric(9,2) NOT NULL, + expression_score numeric(9,5) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.healthy_expression OWNER TO postgres; + +-- +-- Name: map_protein_disease_mutation; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.map_protein_disease_mutation ( + peptide_id character varying(15) NOT NULL, + ensembl_transcript_id character varying(15) NOT NULL, + uniprotkb_ac character varying(15) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.map_protein_disease_mutation OWNER TO postgres; + +-- +-- Name: COLUMN map_protein_disease_mutation.peptide_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.map_protein_disease_mutation.peptide_id IS 'Ensembl database protein identifier.'; + + +-- +-- Name: COLUMN map_protein_disease_mutation.ensembl_transcript_id; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.map_protein_disease_mutation.ensembl_transcript_id IS 'Ensembl database transcript identifier.'; + + +-- +-- Name: COLUMN map_protein_disease_mutation.uniprotkb_ac; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.map_protein_disease_mutation.uniprotkb_ac IS 'UniProtKB/SwissProt AC. The accession number (i.e. identifier) assigned to a protein in UniProtKB database.'; + + +-- +-- Name: map_uniprot_canonical_id; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.map_uniprot_canonical_id ( + uniprotkb_ac character varying(15) NOT NULL, + uniprotkb_canonical_ac character varying(15) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.map_uniprot_canonical_id OWNER TO postgres; + +-- +-- Name: COLUMN map_uniprot_canonical_id.uniprotkb_ac; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.map_uniprot_canonical_id.uniprotkb_ac IS 'UniProtKB/SwissProt AC. The accession number (i.e. identifier) assigned to a protein in UniProtKB database.'; + + +-- +-- Name: COLUMN map_uniprot_canonical_id.uniprotkb_canonical_ac; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.map_uniprot_canonical_id.uniprotkb_canonical_ac IS 'UniProtKB/SwissProt Canonical AC. Accession number assigned to the canonical isoform in UniProtKB database.'; + + +-- +-- Name: species; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.species ( + speciesid integer NOT NULL, + genus character varying(70) NOT NULL, + species character varying(70) NOT NULL, + speciescommonname character varying(70) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.species OWNER TO postgres; + +-- +-- Name: COLUMN species.speciesid; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.species.speciesid IS 'NCBI species taxon id.'; + + +-- +-- Name: COLUMN species.genus; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.species.genus IS 'Genus name.'; + + +-- +-- Name: COLUMN species.species; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.species.species IS 'Species name.'; + + +-- +-- Name: COLUMN species.speciescommonname; Type: COMMENT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +COMMENT ON COLUMN oncomx_v1_0_25.species.speciescommonname IS 'NCBI species common name.'; + + +-- +-- Name: stage; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.stage ( + id character varying(14) NOT NULL, + name character varying(255) NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.stage OWNER TO postgres; + +-- +-- Name: xref_gene_ensembl; Type: TABLE; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE TABLE oncomx_v1_0_25.xref_gene_ensembl ( + gene_symbol character varying(255) NOT NULL, + ensembl_gene_id character varying(20) NOT NULL, + speciesid integer NOT NULL +); + + +ALTER TABLE oncomx_v1_0_25.xref_gene_ensembl OWNER TO postgres; + +-- +-- Name: biomarker_fda_test_use id; Type: DEFAULT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_test_use ALTER COLUMN id SET DEFAULT nextval('oncomx_v1_0_25.biomarker_fda_test_use_id_seq'::regclass); + + +-- +-- Name: disease_mutation id; Type: DEFAULT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation ALTER COLUMN id SET DEFAULT nextval('oncomx_v1_0_25.disease_mutation_id_seq'::regclass); + + +-- +-- Name: disease_mutation_impact_prediction id; Type: DEFAULT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_impact_prediction ALTER COLUMN id SET DEFAULT nextval('oncomx_v1_0_25.disease_mutation_impact_prediction_id_seq'::regclass); + + +-- +-- Name: disease_mutation_site_annotation id; Type: DEFAULT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_site_annotation ALTER COLUMN id SET DEFAULT nextval('oncomx_v1_0_25.disease_mutation_site_annotation_id_seq'::regclass); + + +-- +-- Data for Name: anatomical_entity; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2480.dat + +-- +-- Data for Name: biomarker; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2481.dat + +-- +-- Data for Name: biomarker_alias; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2482.dat + +-- +-- Data for Name: biomarker_article; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2483.dat + +-- +-- Data for Name: biomarker_edrn; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2484.dat + +-- +-- Data for Name: biomarker_fda; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2485.dat + +-- +-- Data for Name: biomarker_fda_drug; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2486.dat + +-- +-- Data for Name: biomarker_fda_ncit_term; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2487.dat + +-- +-- Data for Name: biomarker_fda_test; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2488.dat + +-- +-- Data for Name: biomarker_fda_test_trial; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2489.dat + +-- +-- Data for Name: biomarker_fda_test_use; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2490.dat + +-- +-- Data for Name: cancer_tissue; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2507.dat + +-- +-- Data for Name: differential_expression; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2508.dat + +-- +-- Data for Name: disease; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2492.dat + +-- +-- Data for Name: disease_mutation; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2493.dat + +-- +-- Data for Name: disease_mutation_article; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2494.dat + +-- +-- Data for Name: disease_mutation_impact_prediction; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2496.dat + +-- +-- Data for Name: disease_mutation_site_annotation; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2498.dat + +-- +-- Data for Name: disease_mutation_tissue; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2500.dat + +-- +-- Data for Name: healthy_expression; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2501.dat + +-- +-- Data for Name: map_protein_disease_mutation; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2502.dat + +-- +-- Data for Name: map_uniprot_canonical_id; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2503.dat + +-- +-- Data for Name: species; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2504.dat + +-- +-- Data for Name: stage; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2505.dat + +-- +-- Data for Name: xref_gene_ensembl; Type: TABLE DATA; Schema: oncomx_v1_0_25; Owner: postgres +-- + +\i $$PATH$$/2506.dat + +-- +-- Name: biomarker_fda_test_use_id_seq; Type: SEQUENCE SET; Schema: oncomx_v1_0_25; Owner: postgres +-- + +SELECT pg_catalog.setval('oncomx_v1_0_25.biomarker_fda_test_use_id_seq', 124, true); + + +-- +-- Name: disease_mutation_id_seq; Type: SEQUENCE SET; Schema: oncomx_v1_0_25; Owner: postgres +-- + +SELECT pg_catalog.setval('oncomx_v1_0_25.disease_mutation_id_seq', 7757463, true); + + +-- +-- Name: disease_mutation_impact_prediction_id_seq; Type: SEQUENCE SET; Schema: oncomx_v1_0_25; Owner: postgres +-- + +SELECT pg_catalog.setval('oncomx_v1_0_25.disease_mutation_impact_prediction_id_seq', 4685290, true); + + +-- +-- Name: disease_mutation_site_annotation_id_seq; Type: SEQUENCE SET; Schema: oncomx_v1_0_25; Owner: postgres +-- + +SELECT pg_catalog.setval('oncomx_v1_0_25.disease_mutation_site_annotation_id_seq', 85391, true); + + +-- +-- Name: anatomical_entity idx_18385_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.anatomical_entity + ADD CONSTRAINT idx_18385_primary PRIMARY KEY (id); + + +-- +-- Name: biomarker idx_18391_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker + ADD CONSTRAINT idx_18391_primary PRIMARY KEY (id); + + +-- +-- Name: biomarker_alias idx_18398_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_alias + ADD CONSTRAINT idx_18398_primary PRIMARY KEY (biomarker_internal_id, alias); + + +-- +-- Name: biomarker_article idx_18401_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_article + ADD CONSTRAINT idx_18401_primary PRIMARY KEY (biomarker_internal_id, pmid); + + +-- +-- Name: biomarker_edrn idx_18405_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_edrn + ADD CONSTRAINT idx_18405_primary PRIMARY KEY (id); + + +-- +-- Name: biomarker_fda idx_18415_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda + ADD CONSTRAINT idx_18415_primary PRIMARY KEY (id); + + +-- +-- Name: biomarker_fda_drug idx_18419_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_drug + ADD CONSTRAINT idx_18419_primary PRIMARY KEY (biomarker_fda_id, biomarker_drug); + + +-- +-- Name: biomarker_fda_ncit_term idx_18423_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_ncit_term + ADD CONSTRAINT idx_18423_primary PRIMARY KEY (biomarker_fda_id, ncit_biomarker); + + +-- +-- Name: biomarker_fda_test idx_18433_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_test + ADD CONSTRAINT idx_18433_primary PRIMARY KEY (test_submission, test_trade_name); + + +-- +-- Name: biomarker_fda_test_trial idx_18439_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_test_trial + ADD CONSTRAINT idx_18439_primary PRIMARY KEY (test_trade_name, test_submission, test_trial_id); + + +-- +-- Name: biomarker_fda_test_use idx_18447_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_test_use + ADD CONSTRAINT idx_18447_primary PRIMARY KEY (id); + + +-- +-- Name: disease idx_18463_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease + ADD CONSTRAINT idx_18463_primary PRIMARY KEY (id); + + +-- +-- Name: disease_mutation idx_18468_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation + ADD CONSTRAINT idx_18468_primary PRIMARY KEY (id); + + +-- +-- Name: disease_mutation_article idx_18472_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_article + ADD CONSTRAINT idx_18472_primary PRIMARY KEY (disease_mutation_id, pmid); + + +-- +-- Name: disease_mutation_impact_prediction idx_18477_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_impact_prediction + ADD CONSTRAINT idx_18477_primary PRIMARY KEY (id); + + +-- +-- Name: disease_mutation_site_annotation idx_18492_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_site_annotation + ADD CONSTRAINT idx_18492_primary PRIMARY KEY (id); + + +-- +-- Name: disease_mutation_tissue idx_18499_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_tissue + ADD CONSTRAINT idx_18499_primary PRIMARY KEY (uberon_anatomical_id, disease_mutation_id); + + +-- +-- Name: healthy_expression idx_18502_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.healthy_expression + ADD CONSTRAINT idx_18502_primary PRIMARY KEY (ensembl_gene_id, uberon_anatomical_id, uberon_developmental_id); + + +-- +-- Name: map_protein_disease_mutation idx_18517_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.map_protein_disease_mutation + ADD CONSTRAINT idx_18517_primary PRIMARY KEY (ensembl_transcript_id); + + +-- +-- Name: map_uniprot_canonical_id idx_18520_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.map_uniprot_canonical_id + ADD CONSTRAINT idx_18520_primary PRIMARY KEY (uniprotkb_ac); + + +-- +-- Name: species idx_18526_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.species + ADD CONSTRAINT idx_18526_primary PRIMARY KEY (speciesid); + + +-- +-- Name: stage idx_18529_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.stage + ADD CONSTRAINT idx_18529_primary PRIMARY KEY (id); + + +-- +-- Name: xref_gene_ensembl idx_18532_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.xref_gene_ensembl + ADD CONSTRAINT idx_18532_primary PRIMARY KEY (ensembl_gene_id); + + +-- +-- Name: cancer_tissue idx_26577_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.cancer_tissue + ADD CONSTRAINT idx_26577_primary PRIMARY KEY (doid, uberon_anatomical_id); + + +-- +-- Name: differential_expression idx_26580_primary; Type: CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.differential_expression + ADD CONSTRAINT idx_26580_primary PRIMARY KEY (gene_symbol, doid); + + +-- +-- Name: anatomical_entity_description_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX anatomical_entity_description_gist_idx ON oncomx_v1_0_25.anatomical_entity USING gist (description oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: anatomical_entity_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX anatomical_entity_id_gist_idx ON oncomx_v1_0_25.anatomical_entity USING gist (id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: anatomical_entity_name_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX anatomical_entity_name_gist_idx ON oncomx_v1_0_25.anatomical_entity USING gist (name oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_alias_alias_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_alias_alias_gist_idx ON oncomx_v1_0_25.biomarker_alias USING gist (alias oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_alias_biomarker_internal_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_alias_biomarker_internal_id_gist_idx ON oncomx_v1_0_25.biomarker_alias USING gist (biomarker_internal_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_article_biomarker_internal_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_article_biomarker_internal_id_gist_idx ON oncomx_v1_0_25.biomarker_article USING gist (biomarker_internal_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_article_pmid_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_article_pmid_gist_idx ON oncomx_v1_0_25.biomarker_article USING gist (pmid oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_biomarker_description_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_biomarker_description_gist_idx ON oncomx_v1_0_25.biomarker USING gist (biomarker_description oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_biomarker_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_biomarker_id_gist_idx ON oncomx_v1_0_25.biomarker USING gist (biomarker_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_edrn_biomarker_title_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_edrn_biomarker_title_gist_idx ON oncomx_v1_0_25.biomarker_edrn USING gist (biomarker_title oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_edrn_biomarker_type_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_edrn_biomarker_type_gist_idx ON oncomx_v1_0_25.biomarker_edrn USING gist (biomarker_type oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_edrn_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_edrn_id_gist_idx ON oncomx_v1_0_25.biomarker_edrn USING gist (id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_edrn_phase_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_edrn_phase_gist_idx ON oncomx_v1_0_25.biomarker_edrn USING gist (phase oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_edrn_qa_state_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_edrn_qa_state_gist_idx ON oncomx_v1_0_25.biomarker_edrn USING gist (qa_state oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_edrn_uberon_anatomical_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_edrn_uberon_anatomical_id_gist_idx ON oncomx_v1_0_25.biomarker_edrn USING gist (uberon_anatomical_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_drug_biomarker_drug_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_drug_biomarker_drug_gist_idx ON oncomx_v1_0_25.biomarker_fda_drug USING gist (biomarker_drug oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_drug_biomarker_fda_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_drug_biomarker_fda_id_gist_idx ON oncomx_v1_0_25.biomarker_fda_drug USING gist (biomarker_fda_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_id_gist_idx ON oncomx_v1_0_25.biomarker_fda USING gist (id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_ncit_term_biomarker_fda_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_ncit_term_biomarker_fda_id_gist_idx ON oncomx_v1_0_25.biomarker_fda_ncit_term USING gist (biomarker_fda_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_ncit_term_ncit_biomarker_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_ncit_term_ncit_biomarker_gist_idx ON oncomx_v1_0_25.biomarker_fda_ncit_term USING gist (ncit_biomarker oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_biomarker_origin_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_biomarker_origin_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (biomarker_origin oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_clinical_significance_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_clinical_significance_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (clinical_significance oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_doid_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_doid_idx ON oncomx_v1_0_25.biomarker_fda_test USING btree (doid); + + +-- +-- Name: biomarker_fda_test_histological_type_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_histological_type_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (histological_type oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_platform_method_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_platform_method_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (platform_method oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_specimen_type_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_specimen_type_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (specimen_type oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_submission_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_submission_gist_idx ON oncomx_v1_0_25.biomarker_fda USING gist (test_submission oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_test_adoption_evidence_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_test_adoption_evidence_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (test_adoption_evidence oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_test_approval_status_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_test_approval_status_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (test_approval_status oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_test_manufacturer_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_test_manufacturer_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (test_manufacturer oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_test_number_genes_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_test_number_genes_idx ON oncomx_v1_0_25.biomarker_fda_test USING btree (test_number_genes); + + +-- +-- Name: biomarker_fda_test_test_study_design_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_test_study_design_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (test_study_design oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_test_submission_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_test_submission_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (test_submission oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_test_trade_name_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_test_trade_name_gist_idx ON oncomx_v1_0_25.biomarker_fda_test USING gist (test_trade_name oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_trade_name_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_trade_name_gist_idx ON oncomx_v1_0_25.biomarker_fda USING gist (test_trade_name oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_trial_test_submission_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_trial_test_submission_gist_idx ON oncomx_v1_0_25.biomarker_fda_test_trial USING gist (test_submission oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_trial_test_trade_name_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_trial_test_trade_name_gist_idx ON oncomx_v1_0_25.biomarker_fda_test_trial USING gist (test_trade_name oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_trial_test_trial_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_trial_test_trial_id_gist_idx ON oncomx_v1_0_25.biomarker_fda_test_trial USING gist (test_trial_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_use_actual_use_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_use_actual_use_gist_idx ON oncomx_v1_0_25.biomarker_fda_test_use USING gist (actual_use oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_use_approved_indication_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_use_approved_indication_gist_idx ON oncomx_v1_0_25.biomarker_fda_test_use USING gist (approved_indication oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_use_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_use_id_idx ON oncomx_v1_0_25.biomarker_fda_test_use USING btree (id); + + +-- +-- Name: biomarker_fda_test_use_test_submission_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_use_test_submission_gist_idx ON oncomx_v1_0_25.biomarker_fda_test_use USING gist (test_submission oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_fda_test_use_test_trade_name_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_fda_test_use_test_trade_name_gist_idx ON oncomx_v1_0_25.biomarker_fda_test_use USING gist (test_trade_name oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_gene_symbol_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_gene_symbol_gist_idx ON oncomx_v1_0_25.biomarker USING gist (gene_symbol oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_id_gist_idx ON oncomx_v1_0_25.biomarker USING gist (id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: biomarker_test_is_a_panel_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX biomarker_test_is_a_panel_idx ON oncomx_v1_0_25.biomarker USING btree (test_is_a_panel); + + +-- +-- Name: cancer_tissue_doid_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX cancer_tissue_doid_idx ON oncomx_v1_0_25.cancer_tissue USING btree (doid); + + +-- +-- Name: cancer_tissue_uberon_anatomical_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX cancer_tissue_uberon_anatomical_id_gist_idx ON oncomx_v1_0_25.cancer_tissue USING gist (uberon_anatomical_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: differential_expression_adjpvalue_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_adjpvalue_idx ON oncomx_v1_0_25.differential_expression USING btree (adjpvalue); + + +-- +-- Name: differential_expression_doid_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_doid_idx ON oncomx_v1_0_25.differential_expression USING btree (doid); + + +-- +-- Name: differential_expression_expression_change_direction_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_expression_change_direction_gist_idx ON oncomx_v1_0_25.differential_expression USING gist (expression_change_direction oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: differential_expression_gene_symbol_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_gene_symbol_gist_idx ON oncomx_v1_0_25.differential_expression USING gist (gene_symbol oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: differential_expression_log2fc_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_log2fc_idx ON oncomx_v1_0_25.differential_expression USING btree (log2fc); + + +-- +-- Name: differential_expression_pvalue_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_pvalue_idx ON oncomx_v1_0_25.differential_expression USING btree (pvalue); + + +-- +-- Name: differential_expression_statistical_significance_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_statistical_significance_gist_idx ON oncomx_v1_0_25.differential_expression USING gist (statistical_significance oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: differential_expression_subjects_down_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_subjects_down_idx ON oncomx_v1_0_25.differential_expression USING btree (subjects_down); + + +-- +-- Name: differential_expression_subjects_nochange_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_subjects_nochange_idx ON oncomx_v1_0_25.differential_expression USING btree (subjects_nochange); + + +-- +-- Name: differential_expression_subjects_nocoverage_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_subjects_nocoverage_idx ON oncomx_v1_0_25.differential_expression USING btree (subjects_nocoverage); + + +-- +-- Name: differential_expression_subjects_total_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_subjects_total_idx ON oncomx_v1_0_25.differential_expression USING btree (subjects_total); + + +-- +-- Name: differential_expression_subjects_up_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX differential_expression_subjects_up_idx ON oncomx_v1_0_25.differential_expression USING btree (subjects_up); + + +-- +-- Name: disease_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_id_idx ON oncomx_v1_0_25.disease USING btree (id); + + +-- +-- Name: disease_mutation_aa_pos_uniprotkb_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_aa_pos_uniprotkb_idx ON oncomx_v1_0_25.disease_mutation USING btree (aa_pos_uniprotkb); + + +-- +-- Name: disease_mutation_alt_aa_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_alt_aa_idx ON oncomx_v1_0_25.disease_mutation USING btree (alt_aa); + + +-- +-- Name: disease_mutation_alt_nt_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_alt_nt_idx ON oncomx_v1_0_25.disease_mutation USING btree (alt_nt); + + +-- +-- Name: disease_mutation_article_disease_mutation_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_article_disease_mutation_id_idx ON oncomx_v1_0_25.disease_mutation_article USING btree (disease_mutation_id); + + +-- +-- Name: disease_mutation_article_pmid_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_article_pmid_idx ON oncomx_v1_0_25.disease_mutation_article USING btree (pmid); + + +-- +-- Name: disease_mutation_cds_pos_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_cds_pos_idx ON oncomx_v1_0_25.disease_mutation USING btree (cds_pos); + + +-- +-- Name: disease_mutation_chromosome_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_chromosome_id_gist_idx ON oncomx_v1_0_25.disease_mutation USING gist (chromosome_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_mutation_chromosome_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_chromosome_id_idx ON oncomx_v1_0_25.disease_mutation USING btree (chromosome_id); + + +-- +-- Name: disease_mutation_chromosome_pos_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_chromosome_pos_idx ON oncomx_v1_0_25.disease_mutation USING btree (chromosome_pos); + + +-- +-- Name: disease_mutation_data_source_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_data_source_gist_idx ON oncomx_v1_0_25.disease_mutation USING gist (data_source oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_mutation_doid_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_doid_idx ON oncomx_v1_0_25.disease_mutation USING btree (doid); + + +-- +-- Name: disease_mutation_ensembl_transcript_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_ensembl_transcript_id_gist_idx ON oncomx_v1_0_25.disease_mutation USING gist (ensembl_transcript_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_mutation_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_id_idx ON oncomx_v1_0_25.disease_mutation USING btree (id); + + +-- +-- Name: disease_mutation_impact_prediction_disease_mutation_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_impact_prediction_disease_mutation_id_idx ON oncomx_v1_0_25.disease_mutation_impact_prediction USING btree (disease_mutation_id); + + +-- +-- Name: disease_mutation_impact_prediction_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_impact_prediction_id_idx ON oncomx_v1_0_25.disease_mutation_impact_prediction USING btree (id); + + +-- +-- Name: disease_mutation_impact_prediction_probability_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_impact_prediction_probability_idx ON oncomx_v1_0_25.disease_mutation_impact_prediction USING btree (probability); + + +-- +-- Name: disease_mutation_impact_prediction_site_prediction_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_impact_prediction_site_prediction_gist_idx ON oncomx_v1_0_25.disease_mutation_impact_prediction USING gist (site_prediction oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_mutation_impact_prediction_tool_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_impact_prediction_tool_gist_idx ON oncomx_v1_0_25.disease_mutation_impact_prediction USING gist (tool oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_mutation_mutation_freq_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_mutation_freq_idx ON oncomx_v1_0_25.disease_mutation USING btree (mutation_freq); + + +-- +-- Name: disease_mutation_peptide_pos_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_peptide_pos_idx ON oncomx_v1_0_25.disease_mutation USING btree (peptide_pos); + + +-- +-- Name: disease_mutation_ref_aa_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_ref_aa_idx ON oncomx_v1_0_25.disease_mutation USING btree (ref_aa); + + +-- +-- Name: disease_mutation_ref_nt_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_ref_nt_idx ON oncomx_v1_0_25.disease_mutation USING btree (ref_nt); + + +-- +-- Name: disease_mutation_site_annotation_description_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_site_annotation_description_gist_idx ON oncomx_v1_0_25.disease_mutation_site_annotation USING gist (description oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_mutation_site_annotation_disease_mutation_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_site_annotation_disease_mutation_id_idx ON oncomx_v1_0_25.disease_mutation_site_annotation USING btree (disease_mutation_id); + + +-- +-- Name: disease_mutation_site_annotation_feature_key_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_site_annotation_feature_key_gist_idx ON oncomx_v1_0_25.disease_mutation_site_annotation USING gist (feature_key oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_mutation_site_annotation_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_site_annotation_id_idx ON oncomx_v1_0_25.disease_mutation_site_annotation USING btree (id); + + +-- +-- Name: disease_mutation_tissue_disease_mutation_id_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_tissue_disease_mutation_id_idx ON oncomx_v1_0_25.disease_mutation_tissue USING btree (disease_mutation_id); + + +-- +-- Name: disease_mutation_tissue_uberon_anatomical_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_mutation_tissue_uberon_anatomical_id_gist_idx ON oncomx_v1_0_25.disease_mutation_tissue USING gist (uberon_anatomical_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: disease_name_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX disease_name_gist_idx ON oncomx_v1_0_25.disease USING gist (name oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: fk_ensembl_transcript_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX fk_ensembl_transcript_idx ON oncomx_v1_0_25.disease_mutation USING btree (ensembl_transcript_id); + + +-- +-- Name: healthy_expression_call_quality_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_call_quality_gist_idx ON oncomx_v1_0_25.healthy_expression USING gist (call_quality oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: healthy_expression_ensembl_gene_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_ensembl_gene_id_gist_idx ON oncomx_v1_0_25.healthy_expression USING gist (ensembl_gene_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: healthy_expression_expression_level_anatomical_relative_gist_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_expression_level_anatomical_relative_gist_id ON oncomx_v1_0_25.healthy_expression USING gist (expression_level_anatomical_relative oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: healthy_expression_expression_level_gene_relative_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_expression_level_gene_relative_gist_idx ON oncomx_v1_0_25.healthy_expression USING gist (expression_level_gene_relative oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: healthy_expression_expression_rank_score_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_expression_rank_score_idx ON oncomx_v1_0_25.healthy_expression USING btree (expression_rank_score); + + +-- +-- Name: healthy_expression_expression_score_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_expression_score_idx ON oncomx_v1_0_25.healthy_expression USING btree (expression_score); + + +-- +-- Name: healthy_expression_uberon_anatomical_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_uberon_anatomical_id_gist_idx ON oncomx_v1_0_25.healthy_expression USING gist (uberon_anatomical_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: healthy_expression_uberon_developmental_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX healthy_expression_uberon_developmental_id_gist_idx ON oncomx_v1_0_25.healthy_expression USING gist (uberon_developmental_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: idx_18385_name; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE UNIQUE INDEX idx_18385_name ON oncomx_v1_0_25.anatomical_entity USING btree (name); + + +-- +-- Name: idx_18398_idx_biomarker_alias; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18398_idx_biomarker_alias ON oncomx_v1_0_25.biomarker_alias USING btree (alias); + + +-- +-- Name: idx_18401_idx_biomarker_pmid; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18401_idx_biomarker_pmid ON oncomx_v1_0_25.biomarker_article USING btree (pmid); + + +-- +-- Name: idx_18405_idx_biomarker_edrn_anat; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18405_idx_biomarker_edrn_anat ON oncomx_v1_0_25.biomarker_edrn USING btree (uberon_anatomical_id); + + +-- +-- Name: idx_18415_fk_biomarker_fda_test; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18415_fk_biomarker_fda_test ON oncomx_v1_0_25.biomarker_fda USING btree (test_submission, test_trade_name); + + +-- +-- Name: idx_18415_idx_biomarker_fda_test_submission; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18415_idx_biomarker_fda_test_submission ON oncomx_v1_0_25.biomarker_fda USING btree (test_submission); + + +-- +-- Name: idx_18415_idx_biomarker_fda_trade_name; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18415_idx_biomarker_fda_trade_name ON oncomx_v1_0_25.biomarker_fda USING btree (test_trade_name); + + +-- +-- Name: idx_18419_idx_biomarker_fda_drug; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18419_idx_biomarker_fda_drug ON oncomx_v1_0_25.biomarker_fda_drug USING btree (biomarker_drug); + + +-- +-- Name: idx_18419_idx_biomarker_fda_drug_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18419_idx_biomarker_fda_drug_id ON oncomx_v1_0_25.biomarker_fda_drug USING btree (biomarker_fda_id); + + +-- +-- Name: idx_18423_idx_biomarker_fda_id_ncit; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18423_idx_biomarker_fda_id_ncit ON oncomx_v1_0_25.biomarker_fda_ncit_term USING btree (biomarker_fda_id); + + +-- +-- Name: idx_18423_idx_biomarker_fda_ncit; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18423_idx_biomarker_fda_ncit ON oncomx_v1_0_25.biomarker_fda_ncit_term USING btree (ncit_biomarker); + + +-- +-- Name: idx_18433_idx_biomarker_fda_test_doid; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18433_idx_biomarker_fda_test_doid ON oncomx_v1_0_25.biomarker_fda_test USING btree (doid); + + +-- +-- Name: idx_18433_idx_biomarker_fda_test_manufacture; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18433_idx_biomarker_fda_test_manufacture ON oncomx_v1_0_25.biomarker_fda_test USING btree (test_manufacturer); + + +-- +-- Name: idx_18433_idx_biomarker_fda_test_submission; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18433_idx_biomarker_fda_test_submission ON oncomx_v1_0_25.biomarker_fda_test USING btree (test_submission); + + +-- +-- Name: idx_18433_idx_biomarker_fda_test_trade_name; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18433_idx_biomarker_fda_test_trade_name ON oncomx_v1_0_25.biomarker_fda_test USING btree (test_trade_name); + + +-- +-- Name: idx_18439_fk_biomarker_fda_test_trial; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18439_fk_biomarker_fda_test_trial ON oncomx_v1_0_25.biomarker_fda_test_trial USING btree (test_submission, test_trade_name); + + +-- +-- Name: idx_18439_idx_biomarker_fda_test_submission_trial; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18439_idx_biomarker_fda_test_submission_trial ON oncomx_v1_0_25.biomarker_fda_test_trial USING btree (test_submission); + + +-- +-- Name: idx_18439_idx_biomarker_fda_test_trial_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18439_idx_biomarker_fda_test_trial_id ON oncomx_v1_0_25.biomarker_fda_test_trial USING btree (test_trial_id); + + +-- +-- Name: idx_18439_idx_biomarker_fda_trade_name_trial; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18439_idx_biomarker_fda_trade_name_trial ON oncomx_v1_0_25.biomarker_fda_test_trial USING btree (test_trade_name); + + +-- +-- Name: idx_18447_fk_biomarker_fda_test_use; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18447_fk_biomarker_fda_test_use ON oncomx_v1_0_25.biomarker_fda_test_use USING btree (test_submission, test_trade_name); + + +-- +-- Name: idx_18463_name; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE UNIQUE INDEX idx_18463_name ON oncomx_v1_0_25.disease USING btree (name); + + +-- +-- Name: idx_18472_idx_dm_article_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18472_idx_dm_article_id ON oncomx_v1_0_25.disease_mutation_article USING btree (disease_mutation_id); + + +-- +-- Name: idx_18472_idx_dm_article_pmid; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18472_idx_dm_article_pmid ON oncomx_v1_0_25.disease_mutation_article USING btree (pmid); + + +-- +-- Name: idx_18477_idx_dm_impact_prediction_tool; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18477_idx_dm_impact_prediction_tool ON oncomx_v1_0_25.disease_mutation_impact_prediction USING btree (tool); + + +-- +-- Name: idx_18477_idx_fk_dm_impact_prediction_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18477_idx_fk_dm_impact_prediction_id ON oncomx_v1_0_25.disease_mutation_impact_prediction USING btree (disease_mutation_id); + + +-- +-- Name: idx_18492_idx_dm_site_annotation_feature; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18492_idx_dm_site_annotation_feature ON oncomx_v1_0_25.disease_mutation_site_annotation USING btree (feature_key); + + +-- +-- Name: idx_18492_idx_fk_dm_site_annotation_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18492_idx_fk_dm_site_annotation_id ON oncomx_v1_0_25.disease_mutation_site_annotation USING btree (disease_mutation_id); + + +-- +-- Name: idx_18499_idx_fk_disease_mutation_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18499_idx_fk_disease_mutation_id ON oncomx_v1_0_25.disease_mutation_tissue USING btree (disease_mutation_id); + + +-- +-- Name: idx_18499_idx_fk_uberon_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18499_idx_fk_uberon_id ON oncomx_v1_0_25.disease_mutation_tissue USING btree (uberon_anatomical_id); + + +-- +-- Name: idx_18502_fk_ensg_he_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18502_fk_ensg_he_idx ON oncomx_v1_0_25.healthy_expression USING btree (ensembl_gene_id); + + +-- +-- Name: idx_18502_fk_stage_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18502_fk_stage_idx ON oncomx_v1_0_25.healthy_expression USING btree (uberon_developmental_id); + + +-- +-- Name: idx_18502_fk_uberon_he_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18502_fk_uberon_he_idx ON oncomx_v1_0_25.healthy_expression USING btree (uberon_anatomical_id); + + +-- +-- Name: idx_18517_idx_fk_uniprotkb_ac; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18517_idx_fk_uniprotkb_ac ON oncomx_v1_0_25.map_protein_disease_mutation USING btree (uniprotkb_ac); + + +-- +-- Name: idx_18517_peptide_id; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE UNIQUE INDEX idx_18517_peptide_id ON oncomx_v1_0_25.map_protein_disease_mutation USING btree (peptide_id); + + +-- +-- Name: idx_18520_idx_uniprotkb_canonical_ac; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18520_idx_uniprotkb_canonical_ac ON oncomx_v1_0_25.map_uniprot_canonical_id USING btree (uniprotkb_canonical_ac); + + +-- +-- Name: idx_18532_fk_gene_speciesid; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18532_fk_gene_speciesid ON oncomx_v1_0_25.xref_gene_ensembl USING btree (speciesid); + + +-- +-- Name: idx_18532_xref_ensg_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_18532_xref_ensg_idx ON oncomx_v1_0_25.xref_gene_ensembl USING btree (gene_symbol); + + +-- +-- Name: idx_26577_fk_doid_cancer_tissue_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_26577_fk_doid_cancer_tissue_idx ON oncomx_v1_0_25.cancer_tissue USING btree (doid); + + +-- +-- Name: idx_26577_fk_uberon_cancer_tissue_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_26577_fk_uberon_cancer_tissue_idx ON oncomx_v1_0_25.cancer_tissue USING btree (uberon_anatomical_id); + + +-- +-- Name: idx_26580_idx_df_doid; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_26580_idx_df_doid ON oncomx_v1_0_25.differential_expression USING btree (doid); + + +-- +-- Name: idx_26580_idx_gene_symbol; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_26580_idx_gene_symbol ON oncomx_v1_0_25.differential_expression USING btree (gene_symbol); + + +-- +-- Name: idx_disease_mutation_candidate_key; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_disease_mutation_candidate_key ON oncomx_v1_0_25.disease_mutation USING btree (alt_nt, cds_pos, data_source, doid, ensembl_transcript_id); + + +-- +-- Name: idx_dm_doid; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX idx_dm_doid ON oncomx_v1_0_25.disease_mutation USING btree (doid); + + +-- +-- Name: map_protein_disease_mutation_ensembl_transcript_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX map_protein_disease_mutation_ensembl_transcript_id_gist_idx ON oncomx_v1_0_25.map_protein_disease_mutation USING gist (ensembl_transcript_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: map_protein_disease_mutation_peptide_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX map_protein_disease_mutation_peptide_id_gist_idx ON oncomx_v1_0_25.map_protein_disease_mutation USING gist (peptide_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: map_protein_disease_mutation_uniprotkb_ac_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX map_protein_disease_mutation_uniprotkb_ac_gist_idx ON oncomx_v1_0_25.map_protein_disease_mutation USING gist (uniprotkb_ac oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: map_uniprot_canonical_id_uniprotkb_ac_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX map_uniprot_canonical_id_uniprotkb_ac_gist_idx ON oncomx_v1_0_25.map_uniprot_canonical_id USING gist (uniprotkb_ac oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: map_uniprot_canonical_id_uniprotkb_canonical_ac_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX map_uniprot_canonical_id_uniprotkb_canonical_ac_gist_idx ON oncomx_v1_0_25.map_uniprot_canonical_id USING gist (uniprotkb_canonical_ac oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: species_genus_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX species_genus_gist_idx ON oncomx_v1_0_25.species USING gist (genus oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: species_species_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX species_species_gist_idx ON oncomx_v1_0_25.species USING gist (species oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: species_speciescommonname_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX species_speciescommonname_gist_idx ON oncomx_v1_0_25.species USING gist (speciescommonname oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: species_speciesid_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX species_speciesid_idx ON oncomx_v1_0_25.species USING btree (speciesid); + + +-- +-- Name: stage_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX stage_id_gist_idx ON oncomx_v1_0_25.stage USING gist (id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: stage_name_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX stage_name_gist_idx ON oncomx_v1_0_25.stage USING gist (name oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: xref_gene_ensembl_ensembl_gene_id_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX xref_gene_ensembl_ensembl_gene_id_gist_idx ON oncomx_v1_0_25.xref_gene_ensembl USING gist (ensembl_gene_id oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: xref_gene_ensembl_gene_symbol_gist_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX xref_gene_ensembl_gene_symbol_gist_idx ON oncomx_v1_0_25.xref_gene_ensembl USING gist (gene_symbol oncomx_v1_0_25.gist_trgm_ops); + + +-- +-- Name: xref_gene_ensembl_speciesid_idx; Type: INDEX; Schema: oncomx_v1_0_25; Owner: postgres +-- + +CREATE INDEX xref_gene_ensembl_speciesid_idx ON oncomx_v1_0_25.xref_gene_ensembl USING btree (speciesid); + + +-- +-- Name: biomarker_alias fk_biomarker_alias; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_alias + ADD CONSTRAINT fk_biomarker_alias FOREIGN KEY (biomarker_internal_id) REFERENCES oncomx_v1_0_25.biomarker(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_article fk_biomarker_article; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_article + ADD CONSTRAINT fk_biomarker_article FOREIGN KEY (biomarker_internal_id) REFERENCES oncomx_v1_0_25.biomarker(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_edrn fk_biomarker_edrn_anat; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_edrn + ADD CONSTRAINT fk_biomarker_edrn_anat FOREIGN KEY (uberon_anatomical_id) REFERENCES oncomx_v1_0_25.anatomical_entity(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_edrn fk_biomarker_edrn_id; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_edrn + ADD CONSTRAINT fk_biomarker_edrn_id FOREIGN KEY (id) REFERENCES oncomx_v1_0_25.biomarker(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_fda_drug fk_biomarker_fda_drug; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_drug + ADD CONSTRAINT fk_biomarker_fda_drug FOREIGN KEY (biomarker_fda_id) REFERENCES oncomx_v1_0_25.biomarker_fda(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_fda fk_biomarker_fda_id; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda + ADD CONSTRAINT fk_biomarker_fda_id FOREIGN KEY (id) REFERENCES oncomx_v1_0_25.biomarker(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_fda_ncit_term fk_biomarker_fda_ncit; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_ncit_term + ADD CONSTRAINT fk_biomarker_fda_ncit FOREIGN KEY (biomarker_fda_id) REFERENCES oncomx_v1_0_25.biomarker_fda(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_fda fk_biomarker_fda_test; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda + ADD CONSTRAINT fk_biomarker_fda_test FOREIGN KEY (test_submission, test_trade_name) REFERENCES oncomx_v1_0_25.biomarker_fda_test(test_submission, test_trade_name) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_fda_test fk_biomarker_fda_test_doid; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_test + ADD CONSTRAINT fk_biomarker_fda_test_doid FOREIGN KEY (doid) REFERENCES oncomx_v1_0_25.disease(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_fda_test_trial fk_biomarker_fda_test_trial; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_test_trial + ADD CONSTRAINT fk_biomarker_fda_test_trial FOREIGN KEY (test_submission, test_trade_name) REFERENCES oncomx_v1_0_25.biomarker_fda_test(test_submission, test_trade_name) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: biomarker_fda_test_use fk_biomarker_fda_test_use; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.biomarker_fda_test_use + ADD CONSTRAINT fk_biomarker_fda_test_use FOREIGN KEY (test_submission, test_trade_name) REFERENCES oncomx_v1_0_25.biomarker_fda_test(test_submission, test_trade_name) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: differential_expression fk_df_doid; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.differential_expression + ADD CONSTRAINT fk_df_doid FOREIGN KEY (doid) REFERENCES oncomx_v1_0_25.disease(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: disease_mutation fk_disease_mutation_doid; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation + ADD CONSTRAINT fk_disease_mutation_doid FOREIGN KEY (doid) REFERENCES oncomx_v1_0_25.disease(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: disease_mutation_article fk_dm_article_id; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_article + ADD CONSTRAINT fk_dm_article_id FOREIGN KEY (disease_mutation_id) REFERENCES oncomx_v1_0_25.disease_mutation(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: disease_mutation_impact_prediction fk_dm_impact_prediction_id; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_impact_prediction + ADD CONSTRAINT fk_dm_impact_prediction_id FOREIGN KEY (disease_mutation_id) REFERENCES oncomx_v1_0_25.disease_mutation(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: disease_mutation_site_annotation fk_dm_site_annotation_id; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_site_annotation + ADD CONSTRAINT fk_dm_site_annotation_id FOREIGN KEY (disease_mutation_id) REFERENCES oncomx_v1_0_25.disease_mutation(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: cancer_tissue fk_doid_cancer_tissue; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.cancer_tissue + ADD CONSTRAINT fk_doid_cancer_tissue FOREIGN KEY (doid) REFERENCES oncomx_v1_0_25.disease(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: disease_mutation fk_ensembl_transcript; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation + ADD CONSTRAINT fk_ensembl_transcript FOREIGN KEY (ensembl_transcript_id) REFERENCES oncomx_v1_0_25.map_protein_disease_mutation(ensembl_transcript_id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: healthy_expression fk_ensg_he; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.healthy_expression + ADD CONSTRAINT fk_ensg_he FOREIGN KEY (ensembl_gene_id) REFERENCES oncomx_v1_0_25.xref_gene_ensembl(ensembl_gene_id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: xref_gene_ensembl fk_gene_speciesid; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.xref_gene_ensembl + ADD CONSTRAINT fk_gene_speciesid FOREIGN KEY (speciesid) REFERENCES oncomx_v1_0_25.species(speciesid) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: healthy_expression fk_stage; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.healthy_expression + ADD CONSTRAINT fk_stage FOREIGN KEY (uberon_developmental_id) REFERENCES oncomx_v1_0_25.stage(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: cancer_tissue fk_uberon_cancer_tissue; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.cancer_tissue + ADD CONSTRAINT fk_uberon_cancer_tissue FOREIGN KEY (uberon_anatomical_id) REFERENCES oncomx_v1_0_25.anatomical_entity(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: healthy_expression fk_uberon_he; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.healthy_expression + ADD CONSTRAINT fk_uberon_he FOREIGN KEY (uberon_anatomical_id) REFERENCES oncomx_v1_0_25.anatomical_entity(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: map_protein_disease_mutation fk_uniprotkb_ac; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.map_protein_disease_mutation + ADD CONSTRAINT fk_uniprotkb_ac FOREIGN KEY (uniprotkb_ac) REFERENCES oncomx_v1_0_25.map_uniprot_canonical_id(uniprotkb_ac) ON UPDATE CASCADE; + + +-- +-- Name: disease_mutation_tissue idx_fk_disease_mutation_id; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_tissue + ADD CONSTRAINT idx_fk_disease_mutation_id FOREIGN KEY (disease_mutation_id) REFERENCES oncomx_v1_0_25.disease_mutation(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: disease_mutation_tissue idx_fk_disease_mutation_uberon; Type: FK CONSTRAINT; Schema: oncomx_v1_0_25; Owner: postgres +-- + +ALTER TABLE ONLY oncomx_v1_0_25.disease_mutation_tissue + ADD CONSTRAINT idx_fk_disease_mutation_uberon FOREIGN KEY (uberon_anatomical_id) REFERENCES oncomx_v1_0_25.anatomical_entity(id) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: DATABASE oncomx_v1_0_25_small; Type: ACL; Schema: -; Owner: postgres +-- + +REVOKE ALL ON DATABASE oncomx_v1_0_25_small FROM PUBLIC; +REVOKE ALL ON DATABASE oncomx_v1_0_25_small FROM postgres; +GRANT ALL ON DATABASE oncomx_v1_0_25_small TO postgres; + + +-- +-- Name: SCHEMA oncomx_v1_0_25; Type: ACL; Schema: -; Owner: postgres +-- + +REVOKE ALL ON SCHEMA oncomx_v1_0_25 FROM PUBLIC; +REVOKE ALL ON SCHEMA oncomx_v1_0_25 FROM postgres; +GRANT ALL ON SCHEMA oncomx_v1_0_25 TO postgres; + + +-- +-- PostgreSQL database dump complete +-- + diff --git a/sdss/restore.sql b/sdss/restore.sql new file mode 100644 index 0000000..5ce26e6 --- /dev/null +++ b/sdss/restore.sql @@ -0,0 +1,377 @@ +-- +-- NOTE: +-- +-- File paths need to be edited. Search for $$PATH$$ and +-- replace it with the path to the directory containing +-- the extracted data files. +-- +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 9.5.20 +-- Dumped by pg_dump version 14.4 + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +DROP DATABASE IF EXISTS skyserver_dr16_2020_11_30; +-- +-- Name: skyserver_dr16_2020_11_30; Type: DATABASE; Schema: -; Owner: postgres +-- + +CREATE DATABASE skyserver_dr16_2020_11_30 WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE = 'en_US.utf8'; + + +ALTER DATABASE skyserver_dr16_2020_11_30 OWNER TO postgres; + +\connect skyserver_dr16_2020_11_30 + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Name: lite; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA lite; + +ALTER SCHEMA lite OWNER TO postgres; + +CREATE EXTENSION IF NOT EXISTS pg_trgm SCHEMA lite; + +SET default_tablespace = ''; + +-- +-- Name: galspecline; Type: TABLE; Schema: lite; Owner: postgres +-- + +CREATE TABLE lite.galspecline ( + specobjid numeric(20,0) NOT NULL +); + + +ALTER TABLE lite.galspecline OWNER TO postgres; + +-- +-- Name: neighbors; Type: TABLE; Schema: lite; Owner: postgres +-- + +CREATE TABLE lite.neighbors ( + objid bigint, + neighborobjid bigint, + distance double precision, + type smallint, + neighbortype smallint, + mode smallint, + neighbormode smallint +); + + +ALTER TABLE lite.neighbors OWNER TO postgres; + +-- +-- Name: photo_type; Type: TABLE; Schema: lite; Owner: postgres +-- + +CREATE TABLE lite.photo_type ( + value integer NOT NULL, + name character varying, + description text +); + + +ALTER TABLE lite.photo_type OWNER TO postgres; + +-- +-- Name: photoobj; Type: TABLE; Schema: lite; Owner: postgres +-- + +CREATE TABLE lite.photoobj ( + objid bigint NOT NULL, + run smallint, + rerun smallint, + field smallint, + mode smallint, + type smallint, + clean integer, + flags bigint, + rowc real, + colc real, + cmodelmag_u real, + cmodelmag_g real, + cmodelmag_r real, + ra double precision, + "dec" double precision, + b double precision, + l double precision, + extinction_r real, + mjd integer, + loadversion integer, + u real, + g real, + r real, + i real, + z real +); + + +ALTER TABLE lite.photoobj OWNER TO postgres; + +-- +-- Name: specobj; Type: TABLE; Schema: lite; Owner: postgres +-- + +CREATE TABLE lite.specobj ( + specobjid numeric(20,0) NOT NULL, + bestobjid bigint, + plateid numeric(20,0), + scienceprimary smallint, + segue2primary smallint, + survey character varying(32), + programname character varying(32), + mjd integer, + plate smallint, + fiberid smallint, + special_target1 bigint, + segue2_target1 bigint, + segue2_target2 bigint, + ancillary_target1 bigint, + ra double precision, + "dec" double precision, + z real, + zerr real, + zwarning integer, + class character varying(32), + subclass character varying(32), + veldisp real, + veldisperr real, + loadversion integer +); + + +ALTER TABLE lite.specobj OWNER TO postgres; + +-- +-- Name: spplines; Type: TABLE; Schema: lite; Owner: postgres +-- + +CREATE TABLE lite.spplines ( + specobjid numeric(20,0) NOT NULL +); + + +ALTER TABLE lite.spplines OWNER TO postgres; + +-- +-- Data for Name: galspecline; Type: TABLE DATA; Schema: lite; Owner: postgres +-- + +\copy lite.galspecline (specobjid) FROM stdin; +\. +\copy lite.galspecline (specobjid) FROM '$$PATH$$/2267.dat'; + +-- +-- Data for Name: neighbors; Type: TABLE DATA; Schema: lite; Owner: postgres +-- + +\copy lite.neighbors (objid, neighborobjid, distance, type, neighbortype, mode, neighbormode) FROM stdin; +\. +\copy lite.neighbors (objid, neighborobjid, distance, type, neighbortype, mode, neighbormode) FROM '$$PATH$$/2263.dat'; + +-- +-- Data for Name: photo_type; Type: TABLE DATA; Schema: lite; Owner: postgres +-- + +\copy lite.photo_type (value, name, description) FROM stdin; +\. +\copy lite.photo_type (value, name, description) FROM '$$PATH$$/2262.dat'; + +-- +-- Data for Name: photoobj; Type: TABLE DATA; Schema: lite; Owner: postgres +-- + +\copy lite.photoobj (objid, run, rerun, field, mode, type, clean, flags, rowc, colc, cmodelmag_u, cmodelmag_g, cmodelmag_r, ra, "dec", b, l, extinction_r, mjd, loadversion, u, g, r, i, z) FROM stdin; +\. +\copy lite.photoobj (objid, run, rerun, field, mode, type, clean, flags, rowc, colc, cmodelmag_u, cmodelmag_g, cmodelmag_r, ra, "dec", b, l, extinction_r, mjd, loadversion, u, g, r, i, z) FROM '$$PATH$$/2265.dat'; + +-- +-- Data for Name: specobj; Type: TABLE DATA; Schema: lite; Owner: postgres +-- + +\copy lite.specobj (specobjid, bestobjid, plateid, scienceprimary, segue2primary, survey, programname, mjd, plate, fiberid, special_target1, segue2_target1, segue2_target2, ancillary_target1, ra, "dec", z, zerr, zwarning, class, subclass, veldisp, veldisperr, loadversion) FROM stdin; +\. +\copy lite.specobj (specobjid, bestobjid, plateid, scienceprimary, segue2primary, survey, programname, mjd, plate, fiberid, special_target1, segue2_target1, segue2_target2, ancillary_target1, ra, "dec", z, zerr, zwarning, class, subclass, veldisp, veldisperr, loadversion) FROM '$$PATH$$/2266.dat'; + +-- +-- Data for Name: spplines; Type: TABLE DATA; Schema: lite; Owner: postgres +-- + +\copy lite.spplines (specobjid) FROM stdin; +\. +\copy lite.spplines (specobjid) FROM '$$PATH$$/2264.dat'; + +-- +-- Name: galspecline galspecline_pk; Type: CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.galspecline + ADD CONSTRAINT galspecline_pk PRIMARY KEY (specobjid); + + +-- +-- Name: photo_type photo_type_pk; Type: CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.photo_type + ADD CONSTRAINT photo_type_pk PRIMARY KEY (value); + + +-- +-- Name: photoobj photoobj_pk; Type: CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.photoobj + ADD CONSTRAINT photoobj_pk PRIMARY KEY (objid); + + +-- +-- Name: specobj specobj_pk; Type: CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.specobj + ADD CONSTRAINT specobj_pk PRIMARY KEY (specobjid); + + +-- +-- Name: spplines spplines_pk; Type: CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.spplines + ADD CONSTRAINT spplines_pk PRIMARY KEY (specobjid); + + +-- +-- Name: galspecline fk_galspecline; Type: FK CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.galspecline + ADD CONSTRAINT fk_galspecline FOREIGN KEY (specobjid) REFERENCES lite.specobj(specobjid); + + +-- +-- Name: neighbors fk_neighbors; Type: FK CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.neighbors + ADD CONSTRAINT fk_neighbors FOREIGN KEY (objid) REFERENCES lite.photoobj(objid); + + +-- +-- Name: specobj fk_specobj; Type: FK CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.specobj + ADD CONSTRAINT fk_specobj FOREIGN KEY (bestobjid) REFERENCES lite.photoobj(objid); + + +-- +-- Name: spplines fk_spplines; Type: FK CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.spplines + ADD CONSTRAINT fk_spplines FOREIGN KEY (specobjid) REFERENCES lite.specobj(specobjid); + + +-- +-- Name: photoobj photoobj__photo_type_value_fk; Type: FK CONSTRAINT; Schema: lite; Owner: postgres +-- + +ALTER TABLE ONLY lite.photoobj + ADD CONSTRAINT photoobj__photo_type_value_fk FOREIGN KEY (type) REFERENCES lite.photo_type(value); + + +-- +-- Name: DATABASE skyserver_dr16_2020_11_30; Type: ACL; Schema: -; Owner: postgres +-- + +REVOKE ALL ON DATABASE skyserver_dr16_2020_11_30 FROM PUBLIC; +REVOKE ALL ON DATABASE skyserver_dr16_2020_11_30 FROM postgres; +GRANT ALL ON DATABASE skyserver_dr16_2020_11_30 TO postgres; + +-- +-- Name: SCHEMA lite; Type: ACL; Schema: -; Owner: postgres +-- + +REVOKE ALL ON SCHEMA lite FROM PUBLIC; +REVOKE ALL ON SCHEMA lite FROM postgres; +GRANT ALL ON SCHEMA lite TO postgres; + +-- +-- Name: TABLE galspecline; Type: ACL; Schema: lite; Owner: postgres +-- + +REVOKE ALL ON TABLE lite.galspecline FROM PUBLIC; +REVOKE ALL ON TABLE lite.galspecline FROM postgres; +GRANT ALL ON TABLE lite.galspecline TO postgres; + +-- +-- Name: TABLE neighbors; Type: ACL; Schema: lite; Owner: postgres +-- + +REVOKE ALL ON TABLE lite.neighbors FROM PUBLIC; +REVOKE ALL ON TABLE lite.neighbors FROM postgres; +GRANT ALL ON TABLE lite.neighbors TO postgres; + +-- +-- Name: TABLE photo_type; Type: ACL; Schema: lite; Owner: postgres +-- + +REVOKE ALL ON TABLE lite.photo_type FROM PUBLIC; +REVOKE ALL ON TABLE lite.photo_type FROM postgres; +GRANT ALL ON TABLE lite.photo_type TO postgres; + +-- +-- Name: TABLE photoobj; Type: ACL; Schema: lite; Owner: postgres +-- + +REVOKE ALL ON TABLE lite.photoobj FROM PUBLIC; +REVOKE ALL ON TABLE lite.photoobj FROM postgres; +GRANT ALL ON TABLE lite.photoobj TO postgres; + +-- +-- Name: TABLE specobj; Type: ACL; Schema: lite; Owner: postgres +-- + +REVOKE ALL ON TABLE lite.specobj FROM PUBLIC; +REVOKE ALL ON TABLE lite.specobj FROM postgres; +GRANT ALL ON TABLE lite.specobj TO postgres; + +-- +-- Name: TABLE spplines; Type: ACL; Schema: lite; Owner: postgres +-- + +REVOKE ALL ON TABLE lite.spplines FROM PUBLIC; +REVOKE ALL ON TABLE lite.spplines FROM postgres; +GRANT ALL ON TABLE lite.spplines TO postgres; + +-- +-- PostgreSQL database dump complete +-- +