COPY tm_cz.tmp_trial_data (usubjid, study_id, data_type, visit_name, data_label, data_value, unit_cd, category_path, sub_category_path_1, sub_category_path_2, patient_num, sourcesystem_cd, base_path) FROM stdin;
\.


--
-- Data for Name: tmp_trial_nodes; Type: TABLE DATA; Schema: tm_cz; Owner: tm_cz
--

COPY tm_cz.tmp_trial_nodes (leaf_node, category_cd, visit_name, sample_type, period, data_label, node_name, data_value) FROM stdin;
\.


--
-- Data for Name: clinical_trial_metadata_ext; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.clinical_trial_metadata_ext (trial, title, description, condition, disease_subtype, drug_cnto, drug_name, descriptive_trial_name, study_owner, biomarker_data_owner, study_phase, blinding_procedure, study_type, duration_of_study, number_of_patients, number_of_sites, route_of_admin, dosing_regimen, group_assignment, type_of_control, study_design, completion_date, primary_endpoints, secondary_endpoints, inclusion_criteria, exclusion_criteria, subjects, gender_restriction, min_age, max_age, secondary_ids, pi, development_partner, geo_platform, main_findings, platform_name, study_id, search_area, experimental_design, data_source) FROM stdin;
\.


--
-- Name: lt_chromo_region_id_seq; Type: SEQUENCE SET; Schema: tm_lz; Owner: tm_lz
--

SELECT pg_catalog.setval('tm_lz.lt_chromo_region_id_seq', 1, false);


--
-- Data for Name: lt_chromosomal_region; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_chromosomal_region (region_id, gpl_id, chromosome, start_bp, end_bp, num_probes, region_name, cytoband, gene_symbol, gene_id, organism) FROM stdin;
\.


--
-- Data for Name: lt_metabolomic_annotation; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_metabolomic_annotation (gpl_id, biochemical_name, hmdb_id, super_pathway, sub_pathway) FROM stdin;
\.


--
-- Data for Name: lt_metabolomic_display_mapping; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_metabolomic_display_mapping (category_cd, display_value, display_label, display_unit) FROM stdin;
\.


--
-- Data for Name: lt_protein_annotation; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_protein_annotation (gpl_id, peptide, uniprot_id, biomarker_id, organism) FROM stdin;
\.


--
-- Data for Name: lt_qpcr_mirna_annotation; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_qpcr_mirna_annotation (id_ref, mirna_id, sn_id, organism, gpl_id) FROM stdin;
\.


--
-- Data for Name: lt_rnaseq_annotation; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_rnaseq_annotation (transcript_id, gene_symbol, organism) FROM stdin;
\.


--
-- Data for Name: lt_snp_calls_by_gsm; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_snp_calls_by_gsm (gsm_num, snp_name, snp_calls) FROM stdin;
\.


--
-- Data for Name: lt_snp_copy_number; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_snp_copy_number (gsm_num, snp_name, chrom, chrom_pos, copy_number) FROM stdin;
\.


--
-- Data for Name: lt_snp_gene_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_snp_gene_map (snp_name, entrez_gene_id) FROM stdin;
\.


--
-- Data for Name: lt_src_acgh_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_acgh_data (trial_name, region_name, expr_id, chip, segmented, flag, probhomloss, probloss, probnorm, probgain, probamp) FROM stdin;
\.


--
-- Data for Name: lt_src_cel_files; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_cel_files (cel_file_name) FROM stdin;
\.


--
-- Data for Name: lt_src_clinical_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_clinical_data (study_id, site_id, subject_id, visit_name, sample_type, data_label, data_value, category_cd, data_label_ctrl_vocab_code, data_value_ctrl_vocab_code, data_label_components, units_cd, visit_date, link_type, link_value, end_date, visit_reference, date_ind, obs_string, valuetype_cd, date_timestamp, ctrl_vocab_code, modifier_cd, sample_cd) FROM stdin;
\.


--
-- Data for Name: lt_src_data_metadata; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_data_metadata (tag_path, tag_type, tag_name, tags_idx) FROM stdin;
\.


--
-- Data for Name: lt_src_deapp_annot; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_deapp_annot (gpl_id, probe_id, gene_symbol, gene_id, organism) FROM stdin;
\.


--
-- Data for Name: lt_src_display_mapping; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_display_mapping (category_cd, display_value, display_label, display_unit) FROM stdin;
\.


--
-- Data for Name: lt_src_metabolomic_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_metabolomic_data (trial_name, biochemical, expr_id, intensity_value) FROM stdin;
\.


--
-- Data for Name: lt_src_metabolomic_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_metabolomic_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd, source_cd) FROM stdin;
\.


--
-- Data for Name: lt_src_metabolomics_display_mapping; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_metabolomics_display_mapping (category_cd, display_value, display_label, display_unit) FROM stdin;
\.


--
-- Data for Name: lt_src_mirna_deapp_annot; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_mirna_deapp_annot (id_ref, probe_id, mirna_symbol, mirna_id, organism) FROM stdin;
\.


--
-- Data for Name: lt_src_mirna_display_mapping; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_mirna_display_mapping (category_cd, display_value, display_label, display_unit) FROM stdin;
\.


--
-- Data for Name: lt_src_mirna_subj_samp_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_mirna_subj_samp_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd, source_cd) FROM stdin;
\.


--
-- Data for Name: lt_src_mrna_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_mrna_data (trial_name, probeset, expr_id, intensity_value) FROM stdin;
\.


--
-- Data for Name: lt_src_mrna_subj_samp_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_mrna_subj_samp_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd, source_cd) FROM stdin;
\.


--
-- Data for Name: lt_src_nextbio; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_nextbio (bio_concept_code, code_name, code_description, code_type_name) FROM stdin;
\.


--
-- Data for Name: lt_src_omicsoft_annot; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_omicsoft_annot (gpl_id, probe_id, gene_symbol, gene_id, organism, etl_id) FROM stdin;
\.


--
-- Data for Name: lt_src_omicsoft_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_omicsoft_data (id, contrast_name, probe_id, raw_p_value, adj_p_value, estimate, fold_change, max_l_s_mean, bio_assay_analysis_id, mean_fold_change, std_dev_fold_change, tea_normal_pvalue, etl_id) FROM stdin;
\.


--
-- Data for Name: lt_src_pathway; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_pathway (name, gene, organism) FROM stdin;
\.


--
-- Data for Name: lt_src_pathway_org; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_pathway_org (name, gene, organism, id) FROM stdin;
\.


--
-- Data for Name: lt_src_protein_display_mapping; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_protein_display_mapping (category_cd, display_value, display_label, display_unit) FROM stdin;
\.


--
-- Data for Name: lt_src_proteomics_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_proteomics_data (trial_name, peptide, m_p_id, intensity_value) FROM stdin;
\.


--
-- Data for Name: lt_src_proteomics_sub_sam_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_proteomics_sub_sam_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd, source_cd) FROM stdin;
\.


--
-- Data for Name: lt_src_qpcr_mirna_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_qpcr_mirna_data (trial_name, probeset, expr_id, intensity_value) FROM stdin;
\.


--
-- Data for Name: lt_src_rbm_annotation; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rbm_annotation (gpl_id, antigen_name, uniprotid, gene_symbol, gene_id) FROM stdin;
\.


--
-- Data for Name: lt_src_rbm_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rbm_data (sample_id, analyte, avalue, trial_id) FROM stdin;
\.


--
-- Data for Name: lt_src_rbm_display_mapping; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rbm_display_mapping (category_cd, display_value, display_label, display_unit) FROM stdin;
\.


--
-- Data for Name: lt_src_rbm_subj_samp_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rbm_subj_samp_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd, source_cd) FROM stdin;
\.


--
-- Data for Name: lt_src_rna_display_mapping; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rna_display_mapping (category_cd, display_value, display_label, display_unit) FROM stdin;
\.


--
-- Data for Name: lt_src_rna_seq_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rna_seq_data (trial_name, probeset, expr_id, intensity_value) FROM stdin;
\.


--
-- Data for Name: lt_src_rna_seq_subj_samp_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rna_seq_subj_samp_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd, source_cd) FROM stdin;
\.


--
-- Data for Name: lt_src_rnaseq_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_rnaseq_data (trial_name, region_name, expr_id, readcount, normalized_readcount) FROM stdin;
\.


--
-- Data for Name: lt_src_sample_categories; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_sample_categories (trial_cd, site_cd, subject_cd, sample_cd, category_cd, category_value) FROM stdin;
\.


--
-- Data for Name: lt_src_search_keyword; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_search_keyword (keyword, display_category, data_category, source_cd, uid_prefix, unique_id, parent_term, bio_data_id) FROM stdin;
\.


--
-- Data for Name: lt_src_study_metadata; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_study_metadata (study_id, title, description, design, start_date, completion_date, primary_investigator, contact_field, status, overall_design, institution, country, biomarker_type, target, access_type, study_owner, study_phase, blinding_procedure, studytype, duration_of_study_weeks, number_of_patients, number_of_sites, route_of_administration, dosing_regimen, group_assignment, type_of_control, primary_end_points, secondary_end_points, inclusion_criteria, exclusion_criteria, subjects, gender_restriction_mfb, min_age, max_age, secondary_ids, development_partner, geo_platform, main_findings, search_area, compound, disease, pubmed_ids, organism, study_title, study_date, study_institution, study_country, study_related_publication, study_description, study_access_type, study_objective, study_biomarker_type, study_compound, study_design_factors, study_nbr_subjects, study_organism) FROM stdin;
\.


--
-- Data for Name: lt_src_study_metadata_ad_hoc; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_study_metadata_ad_hoc (study_id, ad_hoc_property_key, ad_hoc_property_value, ad_hoc_property_link) FROM stdin;
\.


--
-- Data for Name: lt_src_subj_enroll_date; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lt_src_subj_enroll_date (study_id, site_id, subject_id, enroll_date) FROM stdin;
\.


--
-- Data for Name: lz_src_analysis_metadata; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_analysis_metadata (study_id, data_type, analysis_name, description, phenotype_ids, population, tissue, genome_version, genotype_platform_ids, expression_platform_ids, statistical_test, research_unit, sample_size, cell_type, pvalue_cutoff, etl_date, filename, status, process_date, etl_id, analysis_name_archived, model_name, model_desc, sensitive_flag, sensitive_desc) FROM stdin;
\.


--
-- Data for Name: lz_src_clinical_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_clinical_data (study_id, site_id, subject_id, visit_name, data_label, data_value, category_cd, etl_job_id, etl_date, data_label_ctrl_vocab_code, data_value_ctrl_vocab_code, data_label_components, units_cd, visit_date, link_type, link_value, end_date, visit_reference, date_ind, obs_string, valuetype_cd, modifier_cd, date_timestamp, ctrl_vocab_code, sample_type) FROM stdin;
\.


--
-- Data for Name: lz_src_mrna_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_mrna_data (trial_name, probeset, expr_id, intensity_value, source_cd) FROM stdin;
\.


--
-- Data for Name: lz_src_mrna_subj_samp_map; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_mrna_subj_samp_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd, source_cd) FROM stdin;
\.


--
-- Data for Name: lz_src_sample_categories; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_sample_categories (trial_cd, site_cd, subject_cd, sample_cd, category_cd, category_value) FROM stdin;
\.


--
-- Data for Name: lz_src_sample_categories_bkup; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_sample_categories_bkup (trial_cd, site_cd, subject_cd, sample_cd, category_cd, category_value) FROM stdin;
\.


--
-- Data for Name: lz_src_study_metadata; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_study_metadata (study_title, study_date, study_owner, study_institution, study_country, study_related_publication, study_description, study_access_type, study_phase, study_objective, study_biomarker_type, study_compound, study_design_factors, study_nbr_subjects, study_organism, study_id) FROM stdin;
\.


--
-- Data for Name: lz_src_study_metadata_ad_hoc; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_study_metadata_ad_hoc (study_id, ad_hoc_property_key, ad_hoc_property_value, ad_hoc_property_link, upload_date) FROM stdin;
\.


--
-- Data for Name: lz_src_subj_enroll_date; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.lz_src_subj_enroll_date (study_id, site_id, subject_id, enroll_date) FROM stdin;
\.


--
-- Data for Name: rwg_analysis; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_analysis (study_id, cohorts, analysis_id, pvalue_cutoff, foldchange_cutoff, lsmean_cutoff, analysis_type, data_type, platform, long_desc, short_desc, import_date, bio_assay_analysis_id) FROM stdin;
\.


--
-- Data for Name: rwg_analysis_data; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_analysis_data (study_id, probeset, fold_change, pvalue, raw_pvalue, min_lsmean, max_lsmean, analysis_cd, bio_assay_analysis_id, adjusted_pvalue) FROM stdin;
\.


--
-- Data for Name: rwg_analysis_data_ext; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_analysis_data_ext (analysis_id, probeset, preferred_pvalue, raw_pvalue, adjusted_pvalue, fold_change, lsmean_1, lsmean_2) FROM stdin;
\.


--
-- Data for Name: rwg_analysis_ext; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_analysis_ext (study_id, cohorts, analysis_id, pvalue_cutoff, foldchange_cutoff, lsmean_cutoff, analysis_type, data_type, platform, long_desc, short_desc) FROM stdin;
\.


--
-- Data for Name: rwg_cohorts; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_cohorts (study_id, cohort_id, disease, sample_type, treatment, organism, pathology, cohort_title, short_desc, long_desc, import_date) FROM stdin;
\.


--
-- Data for Name: rwg_cohorts_ext; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_cohorts_ext (study_id, cohort_id, disease, sample_type, treatment, organism, pathology, cohort_title, short_desc, long_desc) FROM stdin;
\.


--
-- Data for Name: rwg_samples; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_samples (study_id, expr_id, cohorts, import_date) FROM stdin;
\.


--
-- Data for Name: rwg_samples_ext; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.rwg_samples_ext (study_id, expr_id, cohorts) FROM stdin;
\.


--
-- Name: seq_etl_id; Type: SEQUENCE SET; Schema: tm_lz; Owner: tm_lz
--

SELECT pg_catalog.setval('tm_lz.seq_etl_id', 1, false);


--
-- Data for Name: wt_snp_node_values; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.wt_snp_node_values (category_cd, sample_type, timepoint, title) FROM stdin;
\.


--
-- Data for Name: wt_snp_nodes; Type: TABLE DATA; Schema: tm_lz; Owner: tm_lz
--

COPY tm_lz.wt_snp_nodes (leaf_node, category_cd, platform, sample_type, timepoint, node_type) FROM stdin;
\.


--
-- Data for Name: bio_assay_analysis_data_new; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.bio_assay_analysis_data_new (bio_asy_analysis_data_id, fold_change_ratio, raw_pvalue, adjusted_pvalue, r_value, rho_value, bio_assay_analysis_id, adjusted_p_value_code, feature_group_name, bio_experiment_id, bio_assay_platform_id, etl_id, preferred_pvalue, cut_value, results_value, numeric_value, numeric_value_code, tea_normalized_pvalue, bio_assay_feature_group_id, lsmean1, lsmean2) FROM stdin;
\.


--
-- Data for Name: tmp_assay_analysis_metrics; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.tmp_assay_analysis_metrics (bio_assay_analysis_id, data_ct, fc_mean, fc_stddev) FROM stdin;
\.


--
-- Data for Name: wrk_clinical_data; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wrk_clinical_data (study_id, site_id, subject_id, visit_name, data_label, data_value, category_cd, etl_job_id, etl_date, usubjid, category_path, data_type, data_label_ctrl_vocab_code, data_value_ctrl_vocab_code, data_label_components, units_cd, visit_date, node_name, link_type, link_value, end_date, visit_reference, date_ind, obs_string, rec_num, valuetype_cd, leaf_node, modifier_cd, ctrl_vocab_code, date_timestamp, sample_cd) FROM stdin;
\.


--
-- Data for Name: wrk_mrna_data; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wrk_mrna_data (probeset, expr_id, raw_intensity) FROM stdin;
\.


--
-- Data for Name: wt_clinical_data_dups; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_clinical_data_dups (site_id, subject_id, visit_name, data_label, category_cd, modifier_cd, link_value) FROM stdin;
\.


--
-- Data for Name: wt_clinical_encounter; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_clinical_encounter (link_type, link_value, encounter_num) FROM stdin;
\.


--
-- Data for Name: wt_del_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_del_nodes (c_fullname, c_basecode) FROM stdin;
\.


--
-- Data for Name: wt_folder_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_folder_nodes (folder_path, folder_name) FROM stdin;
\.


--
-- Data for Name: wt_metabolomic_node_values; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_metabolomic_node_values (category_cd, platform, tissue_type, attribute_1, attribute_2, title, transform_method) FROM stdin;
\.


--
-- Data for Name: wt_metabolomic_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_metabolomic_nodes (leaf_node, category_cd, platform, tissue_type, attribute_1, attribute_2, title, node_name, concept_cd, transform_method, node_type) FROM stdin;
\.


--
-- Data for Name: wt_mixed_types; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_mixed_types (category_cd, data_label, visit_name) FROM stdin;
\.


--
-- Data for Name: wt_mrna_data; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_mrna_data (probeset, expr_id, intensity_value) FROM stdin;
\.


--
-- Data for Name: wt_mrna_node_values; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_mrna_node_values (category_cd, platform, tissue_type, attribute_1, attribute_2, title, transform_method) FROM stdin;
\.


--
-- Data for Name: wt_mrna_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_mrna_nodes (leaf_node, category_cd, platform, tissue_type, attribute_1, attribute_2, title, node_name, concept_cd, transform_method, node_type, orig_category_cd) FROM stdin;
\.


--
-- Data for Name: wt_mrna_subj_sample_map; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_mrna_subj_sample_map (trial_name, site_id, subject_id, sample_cd, platform, tissue_type, attribute_1, attribute_2, category_cd) FROM stdin;
\.


--
-- Data for Name: wt_num_data_types; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_num_data_types (category_cd, data_label, sample_type, visit_name) FROM stdin;
\.


--
-- Data for Name: wt_proteomics_node_values; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_proteomics_node_values (category_cd, platform, tissue_type, attribute_1, attribute_2, title, transform_method) FROM stdin;
\.


--
-- Data for Name: wt_proteomics_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_proteomics_nodes (leaf_node, category_cd, platform, tissue_type, attribute_1, attribute_2, title, node_name, concept_cd, transform_method, node_type) FROM stdin;
\.


--
-- Data for Name: wt_qpcr_mirna_node_values; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_qpcr_mirna_node_values (category_cd, platform, tissue_type, attribute_1, attribute_2, title, transform_method) FROM stdin;
\.


--
-- Data for Name: wt_qpcr_mirna_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_qpcr_mirna_nodes (leaf_node, category_cd, platform, tissue_type, attribute_1, attribute_2, title, node_name, concept_cd, transform_method, node_type) FROM stdin;
\.


--
-- Data for Name: wt_rbm_node_values; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_rbm_node_values (category_cd, platform, tissue_type, attribute_1, attribute_2, title, transform_method) FROM stdin;
\.


--
-- Data for Name: wt_rbm_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_rbm_nodes (leaf_node, category_cd, platform, tissue_type, attribute_1, attribute_2, title, node_name, concept_cd, transform_method, node_type) FROM stdin;
\.


--
-- Data for Name: wt_rna_seq_node_values; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_rna_seq_node_values (category_cd, platform, tissue_type, attribute_1, attribute_2, title, transform_method) FROM stdin;
\.


--
-- Data for Name: wt_rna_seq_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_rna_seq_nodes (leaf_node, category_cd, platform, tissue_type, attribute_1, attribute_2, title, node_name, concept_cd, transform_method, node_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_acgh_region; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_acgh_region (region_id, expr_id, chip, segmented, flag, probhomloss, probloss, probnorm, probgain, probamp, num_calls, pvalue, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_info; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_info (usubjid, age_in_years_num, sex_cd, race_cd) FROM stdin;
\.


--
-- Data for Name: wt_subject_mbolomics_probeset; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_mbolomics_probeset (probeset, expr_id, intensity_value, num_calls, pvalue, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_metabolomics_calcs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_metabolomics_calcs (trial_name, probeset, mean_intensity, median_intensity, stddev_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_metabolomics_logs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_metabolomics_logs (probeset, intensity_value, pvalue, num_calls, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, log_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_metabolomics_med; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_metabolomics_med (probeset, intensity_value, log_intensity, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, pvalue, num_calls, mean_intensity, stddev_intensity, median_intensity, zscore) FROM stdin;
\.


--
-- Data for Name: wt_subject_microarray_calcs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_microarray_calcs (trial_name, probeset_id, mean_intensity, median_intensity, stddev_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_microarray_logs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_microarray_logs (probeset_id, intensity_value, pvalue, num_calls, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, log_intensity, raw_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_microarray_med; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_microarray_med (probeset_id, intensity_value, log_intensity, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, pvalue, num_calls, mean_intensity, stddev_intensity, median_intensity, zscore) FROM stdin;
\.


--
-- Data for Name: wt_subject_mirna_calcs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_mirna_calcs (trial_name, probeset_id, mean_intensity, median_intensity, stddev_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_mirna_logs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_mirna_logs (probeset_id, intensity_value, pvalue, num_calls, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, log_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_mirna_med; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_mirna_med (probeset_id, intensity_value, log_intensity, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, pvalue, num_calls, mean_intensity, stddev_intensity, median_intensity, zscore) FROM stdin;
\.


--
-- Data for Name: wt_subject_mirna_probeset; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_mirna_probeset (probeset_id, expr_id, intensity_value, num_calls, pvalue, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_mrna_data; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_mrna_data (probeset, expr_id, intensity_value, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_mrna_probeset; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_mrna_probeset (probeset_id, expr_id, intensity_value, num_calls, pvalue, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_proteomics_calcs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_proteomics_calcs (trial_name, probeset_id, mean_intensity, median_intensity, stddev_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_proteomics_logs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_proteomics_logs (probeset_id, intensity_value, pvalue, num_calls, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, log_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_proteomics_med; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_proteomics_med (probeset_id, intensity_value, log_intensity, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, pvalue, num_calls, mean_intensity, stddev_intensity, median_intensity, zscore) FROM stdin;
\.


--
-- Data for Name: wt_subject_proteomics_probeset; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_proteomics_probeset (probeset, expr_id, intensity_value, num_calls, pvalue, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_rbm_calcs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_rbm_calcs (trial_name, probeset_id, mean_intensity, median_intensity, stddev_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_rbm_logs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_rbm_logs (probeset_id, intensity_value, pvalue, num_calls, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, log_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_rbm_med; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_rbm_med (probeset_id, intensity_value, log_intensity, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, pvalue, num_calls, mean_intensity, stddev_intensity, median_intensity, zscore) FROM stdin;
\.


--
-- Data for Name: wt_subject_rbm_probeset; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_rbm_probeset (probeset, expr_id, intensity_value, num_calls, pvalue, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_rna_calcs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_rna_calcs (trial_name, probeset_id, mean_intensity, median_intensity, stddev_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_rna_logs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_rna_logs (probeset_id, intensity_value, pvalue, num_calls, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, log_intensity) FROM stdin;
\.


--
-- Data for Name: wt_subject_rna_med; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_rna_med (probeset_id, intensity_value, log_intensity, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, pvalue, num_calls, mean_intensity, stddev_intensity, median_intensity, zscore) FROM stdin;
\.


--
-- Data for Name: wt_subject_rna_probeset; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_rna_probeset (probeset_id, expr_id, intensity_value, num_calls, pvalue, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_rnaseq_calcs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_rnaseq_calcs (region_id, mean_readcount, median_readcount, stddev_readcount) FROM stdin;
\.


--
-- Data for Name: wt_subject_rnaseq_logs; Type: TABLE DATA; Schema: tm_wz; Owner: tm_cz
--

COPY tm_wz.wt_subject_rnaseq_logs (region_id, readcount, assay_id, patient_id, trial_name, log_readcount, raw_readcount) FROM stdin;
\.


--
-- Data for Name: wt_subject_rnaseq_region; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_rnaseq_region (region_id, expr_id, readcount, normalized_readcount, assay_id, patient_id, sample_id, subject_id, trial_name, timepoint, sample_type, platform, tissue_type) FROM stdin;
\.


--
-- Data for Name: wt_subject_sample_mapping; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_subject_sample_mapping (patient_num, site_id, subject_id, concept_code, sample_type, sample_type_cd, timepoint, timepoint_cd, tissue_type, tissue_type_cd, platform, platform_cd, data_uid, gpl_id, sample_cd, category_cd) FROM stdin;
\.


--
-- Data for Name: wt_trial_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_trial_nodes (leaf_node, category_cd, visit_name, sample_type, data_label, node_name, data_value, data_type, data_label_ctrl_vocab_code, data_value_ctrl_vocab_code, data_label_components, link_type, obs_string, valuetype_cd, rec_num) FROM stdin;
\.


--
-- Data for Name: wt_vocab_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_vocab_nodes (leaf_node, modifier_cd, label_node, value_instance, label_instance) FROM stdin;
\.


--
-- Data for Name: wt_xtrial_nodes; Type: TABLE DATA; Schema: tm_wz; Owner: tm_wz
--

COPY tm_wz.wt_xtrial_nodes (xtrial_cd, trial_name, leaf_name, data_type, concept_cd, leaf_node) FROM stdin;
\.


--
-- Data for Name: batch_job_execution; Type: TABLE DATA; Schema: ts_batch; Owner: ts_batch
--

COPY ts_batch.batch_job_execution (job_execution_id, version, job_instance_id, create_time, start_time, end_time, status, exit_code, exit_message, last_updated, job_configuration_location) FROM stdin;
\.


--
-- Data for Name: batch_job_execution_context; Type: TABLE DATA; Schema: ts_batch; Owner: ts_batch
--

COPY ts_batch.batch_job_execution_context (job_execution_id, short_context, serialized_context) FROM stdin;
\.


--
-- Data for Name: batch_job_execution_params; Type: TABLE DATA; Schema: ts_batch; Owner: ts_batch
--

COPY ts_batch.batch_job_execution_params (job_execution_id, type_cd, key_name, string_val, date_val, long_val, double_val, identifying) FROM stdin;
\.


--
-- Name: batch_job_execution_seq; Type: SEQUENCE SET; Schema: ts_batch; Owner: ts_batch
--

SELECT pg_catalog.setval('ts_batch.batch_job_execution_seq', 1, false);


--
-- Data for Name: batch_job_instance; Type: TABLE DATA; Schema: ts_batch; Owner: ts_batch
--

COPY ts_batch.batch_job_instance (job_instance_id, version, job_name, job_key) FROM stdin;
\.


--
-- Name: batch_job_seq; Type: SEQUENCE SET; Schema: ts_batch; Owner: ts_batch
--

SELECT pg_catalog.setval('ts_batch.batch_job_seq', 1, false);


--
-- Data for Name: batch_step_execution; Type: TABLE DATA; Schema: ts_batch; Owner: ts_batch
--

COPY ts_batch.batch_step_execution (step_execution_id, version, step_name, job_execution_id, start_time, end_time, status, commit_count, read_count, filter_count, write_count, read_skip_count, write_skip_count, process_skip_count, rollback_count, exit_code, exit_message, last_updated) FROM stdin;
\.


--
-- Data for Name: batch_step_execution_context; Type: TABLE DATA; Schema: ts_batch; Owner: ts_batch
--

COPY ts_batch.batch_step_execution_context (step_execution_id, short_context, serialized_context) FROM stdin;
\.


--
-- Name: batch_step_execution_seq; Type: SEQUENCE SET; Schema: ts_batch; Owner: ts_batch
--

SELECT pg_catalog.setval('ts_batch.batch_step_execution_seq', 1, false);



--
-- Name: am_data_uid am_data_uid_pk; Type: CONSTRAINT; Schema: amapp; Owner: amapp; Tablespace: indx
--

ALTER TABLE ONLY amapp.am_data_uid
    ADD CONSTRAINT am_data_uid_pk PRIMARY KEY (am_data_id);


--
-- Name: am_data_uid am_data_uid_uk; Type: CONSTRAINT; Schema: amapp; Owner: amapp; Tablespace: indx
--

ALTER TABLE ONLY amapp.am_data_uid
    ADD CONSTRAINT am_data_uid_uk UNIQUE (unique_id);


--
-- Name: am_tag_association am_tag_association_pkey; Type: CONSTRAINT; Schema: amapp; Owner: amapp; Tablespace: indx
--

ALTER TABLE ONLY amapp.am_tag_association
    ADD CONSTRAINT am_tag_association_pkey PRIMARY KEY (subject_uid, object_uid);


--
-- Name: am_tag_item am_tag_item_pkey; Type: CONSTRAINT; Schema: amapp; Owner: amapp; Tablespace: indx
--

ALTER TABLE ONLY amapp.am_tag_item
    ADD CONSTRAINT am_tag_item_pkey PRIMARY KEY (tag_template_id, tag_item_id);


--
-- Name: am_tag_template_association am_tag_template_association_pkey; Type: CONSTRAINT; Schema: amapp; Owner: amapp; Tablespace: indx
--

ALTER TABLE ONLY amapp.am_tag_template_association
    ADD CONSTRAINT am_tag_template_association_pkey PRIMARY KEY (tag_template_id, object_uid);


--
-- Name: am_tag_template am_tag_template_pkey; Type: CONSTRAINT; Schema: amapp; Owner: amapp; Tablespace: indx
--

ALTER TABLE ONLY amapp.am_tag_template
    ADD CONSTRAINT am_tag_template_pkey PRIMARY KEY (tag_template_id);


--
-- Name: am_tag_value am_tag_value_pk; Type: CONSTRAINT; Schema: amapp; Owner: amapp; Tablespace: indx
--

ALTER TABLE ONLY amapp.am_tag_value
    ADD CONSTRAINT am_tag_value_pk PRIMARY KEY (tag_value_id);


--
-- Name: annotation annotation_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.annotation
    ADD CONSTRAINT annotation_pk PRIMARY KEY (id);


--
-- Name: assay_analysis_data assay_analysis_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.assay_analysis_data
    ADD CONSTRAINT assay_analysis_data_pk PRIMARY KEY (bio_asy_analysis_data_id);


--
-- Name: bio_assay_analysis_data_tea bio_aa_data_t_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data_tea
    ADD CONSTRAINT bio_aa_data_t_pk PRIMARY KEY (bio_asy_analysis_data_id);


--
-- Name: bio_ad_hoc_property bio_ad_hoc_property_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_ad_hoc_property
    ADD CONSTRAINT bio_ad_hoc_property_pk PRIMARY KEY (ad_hoc_property_id);


--
-- Name: bio_analysis_cohort_xref bio_analysis_cohort_xref_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_analysis_cohort_xref
    ADD CONSTRAINT bio_analysis_cohort_xref_pk PRIMARY KEY (bio_assay_analysis_id);


--
-- Name: bio_assay_analysis_eqtl bio_assay_analysis_eqtl_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_analysis_eqtl
    ADD CONSTRAINT bio_assay_analysis_eqtl_pk PRIMARY KEY (bio_asy_analysis_eqtl_id);


--
-- Name: bio_asy_analysis_pltfm bio_assay_analysis_platform_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_asy_analysis_pltfm
    ADD CONSTRAINT bio_assay_analysis_platform_pk PRIMARY KEY (bio_asy_analysis_pltfm_id);


--
-- Name: bio_assay_platform bio_assay_platform_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_platform
    ADD CONSTRAINT bio_assay_platform_pk PRIMARY KEY (bio_assay_platform_id);


--
-- Name: bio_assay_sample bio_assay_sample_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_sample
    ADD CONSTRAINT bio_assay_sample_pk PRIMARY KEY (bio_assay_id, bio_sample_id, bio_clinic_trial_timepoint_id);


--
-- Name: bio_assay_analysis_gwas bio_asy_analysis_gwas_id; Type: CONSTRAINT; Schema: biomart; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_analysis_gwas
    ADD CONSTRAINT bio_asy_analysis_gwas_id PRIMARY KEY (bio_asy_analysis_gwas_id);


--
-- Name: bio_asy_data_stats_all bio_asy_dt_stats_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_asy_data_stats_all
    ADD CONSTRAINT bio_asy_dt_stats_pk PRIMARY KEY (bio_assay_data_stats_id);


--
-- Name: bio_assay_data_stats bio_asy_dt_stats_s_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_data_stats
    ADD CONSTRAINT bio_asy_dt_stats_s_pk PRIMARY KEY (bio_assay_data_stats_id);


--
-- Name: bio_assay_feature_group bio_asy_feature_grp_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_feature_group
    ADD CONSTRAINT bio_asy_feature_grp_pk PRIMARY KEY (bio_assay_feature_group_id);


--
-- Name: bio_cgdcp_data bio_cancer_gene_curation_fact_; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_cgdcp_data
    ADD CONSTRAINT bio_cancer_gene_curation_fact_ PRIMARY KEY (bio_data_id);


--
-- Name: bio_clinc_trial_attr bio_clinical_trial_patient_grp; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_clinc_trial_attr
    ADD CONSTRAINT bio_clinical_trial_patient_grp PRIMARY KEY (bio_clinc_trial_attr_id);


--
-- Name: bio_clinc_trial_pt_group bio_clinical_trial_pt_group; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_clinc_trial_pt_group
    ADD CONSTRAINT bio_clinical_trial_pt_group PRIMARY KEY (bio_clinical_trial_p_group_id);


--
-- Name: bio_clinc_trial_time_pt bio_clinical_trial_time_point_; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_clinc_trial_time_pt
    ADD CONSTRAINT bio_clinical_trial_time_point_ PRIMARY KEY (bio_clinc_trial_tm_pt_id);


--
-- Name: bio_concept_code bio_concept_code_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_concept_code
    ADD CONSTRAINT bio_concept_code_pk PRIMARY KEY (bio_concept_code_id);


--
-- Name: bio_concept_code bio_concept_code_uk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_concept_code
    ADD CONSTRAINT bio_concept_code_uk UNIQUE (bio_concept_code, code_type_name);


--
-- Name: bio_content_reference bio_content_ref_n_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_content_reference
    ADD CONSTRAINT bio_content_ref_n_pk PRIMARY KEY (bio_content_reference_id);


--
-- Name: bio_asy_analysis_dataset bio_data_analysis_dataset_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_asy_analysis_dataset
    ADD CONSTRAINT bio_data_analysis_dataset_pk PRIMARY KEY (bio_assay_dataset_id, bio_assay_analysis_id);


--
-- Name: bio_assay_analysis bio_data_anl_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_analysis
    ADD CONSTRAINT bio_data_anl_pk PRIMARY KEY (bio_assay_analysis_id);


--
-- Name: bio_data_attribute bio_data_attr_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_attribute
    ADD CONSTRAINT bio_data_attr_pk PRIMARY KEY (bio_data_attribute_id);


--
-- Name: bio_data_compound bio_data_compound_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_compound
    ADD CONSTRAINT bio_data_compound_pk PRIMARY KEY (bio_data_id, bio_compound_id);


--
-- Name: bio_data_correlation bio_data_correlation_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_correlation
    ADD CONSTRAINT bio_data_correlation_pk PRIMARY KEY (bio_data_correl_id);


--
-- Name: bio_data_disease bio_data_disease_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_disease
    ADD CONSTRAINT bio_data_disease_pk PRIMARY KEY (bio_data_id, bio_disease_id);


--
-- Name: bio_data_ext_code bio_data_ext_code_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_ext_code
    ADD CONSTRAINT bio_data_ext_code_pk PRIMARY KEY (bio_data_ext_code_id);


--
-- Name: bio_data_literature bio_data_literature_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_literature
    ADD CONSTRAINT bio_data_literature_pk PRIMARY KEY (bio_data_id);


--
-- Name: bio_data_uid bio_data_uid_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_uid
    ADD CONSTRAINT bio_data_uid_pk PRIMARY KEY (bio_data_id);


--
-- Name: bio_data_uid bio_data_uid_uk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_uid
    ADD CONSTRAINT bio_data_uid_uk UNIQUE (unique_id);


--
-- Name: bio_assay_dataset bio_dataset_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_dataset
    ADD CONSTRAINT bio_dataset_pk PRIMARY KEY (bio_assay_dataset_id);


--
-- Name: bio_assay_data bio_experiment_data_fact_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_data
    ADD CONSTRAINT bio_experiment_data_fact_pk PRIMARY KEY (bio_assay_data_id);


--
-- Name: bio_curation_dataset bio_external_analysis_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_curation_dataset
    ADD CONSTRAINT bio_external_analysis_pk PRIMARY KEY (bio_curation_dataset_id);


--
-- Name: bio_curated_data bio_externalanalysis_fact_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_curated_data
    ADD CONSTRAINT bio_externalanalysis_fact_pk PRIMARY KEY (bio_data_id);


--
-- Name: bio_lit_alt_data bio_lit_alt_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_alt_data
    ADD CONSTRAINT bio_lit_alt_data_pk PRIMARY KEY (bio_lit_alt_data_id);


--
-- Name: bio_lit_amd_data bio_lit_amd_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_amd_data
    ADD CONSTRAINT bio_lit_amd_data_pk PRIMARY KEY (bio_lit_amd_data_id);


--
-- Name: bio_lit_inh_data bio_lit_inh_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_inh_data
    ADD CONSTRAINT bio_lit_inh_data_pk PRIMARY KEY (bio_lit_inh_data_id);


--
-- Name: bio_lit_int_data bio_lit_int_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_int_data
    ADD CONSTRAINT bio_lit_int_data_pk PRIMARY KEY (bio_lit_int_data_id);


--
-- Name: bio_lit_model_data bio_lit_model_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_model_data
    ADD CONSTRAINT bio_lit_model_data_pk PRIMARY KEY (bio_lit_model_data_id);


--
-- Name: bio_lit_pe_data bio_lit_pe_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_pe_data
    ADD CONSTRAINT bio_lit_pe_data_pk PRIMARY KEY (bio_lit_pe_data_id);


--
-- Name: bio_lit_ref_data bio_lit_ref_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_ref_data
    ADD CONSTRAINT bio_lit_ref_data_pk PRIMARY KEY (bio_lit_ref_data_id);


--
-- Name: bio_lit_sum_data bio_lit_sum_data_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_lit_sum_data
    ADD CONSTRAINT bio_lit_sum_data_pk PRIMARY KEY (bio_lit_sum_data_id);


--
-- Name: bio_data_correl_descr bio_marker_relationship_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_data_correl_descr
    ADD CONSTRAINT bio_marker_relationship_pk PRIMARY KEY (bio_data_correl_descr_id);


--
-- Name: bio_patient_event_attr bio_patient_attribute_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_patient_event_attr
    ADD CONSTRAINT bio_patient_attribute_pk PRIMARY KEY (bio_patient_attribute_id);


--
-- Name: bio_patient_event bio_patient_event_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_patient_event
    ADD CONSTRAINT bio_patient_event_pk PRIMARY KEY (bio_patient_event_id);


--
-- Name: bio_patient bio_patient_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_patient
    ADD CONSTRAINT bio_patient_pk PRIMARY KEY (bio_patient_id);


--
-- Name: bio_stats_exp_marker bio_s_e_m_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_stats_exp_marker
    ADD CONSTRAINT bio_s_e_m_pk PRIMARY KEY (bio_marker_id, bio_experiment_id);


--
-- Name: bio_subject bio_subject_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_subject
    ADD CONSTRAINT bio_subject_pk PRIMARY KEY (bio_subject_id);


--
-- Name: bio_taxonomy bio_taxon_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_taxonomy
    ADD CONSTRAINT bio_taxon_pk PRIMARY KEY (bio_taxonomy_id);


--
-- Name: biobank_sample biobank_sample_pkey; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.biobank_sample
    ADD CONSTRAINT biobank_sample_pkey PRIMARY KEY (sample_tube_id);


--
-- Name: bio_marker biomarker_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_marker
    ADD CONSTRAINT biomarker_pk PRIMARY KEY (bio_marker_id);


--
-- Name: bio_marker biomarker_uk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_marker
    ADD CONSTRAINT biomarker_uk UNIQUE (organism, primary_external_id);


--
-- Name: bio_sample biosample_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_sample
    ADD CONSTRAINT biosample_pk PRIMARY KEY (bio_sample_id);


--
-- Name: bio_cell_line celllinedictionary_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_cell_line
    ADD CONSTRAINT celllinedictionary_pk PRIMARY KEY (bio_cell_line_id);


--
-- Name: bio_clinical_trial clinicaltrialdim_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_clinical_trial
    ADD CONSTRAINT clinicaltrialdim_pk PRIMARY KEY (bio_experiment_id);


--
-- Name: bio_compound compounddim_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_compound
    ADD CONSTRAINT compounddim_pk PRIMARY KEY (bio_compound_id);


--
-- Name: bio_disease diseasedim_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_disease
    ADD CONSTRAINT diseasedim_pk PRIMARY KEY (bio_disease_id);


--
-- Name: bio_experiment experimentdim_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_experiment
    ADD CONSTRAINT experimentdim_pk PRIMARY KEY (bio_experiment_id);


--
-- Name: bio_content external_file_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_content
    ADD CONSTRAINT external_file_pk PRIMARY KEY (bio_file_content_id);


--
-- Name: bio_content_repository external_file_repository_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_content_repository
    ADD CONSTRAINT external_file_repository_pk PRIMARY KEY (bio_content_repo_id);


--
-- Name: mesh_copy mesh_copy_pkey; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.mesh_copy
    ADD CONSTRAINT mesh_copy_pkey PRIMARY KEY (ui);


--
-- Name: mesh_path mesh_path_pkey; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.mesh_path
    ADD CONSTRAINT mesh_path_pkey PRIMARY KEY (unique_id);


--
-- Name: mesh mesh_pkey; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.mesh
    ADD CONSTRAINT mesh_pkey PRIMARY KEY (ui);


--
-- Name: mirna_bio_assay_feature_group mirna_bio_asy_feature_grp_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.mirna_bio_assay_feature_group
    ADD CONSTRAINT mirna_bio_asy_feature_grp_pk PRIMARY KEY (bio_assay_feature_group_id);


--
-- Name: mirna_bio_marker mirna_bm_org_pri_eid_key; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.mirna_bio_marker
    ADD CONSTRAINT mirna_bm_org_pri_eid_key UNIQUE (organism, primary_external_id);


--
-- Name: bio_observation observationdim_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_observation
    ADD CONSTRAINT observationdim_pk PRIMARY KEY (bio_observation_id);


--
-- Name: bio_analysis_attribute pk_baa_id; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_analysis_attribute
    ADD CONSTRAINT pk_baa_id PRIMARY KEY (bio_analysis_attribute_id);


--
-- Name: bio_analysis_attribute_lineage pk_baal_id; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_analysis_attribute_lineage
    ADD CONSTRAINT pk_baal_id PRIMARY KEY (bio_analysis_att_lineage_id);


--
-- Name: bio_assay_cohort pk_bio_assay_cohort; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay_cohort
    ADD CONSTRAINT pk_bio_assay_cohort PRIMARY KEY (bio_assay_cohort_id);


--
-- Name: project_info project_info_file_name_key; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.project_info
    ADD CONSTRAINT project_info_file_name_key UNIQUE (file_name);


--
-- Name: project_info project_info_id_key; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.project_info
    ADD CONSTRAINT project_info_id_key UNIQUE (id);


--
-- Name: project_info project_info_name_key; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.project_info
    ADD CONSTRAINT project_info_name_key UNIQUE (name);


--
-- Name: project_info project_info_pkey; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.project_info
    ADD CONSTRAINT project_info_pkey PRIMARY KEY (file_id);


--
-- Name: bio_assay rbmorderdim_pk; Type: CONSTRAINT; Schema: biomart; Owner: biomart; Tablespace: indx
--

ALTER TABLE ONLY biomart.bio_assay
    ADD CONSTRAINT rbmorderdim_pk PRIMARY KEY (bio_assay_id);


--
-- Name: de_variant_dataset dataset_id; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_variant_dataset
    ADD CONSTRAINT dataset_id PRIMARY KEY (dataset_id);


--
-- Name: de_chromosomal_region de_chromosomal_region_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_chromosomal_region
    ADD CONSTRAINT de_chromosomal_region_pkey PRIMARY KEY (region_id);


--
-- Name: de_gene_source de_gene_source_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_gene_source
    ADD CONSTRAINT de_gene_source_pkey PRIMARY KEY (gene_source_id);


--
-- Name: de_gpl_info de_gpl_info_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_gpl_info
    ADD CONSTRAINT de_gpl_info_pkey PRIMARY KEY (platform);


--
-- Name: de_metabolite_annotation de_metabolite_annotation_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_metabolite_annotation
    ADD CONSTRAINT de_metabolite_annotation_pk PRIMARY KEY (id);


--
-- Name: de_metabolite_sub_pathways de_metabolite_sub_pathway_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_metabolite_sub_pathways
    ADD CONSTRAINT de_metabolite_sub_pathway_pk PRIMARY KEY (id);


--
-- Name: de_metabolite_super_pathways de_metabolite_super_pathway_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_metabolite_super_pathways
    ADD CONSTRAINT de_metabolite_super_pathway_pk PRIMARY KEY (id);


--
-- Name: de_mrna_annotation de_mrna_annotation_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_mrna_annotation
    ADD CONSTRAINT de_mrna_annotation_pkey PRIMARY KEY (de_mrna_annotation_id);


--
-- Name: de_pathway_gene de_pathway_gene_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_pathway_gene
    ADD CONSTRAINT de_pathway_gene_pkey PRIMARY KEY (id);


--
-- Name: de_pathway de_pathway_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_pathway
    ADD CONSTRAINT de_pathway_pkey PRIMARY KEY (id);


--
-- Name: de_protein_annotation de_protein_annotation_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_protein_annotation
    ADD CONSTRAINT de_protein_annotation_pkey PRIMARY KEY (id);


--
-- Name: de_qpcr_mirna_annotation de_qpcr_mirna_annotation_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_qpcr_mirna_annotation
    ADD CONSTRAINT de_qpcr_mirna_annotation_pkey PRIMARY KEY (probeset_id);


--
-- Name: de_rbm_annotation de_rbm_annotation_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_rbm_annotation
    ADD CONSTRAINT de_rbm_annotation_pkey PRIMARY KEY (id);


--
-- Name: de_snp_data_dataset_loc de_snp_data_dataset_loc_pkey; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_data_dataset_loc
    ADD CONSTRAINT de_snp_data_dataset_loc_pkey PRIMARY KEY (snp_data_dataset_loc_id);


--
-- Name: de_snp_info de_snp_info_id_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_info
    ADD CONSTRAINT de_snp_info_id_pk PRIMARY KEY (snp_info_id);


--
-- Name: de_subject_acgh_data de_subject_acgh_data_pkey; Type: CONSTRAINT; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_subject_acgh_data
    ADD CONSTRAINT de_subject_acgh_data_pkey PRIMARY KEY (assay_id, region_id);


--
-- Name: de_subject_mirna_data de_subject_mirna_data_pkey; Type: CONSTRAINT; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_subject_mirna_data
    ADD CONSTRAINT de_subject_mirna_data_pkey PRIMARY KEY (assay_id, probeset_id);


--
-- Name: de_subject_rnaseq_data de_subject_rnaseq_data_pkey; Type: CONSTRAINT; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_subject_rnaseq_data
    ADD CONSTRAINT de_subject_rnaseq_data_pkey PRIMARY KEY (assay_id, region_id);


--
-- Name: de_two_region_junction de_two_region_junction_id_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_two_region_junction
    ADD CONSTRAINT de_two_region_junction_id_pk PRIMARY KEY (two_region_junction_id);


--
-- Name: de_variant_metadata de_variant_metadata_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_variant_metadata
    ADD CONSTRAINT de_variant_metadata_pk PRIMARY KEY (de_variant_metadata_id);


--
-- Name: de_variant_population_data de_variant_population_data_id_idx; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_variant_population_data
    ADD CONSTRAINT de_variant_population_data_id_idx PRIMARY KEY (variant_population_data_id);


--
-- Name: de_variant_population_info de_variant_population_info_id_idx; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_variant_population_info
    ADD CONSTRAINT de_variant_population_info_id_idx PRIMARY KEY (variant_population_info_id);


--
-- Name: de_xtrial_parent_names dextpn_parent_node_u; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_xtrial_parent_names
    ADD CONSTRAINT dextpn_parent_node_u UNIQUE (across_path);


--
-- Name: de_rbm_data_annotation_join pk_de_rbm_data_annotation_join; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_rbm_data_annotation_join
    ADD CONSTRAINT pk_de_rbm_data_annotation_join PRIMARY KEY (data_id, annotation_id);


--
-- Name: de_subject_rbm_data pk_de_subject_rbm_data; Type: CONSTRAINT; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_subject_rbm_data
    ADD CONSTRAINT pk_de_subject_rbm_data PRIMARY KEY (id);


--
-- Name: de_snp_probe_sorted_def sys_c0020600; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_probe_sorted_def
    ADD CONSTRAINT sys_c0020600 PRIMARY KEY (snp_probe_sorted_def_id);


--
-- Name: de_snp_data_by_probe sys_c0020601; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_data_by_probe
    ADD CONSTRAINT sys_c0020601 PRIMARY KEY (snp_data_by_probe_id);


--
-- Name: de_snp_data_by_patient sys_c0020602; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_data_by_patient
    ADD CONSTRAINT sys_c0020602 PRIMARY KEY (snp_data_by_patient_id);


--
-- Name: de_xtrial_parent_names sys_c0020604; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_xtrial_parent_names
    ADD CONSTRAINT sys_c0020604 PRIMARY KEY (parent_cd);


--
-- Name: de_xtrial_child_map sys_c0020605; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_xtrial_child_map
    ADD CONSTRAINT sys_c0020605 PRIMARY KEY (concept_cd);


--
-- Name: de_subject_snp_dataset sys_c0020606; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_subject_snp_dataset
    ADD CONSTRAINT sys_c0020606 PRIMARY KEY (subject_snp_dataset_id);


--
-- Name: de_snp_subject_sorted_def sys_c0020607; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_subject_sorted_def
    ADD CONSTRAINT sys_c0020607 PRIMARY KEY (snp_subject_sorted_def_id);


--
-- Name: de_snp_probe sys_c0020609; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_probe
    ADD CONSTRAINT sys_c0020609 PRIMARY KEY (snp_probe_id);


--
-- Name: de_two_region_event_gene two_region_event_gene_id_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_two_region_event_gene
    ADD CONSTRAINT two_region_event_gene_id_pk PRIMARY KEY (two_region_event_gene_id);


--
-- Name: de_two_region_event two_region_event_id_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_two_region_event
    ADD CONSTRAINT two_region_event_id_pk PRIMARY KEY (two_region_event_id);


--
-- Name: de_two_region_junction_event two_region_junction_event_id_pk; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_two_region_junction_event
    ADD CONSTRAINT two_region_junction_event_id_pk PRIMARY KEY (two_region_junction_event_id);


--
-- Name: de_gene_source u_gene_source_name; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_gene_source
    ADD CONSTRAINT u_gene_source_name UNIQUE (gene_source_name);


--
-- Name: de_snp_info u_snp_info_name; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_info
    ADD CONSTRAINT u_snp_info_name UNIQUE (name);


--
-- Name: de_snp_probe u_snp_probe_name; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_snp_probe
    ADD CONSTRAINT u_snp_probe_name UNIQUE (probe_name);


--
-- Name: de_variant_subject_detail variant_subject_detail_id; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_variant_subject_detail
    ADD CONSTRAINT variant_subject_detail_id PRIMARY KEY (variant_subject_detail_id);


--
-- Name: de_variant_subject_summary variant_subject_summary_id; Type: CONSTRAINT; Schema: deapp; Owner: deapp; Tablespace: indx
--

ALTER TABLE ONLY deapp.de_variant_subject_summary
    ADD CONSTRAINT variant_subject_summary_id PRIMARY KEY (variant_subject_summary_id);


--
-- Name: fm_data_uid fm_data_uid_pk_1; Type: CONSTRAINT; Schema: fmapp; Owner: fmapp; Tablespace: indx
--

ALTER TABLE ONLY fmapp.fm_data_uid
    ADD CONSTRAINT fm_data_uid_pk_1 PRIMARY KEY (fm_data_id);


--
-- Name: fm_data_uid fm_data_uid_uk_1; Type: CONSTRAINT; Schema: fmapp; Owner: fmapp; Tablespace: indx
--

ALTER TABLE ONLY fmapp.fm_data_uid
    ADD CONSTRAINT fm_data_uid_uk_1 UNIQUE (unique_id);


--
-- Name: fm_file fm_file_pkey; Type: CONSTRAINT; Schema: fmapp; Owner: fmapp; Tablespace: indx
--

ALTER TABLE ONLY fmapp.fm_file
    ADD CONSTRAINT fm_file_pkey PRIMARY KEY (file_id);


--
-- Name: fm_folder fm_folder_pkey; Type: CONSTRAINT; Schema: fmapp; Owner: fmapp; Tablespace: indx
--

ALTER TABLE ONLY fmapp.fm_folder
    ADD CONSTRAINT fm_folder_pkey PRIMARY KEY (folder_id);


--
-- Name: fm_folder_association pk_folder_assoc; Type: CONSTRAINT; Schema: fmapp; Owner: fmapp; Tablespace: indx
--

ALTER TABLE ONLY fmapp.fm_folder_association
    ADD CONSTRAINT pk_folder_assoc PRIMARY KEY (folder_id, object_uid);


--
-- Name: fm_folder_file_association pk_folder_file_assoc; Type: CONSTRAINT; Schema: fmapp; Owner: fmapp; Tablespace: indx
--

ALTER TABLE ONLY fmapp.fm_folder_file_association
    ADD CONSTRAINT pk_folder_file_assoc PRIMARY KEY (folder_id, file_id);


--
-- Name: status_of_export_job status_of_export_job_pk; Type: CONSTRAINT; Schema: galaxy; Owner: galaxy; Tablespace: indx
--

ALTER TABLE ONLY galaxy.status_of_export_job
    ADD CONSTRAINT status_of_export_job_pk PRIMARY KEY (id);


--
-- Name: users_details_for_export_gal users_details_for_export_g_pk; Type: CONSTRAINT; Schema: galaxy; Owner: galaxy; Tablespace: indx
--

ALTER TABLE ONLY galaxy.users_details_for_export_gal
    ADD CONSTRAINT users_details_for_export_g_pk PRIMARY KEY (id);


--
-- Name: qt_analysis_plugin analysis_plugin_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_analysis_plugin
    ADD CONSTRAINT analysis_plugin_pk PRIMARY KEY (plugin_id);


--
-- Name: qt_analysis_plugin_result_type analysis_plugin_result_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_analysis_plugin_result_type
    ADD CONSTRAINT analysis_plugin_result_pk PRIMARY KEY (plugin_id, result_type_id);


--
-- Name: async_job async_job_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.async_job
    ADD CONSTRAINT async_job_pkey PRIMARY KEY (id);


--
-- Name: code_lookup code_lookup_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.code_lookup
    ADD CONSTRAINT code_lookup_pk PRIMARY KEY (table_cd, column_cd, code_cd);


--
-- Name: concept_dimension concept_dimension_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.concept_dimension
    ADD CONSTRAINT concept_dimension_pk PRIMARY KEY (concept_path);


--
-- Name: encounter_mapping encounter_mapping_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.encounter_mapping
    ADD CONSTRAINT encounter_mapping_pk PRIMARY KEY (encounter_ide, encounter_ide_source);


--
-- Name: jms_messages jms_messages_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.jms_messages
    ADD CONSTRAINT jms_messages_pkey PRIMARY KEY (messageid, destination);


--
-- Name: jms_roles jms_roles_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.jms_roles
    ADD CONSTRAINT jms_roles_pkey PRIMARY KEY (userid, roleid);


--
-- Name: jms_subscriptions jms_subscriptions_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.jms_subscriptions
    ADD CONSTRAINT jms_subscriptions_pkey PRIMARY KEY (clientid, subname);


--
-- Name: jms_users jms_users_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.jms_users
    ADD CONSTRAINT jms_users_pkey PRIMARY KEY (userid);


--
-- Name: modifier_dimension modifier_dimension_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.modifier_dimension
    ADD CONSTRAINT modifier_dimension_pk PRIMARY KEY (modifier_path);


--
-- Name: observation_fact observation_fact_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.observation_fact
    ADD CONSTRAINT observation_fact_pkey PRIMARY KEY (patient_num, concept_cd, provider_id, modifier_cd);


--
-- Name: patient_dimension patient_dimension_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.patient_dimension
    ADD CONSTRAINT patient_dimension_pk PRIMARY KEY (patient_num);


--
-- Name: patient_mapping patient_mapping_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.patient_mapping
    ADD CONSTRAINT patient_mapping_pk PRIMARY KEY (patient_ide, patient_ide_source);


--
-- Name: source_master pk_sourcemaster_sourcecd; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.source_master
    ADD CONSTRAINT pk_sourcemaster_sourcecd PRIMARY KEY (source_cd);


--
-- Name: set_type pk_st_id; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.set_type
    ADD CONSTRAINT pk_st_id PRIMARY KEY (id);


--
-- Name: set_upload_status pk_up_upstatus_idsettypeid; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.set_upload_status
    ADD CONSTRAINT pk_up_upstatus_idsettypeid PRIMARY KEY (upload_id, set_type_id);


--
-- Name: upload_status pk_up_upstatus_uploadid; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.upload_status
    ADD CONSTRAINT pk_up_upstatus_uploadid PRIMARY KEY (upload_id);


--
-- Name: provider_dimension provider_dimension_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.provider_dimension
    ADD CONSTRAINT provider_dimension_pk PRIMARY KEY (provider_path, provider_id);


--
-- Name: qt_patient_enc_collection qt_patient_enc_coll_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_patient_enc_collection
    ADD CONSTRAINT qt_patient_enc_coll_pk PRIMARY KEY (patient_enc_coll_id);


--
-- Name: qt_patient_set_collection qt_patient_set_collection_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_patient_set_collection
    ADD CONSTRAINT qt_patient_set_collection_pkey PRIMARY KEY (patient_set_coll_id);


--
-- Name: qt_pdo_query_master qt_pdo_query_master_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_pdo_query_master
    ADD CONSTRAINT qt_pdo_query_master_pkey PRIMARY KEY (query_master_id);


--
-- Name: qt_query_instance qt_query_instance_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_query_instance
    ADD CONSTRAINT qt_query_instance_pkey PRIMARY KEY (query_instance_id);


--
-- Name: qt_query_master qt_query_master_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_query_master
    ADD CONSTRAINT qt_query_master_pkey PRIMARY KEY (query_master_id);


--
-- Name: qt_query_result_instance qt_query_result_instance_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_query_result_instance
    ADD CONSTRAINT qt_query_result_instance_pkey PRIMARY KEY (result_instance_id);


--
-- Name: qt_query_result_type qt_query_result_type_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_query_result_type
    ADD CONSTRAINT qt_query_result_type_pkey PRIMARY KEY (result_type_id);


--
-- Name: qt_query_status_type qt_query_status_type_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_query_status_type
    ADD CONSTRAINT qt_query_status_type_pkey PRIMARY KEY (status_type_id);


--
-- Name: qt_xml_result qt_xml_result_pkey; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.qt_xml_result
    ADD CONSTRAINT qt_xml_result_pkey PRIMARY KEY (xml_result_id);


--
-- Name: sample_dimension sample_dimension_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.sample_dimension
    ADD CONSTRAINT sample_dimension_pk PRIMARY KEY (sample_cd);


--
-- Name: timers timers_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.timers
    ADD CONSTRAINT timers_pk PRIMARY KEY (timerid, targetid);


--
-- Name: visit_dimension visit_dimension_pk; Type: CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

ALTER TABLE ONLY i2b2demodata.visit_dimension
    ADD CONSTRAINT visit_dimension_pk PRIMARY KEY (encounter_num, patient_num);


--
-- Name: i2b2_tags i2b2_tags_path_tag_type_key; Type: CONSTRAINT; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

ALTER TABLE ONLY i2b2metadata.i2b2_tags
    ADD CONSTRAINT i2b2_tags_path_tag_type_key UNIQUE (path, tag_type);


--
-- Name: ont_process_status ont_process_status_pkey; Type: CONSTRAINT; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

ALTER TABLE ONLY i2b2metadata.ont_process_status
    ADD CONSTRAINT ont_process_status_pkey PRIMARY KEY (process_id);


--
-- Name: schemes schemes_pk; Type: CONSTRAINT; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

ALTER TABLE ONLY i2b2metadata.schemes
    ADD CONSTRAINT schemes_pk PRIMARY KEY (c_key);


--
-- Name: table_access table_access_pk; Type: CONSTRAINT; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

ALTER TABLE ONLY i2b2metadata.table_access
    ADD CONSTRAINT table_access_pk PRIMARY KEY (c_table_cd);


--
-- Name: search_auth_group pk_auth_usr_group; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_auth_group
    ADD CONSTRAINT pk_auth_usr_group PRIMARY KEY (id);


--
-- Name: search_auth_principal pk_search_principal; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_auth_principal
    ADD CONSTRAINT pk_search_principal PRIMARY KEY (id);


--
-- Name: plugin_module plugin_module_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.plugin_module
    ADD CONSTRAINT plugin_module_pk PRIMARY KEY (module_seq);


--
-- Name: plugin plugin_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.plugin
    ADD CONSTRAINT plugin_pk PRIMARY KEY (plugin_seq);


--
-- Name: search_user_feedback rdt_search_user_fdbk_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_user_feedback
    ADD CONSTRAINT rdt_search_user_fdbk_pk PRIMARY KEY (search_user_feedback_id);


--
-- Name: search_auth_user sau_fed_id_key; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_auth_user
    ADD CONSTRAINT sau_fed_id_key UNIQUE (federated_id);


--
-- Name: saved_faceted_search saved_faceted_search_pkey; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.saved_faceted_search
    ADD CONSTRAINT saved_faceted_search_pkey PRIMARY KEY (saved_faceted_search_id);


--
-- Name: search_auth_sec_object_access sch_sec_a_a_s_a_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_auth_sec_object_access
    ADD CONSTRAINT sch_sec_a_a_s_a_pk PRIMARY KEY (auth_sec_obj_access_id);


--
-- Name: search_custom_filter_item search_cust_fil_item_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_custom_filter_item
    ADD CONSTRAINT search_cust_fil_item_pk PRIMARY KEY (search_custom_filter_item_id);


--
-- Name: search_custom_filter search_custom_filter_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_custom_filter
    ADD CONSTRAINT search_custom_filter_pk PRIMARY KEY (search_custom_filter_id);


--
-- Name: search_form_layout search_form_layout_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_form_layout
    ADD CONSTRAINT search_form_layout_pk PRIMARY KEY (form_layout_id);


--
-- Name: search_gene_signature search_gene_sig_descr_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_gene_signature
    ADD CONSTRAINT search_gene_sig_descr_pk PRIMARY KEY (search_gene_signature_id);


--
-- Name: search_gene_sig_file_schema search_gene_sig_file_sche_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_gene_sig_file_schema
    ADD CONSTRAINT search_gene_sig_file_sche_pk PRIMARY KEY (search_gene_sig_file_schema_id);


--
-- Name: search_gene_signature_item search_gene_signature_ite_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_gene_signature_item
    ADD CONSTRAINT search_gene_signature_ite_pk PRIMARY KEY (id);


--
-- Name: search_keyword search_keyword_uk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_keyword
    ADD CONSTRAINT search_keyword_uk UNIQUE (unique_id, data_category);


--
-- Name: search_keyword search_kw_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_keyword
    ADD CONSTRAINT search_kw_pk PRIMARY KEY (search_keyword_id);


--
-- Name: search_keyword_term search_kw_term_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_keyword_term
    ADD CONSTRAINT search_kw_term_pk PRIMARY KEY (search_keyword_term_id);


--
-- Name: search_required_upload_field search_reqd_up_field_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_required_upload_field
    ADD CONSTRAINT search_reqd_up_field_pk PRIMARY KEY (required_upload_field_id);


--
-- Name: search_auth_user_sec_access search_sec_a_u_s_a_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_auth_user_sec_access
    ADD CONSTRAINT search_sec_a_u_s_a_pk PRIMARY KEY (search_auth_user_sec_access_id);


--
-- Name: search_sec_access_level search_sec_ac_level_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_sec_access_level
    ADD CONSTRAINT search_sec_ac_level_pk PRIMARY KEY (search_sec_access_level_id);


--
-- Name: search_secure_object_path search_sec_obj__path_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_secure_object_path
    ADD CONSTRAINT search_sec_obj__path_pk PRIMARY KEY (search_secure_obj_path_id);


--
-- Name: search_secure_object search_sec_obj_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_secure_object
    ADD CONSTRAINT search_sec_obj_pk PRIMARY KEY (search_secure_object_id);


--
-- Name: search_taxonomy search_taxonomy_pk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_taxonomy
    ADD CONSTRAINT search_taxonomy_pk PRIMARY KEY (term_id);


--
-- Name: search_taxonomy_rels search_taxonomy_rels_pkey; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_taxonomy_rels
    ADD CONSTRAINT search_taxonomy_rels_pkey PRIMARY KEY (search_taxonomy_rels_id);


--
-- Name: search_user_settings search_user_settings_pkey; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_user_settings
    ADD CONSTRAINT search_user_settings_pkey PRIMARY KEY (id);


--
-- Name: search_user_settings search_user_settings_uk; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_user_settings
    ADD CONSTRAINT search_user_settings_uk UNIQUE (user_id, setting_name, setting_value);


--
-- Name: search_auth_user sys_c0011119; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_auth_user
    ADD CONSTRAINT sys_c0011119 PRIMARY KEY (id);


--
-- Name: search_role sys_c0011120; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_role
    ADD CONSTRAINT sys_c0011120 PRIMARY KEY (id);


--
-- Name: search_taxonomy_rels u_child_id_parent_id; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.search_taxonomy_rels
    ADD CONSTRAINT u_child_id_parent_id UNIQUE (child_id, parent_id);


--
-- Name: saved_faceted_search u_saved_search__user_id_name; Type: CONSTRAINT; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

ALTER TABLE ONLY searchapp.saved_faceted_search
    ADD CONSTRAINT u_saved_search__user_id_name UNIQUE (user_id, name);


--
-- Name: az_test_run az_test_run_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.az_test_run
    ADD CONSTRAINT az_test_run_pk PRIMARY KEY (test_run_id);


--
-- Name: az_test_step_act_result az_test_step_act_result_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.az_test_step_act_result
    ADD CONSTRAINT az_test_step_act_result_pk PRIMARY KEY (test_step_act_result_id);


--
-- Name: az_test_step_run az_test_step_run_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.az_test_step_run
    ADD CONSTRAINT az_test_step_run_pk PRIMARY KEY (test_step_run_id);


--
-- Name: cz_data_file cz_data_file_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_data_file
    ADD CONSTRAINT cz_data_file_pk PRIMARY KEY (data_file_id);


--
-- Name: cz_data cz_data_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_data
    ADD CONSTRAINT cz_data_pk PRIMARY KEY (data_id);


--
-- Name: cz_dw_version cz_dw_version_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_dw_version
    ADD CONSTRAINT cz_dw_version_pk PRIMARY KEY (dw_version_id);


--
-- Name: cz_job_audit cz_job_audit_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_job_audit
    ADD CONSTRAINT cz_job_audit_pk PRIMARY KEY (seq_id);


--
-- Name: cz_job_master cz_job_master_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_job_master
    ADD CONSTRAINT cz_job_master_pk PRIMARY KEY (job_id);


--
-- Name: cz_person cz_person_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_person
    ADD CONSTRAINT cz_person_pk PRIMARY KEY (person_id);


--
-- Name: cz_test_category cz_test_category_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_test_category
    ADD CONSTRAINT cz_test_category_pk PRIMARY KEY (test_category_id);


--
-- Name: cz_test cz_test_pk; Type: CONSTRAINT; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

ALTER TABLE ONLY tm_cz.cz_test
    ADD CONSTRAINT cz_test_pk PRIMARY KEY (test_id);


--
-- Name: lt_chromosomal_region lt_chromosomal_region_pkey; Type: CONSTRAINT; Schema: tm_lz; Owner: tm_lz; Tablespace: indx
--

ALTER TABLE ONLY tm_lz.lt_chromosomal_region
    ADD CONSTRAINT lt_chromosomal_region_pkey PRIMARY KEY (region_id);


--
-- Name: tmp_assay_analysis_metrics tmp_assay_analysis_metrics_pk; Type: CONSTRAINT; Schema: tm_wz; Owner: tm_wz; Tablespace: indx
--

ALTER TABLE ONLY tm_wz.tmp_assay_analysis_metrics
    ADD CONSTRAINT tmp_assay_analysis_metrics_pk PRIMARY KEY (bio_assay_analysis_id);


--
-- Name: batch_job_execution_context batch_job_execution_context_pkey; Type: CONSTRAINT; Schema: ts_batch; Owner: ts_batch; Tablespace: indx
--

ALTER TABLE ONLY ts_batch.batch_job_execution_context
    ADD CONSTRAINT batch_job_execution_context_pkey PRIMARY KEY (job_execution_id);


--
-- Name: batch_job_execution batch_job_execution_pkey; Type: CONSTRAINT; Schema: ts_batch; Owner: ts_batch; Tablespace: indx
--

ALTER TABLE ONLY ts_batch.batch_job_execution
    ADD CONSTRAINT batch_job_execution_pkey PRIMARY KEY (job_execution_id);


--
-- Name: batch_job_instance batch_job_instance_pkey; Type: CONSTRAINT; Schema: ts_batch; Owner: ts_batch; Tablespace: indx
--

ALTER TABLE ONLY ts_batch.batch_job_instance
    ADD CONSTRAINT batch_job_instance_pkey PRIMARY KEY (job_instance_id);


--
-- Name: batch_step_execution_context batch_step_execution_context_pkey; Type: CONSTRAINT; Schema: ts_batch; Owner: ts_batch; Tablespace: indx
--

ALTER TABLE ONLY ts_batch.batch_step_execution_context
    ADD CONSTRAINT batch_step_execution_context_pkey PRIMARY KEY (step_execution_id);


--
-- Name: batch_step_execution batch_step_execution_pkey; Type: CONSTRAINT; Schema: ts_batch; Owner: ts_batch; Tablespace: indx
--

ALTER TABLE ONLY ts_batch.batch_step_execution
    ADD CONSTRAINT batch_step_execution_pkey PRIMARY KEY (step_execution_id);


--
-- Name: batch_job_instance job_inst_un; Type: CONSTRAINT; Schema: ts_batch; Owner: ts_batch; Tablespace: indx
--

ALTER TABLE ONLY ts_batch.batch_job_instance
    ADD CONSTRAINT job_inst_un UNIQUE (job_name, job_key);


--
-- Name: baad_fgn_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_fgn_idx ON biomart.bio_assay_analysis_data USING btree (feature_group_name);


--
-- Name: baad_idx1; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx1 ON biomart.bio_assay_analysis_data USING btree (bio_assay_feature_group_id, bio_experiment_id);


--
-- Name: baad_idx11; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx11 ON biomart.bio_assay_analysis_data USING btree (bio_experiment_id, bio_assay_analysis_id, bio_asy_analysis_data_id);


--
-- Name: baad_idx12; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx12 ON biomart.bio_assay_analysis_data USING btree (bio_experiment_id, bio_assay_analysis_id, bio_assay_feature_group_id);


--
-- Name: baad_idx14; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx14 ON biomart.bio_assay_analysis_data USING btree (bio_assay_feature_group_id, bio_asy_analysis_data_id);


--
-- Name: baad_idx4; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx4 ON biomart.bio_assay_analysis_data USING btree (bio_assay_platform_id);


--
-- Name: baad_idx6; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx6 ON biomart.bio_assay_analysis_data USING btree (bio_experiment_id, bio_assay_analysis_id);


--
-- Name: baad_idx7; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx7 ON biomart.bio_assay_analysis_data USING btree (bio_assay_analysis_id, bio_asy_analysis_data_id);


--
-- Name: baad_idx_tea_analysis; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx_tea_analysis ON biomart.bio_assay_analysis_data_tea USING btree (bio_assay_analysis_id, bio_asy_analysis_data_id);


--
-- Name: baad_idx_tea_exp_analysis; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx_tea_exp_analysis ON biomart.bio_assay_analysis_data_tea USING btree (bio_experiment_id, bio_assay_analysis_id);


--
-- Name: baad_idx_tea_exp_analysis1; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx_tea_exp_analysis1 ON biomart.bio_assay_analysis_data_tea USING btree (bio_experiment_id, bio_assay_analysis_id, bio_asy_analysis_data_id);


--
-- Name: baad_idx_tea_fg_experiment; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx_tea_fg_experiment ON biomart.bio_assay_analysis_data_tea USING btree (bio_assay_feature_group_id, bio_experiment_id);


--
-- Name: baad_idx_tea_probe_id; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx_tea_probe_id ON biomart.bio_assay_analysis_data_tea USING btree (bio_assay_feature_group_id, bio_asy_analysis_data_id);


--
-- Name: baad_idx_tea_probe_name; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx_tea_probe_name ON biomart.bio_assay_analysis_data_tea USING btree (feature_group_name, bio_asy_analysis_data_id);


--
-- Name: baad_idx_tea_rank; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX baad_idx_tea_rank ON biomart.bio_assay_analysis_data_tea USING btree (bio_assay_analysis_id, tea_rank);


--
-- Name: bacx_idx1; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bacx_idx1 ON biomart.bio_analysis_cohort_xref USING btree (bio_assay_analysis_id);


--
-- Name: bad_idx13; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bad_idx13 ON biomart.bio_assay_analysis_data USING btree (bio_assay_analysis_id, bio_assay_feature_group_id);


--
-- Name: bdc_index1; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bdc_index1 ON biomart.bio_data_correlation USING btree (asso_bio_data_id);


--
-- Name: bio_a__d_s_ds_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a__d_s_ds_idx ON biomart.bio_asy_data_stats_all USING btree (bio_assay_dataset_id);


--
-- Name: bio_a__d_s_exp_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a__d_s_exp_idx ON biomart.bio_asy_data_stats_all USING btree (bio_experiment_id);


--
-- Name: bio_a__d_s_f_g_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a__d_s_f_g_idx ON biomart.bio_asy_data_stats_all USING btree (feature_group_name);


--
-- Name: bio_a_d_s_ds__s_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a_d_s_ds__s_idx ON biomart.bio_assay_data_stats USING btree (bio_assay_dataset_id);


--
-- Name: bio_a_d_s_exp__s_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a_d_s_exp__s_idx ON biomart.bio_assay_data_stats USING btree (bio_experiment_id);


--
-- Name: bio_a_d_s_f_g_s_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a_d_s_f_g_s_idx ON biomart.bio_assay_data_stats USING btree (feature_group_name, bio_assay_data_stats_id);


--
-- Name: bio_a_d_s_fgi_s_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a_d_s_fgi_s_idx ON biomart.bio_assay_data_stats USING btree (bio_assay_feature_group_id, bio_assay_data_stats_id);


--
-- Name: bio_a_o_an_idx2; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a_o_an_idx2 ON biomart.bio_assay_data_annotation USING btree (bio_assay_feature_group_id, bio_marker_id);


--
-- Name: bio_a_o_fg_id_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_a_o_fg_id_idx ON biomart.bio_assay_data_annotation USING btree (bio_assay_feature_group_id);


--
-- Name: bio_assay_analysis_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_assay_analysis_pk ON biomart.bio_assay_analysis USING btree (bio_assay_analysis_id);


--
-- Name: bio_assay_data_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_assay_data_pk ON biomart.bio_assay_data USING btree (bio_assay_data_id);


--
-- Name: bio_assay_dataset_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_assay_dataset_pk ON biomart.bio_assay_dataset USING btree (bio_assay_dataset_id);


--
-- Name: bio_assay_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_assay_pk ON biomart.bio_assay USING btree (bio_assay_id);


--
-- Name: bio_asy_analysis_dataset_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_asy_analysis_dataset_pk ON biomart.bio_asy_analysis_dataset USING btree (bio_assay_dataset_id, bio_assay_analysis_id);


--
-- Name: bio_asy_analysis_pltfm_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_asy_analysis_pltfm_pk ON biomart.bio_asy_analysis_pltfm USING btree (bio_asy_analysis_pltfm_id);


--
-- Name: bio_asy_feature_grp_name_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_asy_feature_grp_name_idx ON biomart.bio_assay_feature_group USING btree (feature_group_name, bio_assay_feature_group_id);


--
-- Name: bio_cell_line_dict_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_cell_line_dict_pk ON biomart.bio_cell_line USING btree (bio_cell_line_id);


--
-- Name: bio_cell_line_name_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_cell_line_name_idx ON biomart.bio_cell_line USING btree (cell_line_name, bio_cell_line_id);


--
-- Name: bio_cgdcp_data_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_cgdcp_data_pk ON biomart.bio_cgdcp_data USING btree (bio_data_id);


--
-- Name: bio_clinc_trial_attr_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_clinc_trial_attr_pk ON biomart.bio_clinc_trial_attr USING btree (bio_clinc_trial_attr_id);


--
-- Name: bio_clinc_trial_pt_group_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_clinc_trial_pt_group_pk ON biomart.bio_clinc_trial_pt_group USING btree (bio_clinical_trial_p_group_id);


--
-- Name: bio_clinc_trial_time_pt_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_clinc_trial_time_pt_pk ON biomart.bio_clinc_trial_time_pt USING btree (bio_clinc_trial_tm_pt_id);


--
-- Name: bio_clinical_trial_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_clinical_trial_pk ON biomart.bio_clinical_trial USING btree (bio_experiment_id);


--
-- Name: bio_compound_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_compound_pk ON biomart.bio_compound USING btree (bio_compound_id);


--
-- Name: bio_concept_code_type_index; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_concept_code_type_index ON biomart.bio_concept_code USING btree (code_type_name);


--
-- Name: bio_content_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_content_pk ON biomart.bio_content USING btree (bio_file_content_id);


--
-- Name: bio_content_reference_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_content_reference_pk ON biomart.bio_content_reference USING btree (bio_content_reference_id);


--
-- Name: bio_content_repository_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_content_repository_pk ON biomart.bio_content_repository USING btree (bio_content_repo_id);


--
-- Name: bio_curated_data_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_curated_data_pk ON biomart.bio_curated_data USING btree (bio_data_id);


--
-- Name: bio_curation_dataset_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_curation_dataset_pk ON biomart.bio_curation_dataset USING btree (bio_curation_dataset_id);


--
-- Name: bio_d_e_c_did_ct_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_d_e_c_did_ct_idx ON biomart.bio_data_ext_code USING btree (bio_data_id, code_type);


--
-- Name: bio_d_fg_m_marker2_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_d_fg_m_marker2_pk ON biomart.bio_assay_data_annotation USING btree (bio_marker_id, bio_assay_feature_group_id);


--
-- Name: bio_d_o_m_marker2_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_d_o_m_marker2_pk ON biomart.bio_data_omic_marker USING btree (bio_marker_id, bio_data_id);


--
-- Name: bio_data_attribute_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_data_attribute_pk ON biomart.bio_data_attribute USING btree (bio_data_attribute_id);


--
-- Name: bio_data_correl_descr_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_data_correl_descr_pk ON biomart.bio_data_correl_descr USING btree (bio_data_correl_descr_id);


--
-- Name: bio_data_e_c_c_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_data_e_c_c_idx ON biomart.bio_data_ext_code USING btree (code);


--
-- Name: bio_data_e_c_t_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_data_e_c_t_idx ON biomart.bio_data_ext_code USING btree (code_type);


--
-- Name: bio_data_o_m_did_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_data_o_m_did_idx ON biomart.bio_data_omic_marker USING btree (bio_data_id);


--
-- Name: bio_dd_idx2; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_dd_idx2 ON biomart.bio_data_disease USING btree (bio_disease_id);


--
-- Name: bio_disease_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_disease_pk ON biomart.bio_disease USING btree (bio_disease_id);


--
-- Name: bio_dt_dis_did_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_dt_dis_did_idx ON biomart.bio_data_disease USING btree (bio_data_id);


--
-- Name: bio_exp_acen_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_exp_acen_idx ON biomart.bio_experiment USING btree (accession);


--
-- Name: bio_exp_type_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_exp_type_idx ON biomart.bio_experiment USING btree (bio_experiment_type);


--
-- Name: bio_experiment_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_experiment_pk ON biomart.bio_experiment USING btree (bio_experiment_id);


--
-- Name: bio_marker_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_marker_pk ON biomart.bio_marker USING btree (bio_marker_id);


--
-- Name: bio_mkr_ext_id; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_mkr_ext_id ON biomart.bio_marker USING btree (primary_external_id);


--
-- Name: bio_mkr_type_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_mkr_type_idx ON biomart.bio_marker USING btree (bio_marker_type);


--
-- Name: bio_patient_event_attr_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_patient_event_attr_pk ON biomart.bio_patient_event_attr USING btree (bio_patient_attribute_id);


--
-- Name: bio_sample_pk; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX bio_sample_pk ON biomart.bio_sample USING btree (bio_sample_id);


--
-- Name: bio_stats_exp_mk_exp_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_stats_exp_mk_exp_idx ON biomart.bio_stats_exp_marker USING btree (bio_experiment_id);


--
-- Name: bio_stats_exp_mk_mk_idx; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX bio_stats_exp_mk_mk_idx ON biomart.bio_stats_exp_marker USING btree (bio_marker_id);


--
-- Name: idx_baad_idx_tea_experiment_type; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX idx_baad_idx_tea_experiment_type ON biomart.bio_assay_analysis_data_tea USING btree (bio_experiment_type, bio_asy_analysis_data_id);


--
-- Name: idx_baad_idx_tea_probe_analysis; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE INDEX idx_baad_idx_tea_probe_analysis ON biomart.bio_assay_analysis_data_tea USING btree (bio_assay_feature_group_id, bio_assay_analysis_id);


--
-- Name: mesh_idx_mn; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX mesh_idx_mn ON biomart.mesh USING btree (mn);


--
-- Name: mesh_idx_ui; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX mesh_idx_ui ON biomart.mesh USING btree (ui);


--
-- Name: pk_baad; Type: INDEX; Schema: biomart; Owner: biomart; Tablespace: indx
--

CREATE UNIQUE INDEX pk_baad ON biomart.bio_assay_analysis_data USING btree (bio_asy_analysis_data_id);



--
-- Name: idx_god_organism; Type: INDEX; Schema: biomart_user; Owner: biomart_user
--

CREATE INDEX idx_god_organism ON biomart_user.gene_ontology_data USING btree (organism);


--
-- Name: idx_god_symbol; Type: INDEX; Schema: biomart_user; Owner: biomart_user
--

CREATE INDEX idx_god_symbol ON biomart_user.gene_ontology_data USING btree (gene_symbol);



--
-- Name: de_gene_info_entrez_id_gene_source_id_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_gene_info_entrez_id_gene_source_id_idx ON deapp.de_gene_info USING btree (entrez_id, gene_source_id);


--
-- Name: de_gene_info_gene_symbol_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_gene_info_gene_symbol_idx ON deapp.de_gene_info USING btree (gene_symbol);


--
-- Name: de_microarray_data_idx1; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_microarray_data_idx1 ON deapp.de_subject_microarray_data USING btree (trial_name, assay_id, probeset_id);


--
-- Name: de_microarray_data_idx2; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_microarray_data_idx2 ON deapp.de_subject_microarray_data USING btree (assay_id, probeset_id);


--
-- Name: de_microarray_data_idx4; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_microarray_data_idx4 ON deapp.de_subject_microarray_data USING btree (trial_name);


--
-- Name: de_microarray_data_idx5; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_microarray_data_idx5 ON deapp.de_subject_microarray_data USING btree (assay_id, patient_id, probeset_id);


--
-- Name: de_mrna_annotation_idx1; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_mrna_annotation_idx1 ON deapp.de_mrna_annotation USING btree (gpl_id, probe_id);


--
-- Name: de_mrna_annotation_idx2; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_mrna_annotation_idx2 ON deapp.de_mrna_annotation USING btree (gene_id, probeset_id);


--
-- Name: de_obs_enroll_days_idx2; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_obs_enroll_days_idx2 ON deapp.de_obs_enroll_days USING btree (study_id);


--
-- Name: de_rc_snp_info_chrom_pos_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_rc_snp_info_chrom_pos_idx ON deapp.de_rc_snp_info USING btree (chrom, pos);


--
-- Name: de_rc_snp_info_entrez_id_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_rc_snp_info_entrez_id_idx ON deapp.de_rc_snp_info USING btree (entrez_id);


--
-- Name: de_rc_snp_info_rs_id_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_rc_snp_info_rs_id_idx ON deapp.de_rc_snp_info USING btree (rs_id);


--
-- Name: de_snp_calls_by_gsm_patient_num_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_snp_calls_by_gsm_patient_num_idx ON deapp.de_snp_calls_by_gsm USING btree (patient_num);


--
-- Name: de_snp_copy_number_num_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_snp_copy_number_num_idx ON deapp.de_snp_copy_number USING btree (patient_num);


--
-- Name: de_subject_acgh_data_patient; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_subject_acgh_data_patient ON deapp.de_subject_acgh_data USING btree (patient_id);


--
-- Name: de_subject_acgh_data_region; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_subject_acgh_data_region ON deapp.de_subject_acgh_data USING btree (region_id);


--
-- Name: de_subject_microarray_data_idx2; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_subject_microarray_data_idx2 ON deapp.de_subject_microarray_data USING btree (assay_id);


--
-- Name: de_subject_microarray_data_idx3; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_subject_microarray_data_idx3 ON deapp.de_subject_microarray_data USING btree (probeset_id);


--
-- Name: de_subject_microarray_data_idx4; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_subject_microarray_data_idx4 ON deapp.de_subject_microarray_data USING btree (assay_id, probeset_id);


--
-- Name: de_subject_rnaseq_data_patient; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_subject_rnaseq_data_patient ON deapp.de_subject_rnaseq_data USING btree (patient_id);


--
-- Name: de_subject_rnaseq_data_region; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX de_subject_rnaseq_data_region ON deapp.de_subject_rnaseq_data USING btree (region_id);


--
-- Name: de_subject_smpl_mpng_idx1; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_subject_smpl_mpng_idx1 ON deapp.de_subject_sample_mapping USING btree (timepoint, patient_id, trial_name);


--
-- Name: de_subject_smpl_mpng_idx2; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_subject_smpl_mpng_idx2 ON deapp.de_subject_sample_mapping USING btree (patient_id, timepoint_cd, platform_cd, assay_id, trial_name);


--
-- Name: de_variant_population_data_default_idx; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_variant_population_data_default_idx ON deapp.de_variant_population_data USING btree (dataset_id, chr, pos, info_name);


--
-- Name: de_variant_sub_detail_idx2; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_variant_sub_detail_idx2 ON deapp.de_variant_subject_detail USING btree (dataset_id, chr);


--
-- Name: de_variant_sub_dt_idx1; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX de_variant_sub_dt_idx1 ON deapp.de_variant_subject_detail USING btree (dataset_id, rs_id);


--
-- Name: gen_variant_subj_det_chr_pos; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX gen_variant_subj_det_chr_pos ON deapp.de_variant_subject_detail USING btree (chr, pos);


--
-- Name: gen_variant_subj_summ_chr_pos; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX gen_variant_subj_summ_chr_pos ON deapp.de_variant_subject_summary USING btree (chr, pos);


--
-- Name: idx_de_rna_data_1; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX idx_de_rna_data_1 ON deapp.de_subject_rna_data USING btree (trial_name, assay_id, probeset_id);


--
-- Name: idx_de_rna_data_2; Type: INDEX; Schema: deapp; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX idx_de_rna_data_2 ON deapp.de_subject_rna_data USING btree (assay_id, probeset_id);


--
-- Name: idx_de_sample_snp_data_sample; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX idx_de_sample_snp_data_sample ON deapp.de_sample_snp_data USING btree (sample_id);


--
-- Name: idx_de_sample_snp_data_snp; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX idx_de_sample_snp_data_snp ON deapp.de_sample_snp_data USING btree (snp_name);


--
-- Name: idx_de_subj_smpl_trial_ccode; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX idx_de_subj_smpl_trial_ccode ON deapp.de_subject_sample_mapping USING btree (trial_name, concept_code);


--
-- Name: variant_population_info_dataset_name; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE INDEX variant_population_info_dataset_name ON deapp.de_variant_population_info USING btree (dataset_id, info_name);


--
-- Name: variant_subject_detail_uk; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE UNIQUE INDEX variant_subject_detail_uk ON deapp.de_variant_subject_detail USING btree (dataset_id, chr, pos, rs_id);


--
-- Name: variant_subject_idx_uk; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE UNIQUE INDEX variant_subject_idx_uk ON deapp.de_variant_subject_idx USING btree (dataset_id, subject_id, "position");


--
-- Name: variant_subject_summary_uk; Type: INDEX; Schema: deapp; Owner: deapp; Tablespace: indx
--

CREATE UNIQUE INDEX variant_subject_summary_uk ON deapp.de_variant_subject_summary USING btree (dataset_id, chr, pos, rs_id, subject_id);


--
-- Name: cd_uploadid_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX cd_uploadid_idx ON i2b2demodata.concept_dimension USING btree (upload_id);


--
-- Name: cl_idx_name_char; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX cl_idx_name_char ON i2b2demodata.code_lookup USING btree (name_char);


--
-- Name: cl_idx_uploadid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX cl_idx_uploadid ON i2b2demodata.code_lookup USING btree (upload_id);


--
-- Name: em_encnum_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX em_encnum_idx ON i2b2demodata.encounter_mapping USING btree (encounter_num);


--
-- Name: em_idx_encpath; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX em_idx_encpath ON i2b2demodata.encounter_mapping USING btree (encounter_ide, encounter_ide_source, patient_ide, patient_ide_source, encounter_num);


--
-- Name: em_uploadid_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX em_uploadid_idx ON i2b2demodata.encounter_mapping USING btree (upload_id);


--
-- Name: fact_modifier_patient; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX fact_modifier_patient ON i2b2demodata.observation_fact USING btree (modifier_cd, patient_num);


--
-- Name: idx_count_concept_path; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX idx_count_concept_path ON i2b2demodata.concept_counts USING btree (concept_path);


--
-- Name: idx_fact_concept; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX idx_fact_concept ON i2b2demodata.observation_fact USING btree (concept_cd);


--
-- Name: idx_fact_cpe; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX idx_fact_cpe ON i2b2demodata.observation_fact USING btree (concept_cd, patient_num, encounter_num);


--
-- Name: idx_fact_patient_num; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX idx_fact_patient_num ON i2b2demodata.observation_fact USING btree (patient_num);


--
-- Name: idx_pd_sourcesystemcd_pnum; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX idx_pd_sourcesystemcd_pnum ON i2b2demodata.patient_dimension USING btree (sourcesystem_cd, patient_num);


--
-- Name: jms_messages_destination; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX jms_messages_destination ON i2b2demodata.jms_messages USING btree (destination);


--
-- Name: jms_messages_txop_txid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX jms_messages_txop_txid ON i2b2demodata.jms_messages USING btree (txop, txid);


--
-- Name: md_idx_uploadid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX md_idx_uploadid ON i2b2demodata.modifier_dimension USING btree (upload_id);


--
-- Name: patd_uploadid_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX patd_uploadid_idx ON i2b2demodata.patient_dimension USING btree (upload_id);


--
-- Name: pd_idx_allpatientdim; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pd_idx_allpatientdim ON i2b2demodata.patient_dimension USING btree (patient_num, vital_status_cd, birth_date, death_date, sex_cd, age_in_years_num, language_cd, race_cd, marital_status_cd, religion_cd, zip_cd, income_cd);


--
-- Name: pd_idx_dates; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pd_idx_dates ON i2b2demodata.patient_dimension USING btree (patient_num, vital_status_cd, birth_date, death_date);


--
-- Name: pd_idx_name_char; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pd_idx_name_char ON i2b2demodata.provider_dimension USING btree (provider_id, name_char);


--
-- Name: pd_idx_statecityzip; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pd_idx_statecityzip ON i2b2demodata.patient_dimension USING btree (statecityzip_path, patient_num);


--
-- Name: pk_archive_obsfact; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pk_archive_obsfact ON i2b2demodata.archive_observation_fact USING btree (encounter_num, patient_num, concept_cd, provider_id, start_date, modifier_cd, archive_upload_id);


--
-- Name: pm_encpnum_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pm_encpnum_idx ON i2b2demodata.patient_mapping USING btree (patient_ide, patient_ide_source, patient_num);


--
-- Name: pm_patnum_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pm_patnum_idx ON i2b2demodata.patient_mapping USING btree (patient_num);


--
-- Name: pm_uploadid_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX pm_uploadid_idx ON i2b2demodata.patient_mapping USING btree (upload_id);


--
-- Name: prod_uploadid_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX prod_uploadid_idx ON i2b2demodata.provider_dimension USING btree (upload_id);


--
-- Name: qt_apnamevergrp_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX qt_apnamevergrp_idx ON i2b2demodata.qt_analysis_plugin USING btree (plugin_name, version_cd, group_id);


--
-- Name: qt_idx_pqm_ugid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX qt_idx_pqm_ugid ON i2b2demodata.qt_pdo_query_master USING btree (user_id, group_id);


--
-- Name: qt_idx_qi_mstartid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX qt_idx_qi_mstartid ON i2b2demodata.qt_query_instance USING btree (query_master_id, start_date);


--
-- Name: qt_idx_qi_ugid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX qt_idx_qi_ugid ON i2b2demodata.qt_query_instance USING btree (user_id, group_id);


--
-- Name: qt_idx_qm_ugid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX qt_idx_qm_ugid ON i2b2demodata.qt_query_master USING btree (user_id, group_id, master_type_cd);


--
-- Name: qt_idx_qpsc_riid; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX qt_idx_qpsc_riid ON i2b2demodata.qt_patient_set_collection USING btree (result_instance_id);


--
-- Name: vd_uploadid_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX vd_uploadid_idx ON i2b2demodata.visit_dimension USING btree (upload_id);


--
-- Name: visitdim_en_pn_lp_io_sd_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX visitdim_en_pn_lp_io_sd_idx ON i2b2demodata.visit_dimension USING btree (encounter_num, patient_num, location_path, inout_cd, start_date, end_date, length_of_stay);


--
-- Name: visitdim_std_edd_idx; Type: INDEX; Schema: i2b2demodata; Owner: i2b2demodata; Tablespace: indx
--

CREATE INDEX visitdim_std_edd_idx ON i2b2demodata.visit_dimension USING btree (start_date, end_date);


--
-- Name: i2b2_c_comment_char_length_idx; Type: INDEX; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

CREATE INDEX i2b2_c_comment_char_length_idx ON i2b2metadata.i2b2 USING btree (c_comment, char_length((c_fullname)::text));


--
-- Name: INDEX i2b2_c_comment_char_length_idx; Type: COMMENT; Schema: i2b2metadata; Owner: i2b2metadata
--

COMMENT ON INDEX i2b2metadata.i2b2_c_comment_char_length_idx IS 'For i2b2metadata.i2b2_trial_nodes view';


--
-- Name: idx_i2b2_fullname_basecode; Type: INDEX; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

CREATE INDEX idx_i2b2_fullname_basecode ON i2b2metadata.i2b2 USING btree (c_fullname, c_basecode);


--
-- Name: idx_i2b2_secure_fullname; Type: INDEX; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

CREATE INDEX idx_i2b2_secure_fullname ON i2b2metadata.i2b2_secure USING btree (c_fullname);


--
-- Name: ix_i2b2_source_system_cd; Type: INDEX; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

CREATE INDEX ix_i2b2_source_system_cd ON i2b2metadata.i2b2 USING btree (sourcesystem_cd);


--
-- Name: meta_applied_path_custom_idx; Type: INDEX; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

CREATE INDEX meta_applied_path_custom_idx ON i2b2metadata.custom_meta USING btree (m_applied_path);


--
-- Name: meta_fullname_custom_idx; Type: INDEX; Schema: i2b2metadata; Owner: i2b2metadata; Tablespace: indx
--

CREATE INDEX meta_fullname_custom_idx ON i2b2metadata.custom_meta USING btree (c_fullname);


--
-- Name: search_keyword_index1; Type: INDEX; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

CREATE INDEX search_keyword_index1 ON searchapp.search_keyword USING btree (keyword);


--
-- Name: search_keyword_index2; Type: INDEX; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

CREATE INDEX search_keyword_index2 ON searchapp.search_keyword USING btree (bio_data_id);


--
-- Name: search_keyword_index3; Type: INDEX; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

CREATE INDEX search_keyword_index3 ON searchapp.search_keyword USING btree (owner_auth_user_id);


--
-- Name: search_kw_term_skid_idx; Type: INDEX; Schema: searchapp; Owner: searchapp; Tablespace: indx
--

CREATE INDEX search_kw_term_skid_idx ON searchapp.search_keyword_term USING btree (search_keyword_id);


--
-- Name: node_curation_pk; Type: INDEX; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

CREATE UNIQUE INDEX node_curation_pk ON tm_cz.node_curation USING btree (node_type, node_name, study_id);


--
-- Name: probeset_deapp_i1; Type: INDEX; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX probeset_deapp_i1 ON tm_cz.probeset_deapp USING btree (probeset_id);


--
-- Name: probeset_deapp_i2; Type: INDEX; Schema: tm_cz; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX probeset_deapp_i2 ON tm_cz.probeset_deapp USING btree (probeset, platform);


--
-- Name: lz_src_mrna_subj_samp_idx1; Type: INDEX; Schema: tm_lz; Owner: tm_lz; Tablespace: indx
--

CREATE INDEX lz_src_mrna_subj_samp_idx1 ON tm_lz.lz_src_mrna_subj_samp_map USING btree (trial_name, source_cd);


--
-- Name: wt_subject_mrna_calcs_i1; Type: INDEX; Schema: tm_wz; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX wt_subject_mrna_calcs_i1 ON tm_wz.wt_subject_microarray_calcs USING btree (trial_name, probeset_id);


--
-- Name: wt_subject_rbm_calcs_i1; Type: INDEX; Schema: tm_wz; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX wt_subject_rbm_calcs_i1 ON tm_wz.wt_subject_rbm_calcs USING btree (trial_name, probeset_id);


--
-- Name: wt_subject_rna_calcs_i1; Type: INDEX; Schema: tm_wz; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX wt_subject_rna_calcs_i1 ON tm_wz.wt_subject_rna_calcs USING btree (trial_name, probeset_id);


--
-- Name: wt_subject_rnaseq_calcs_i1; Type: INDEX; Schema: tm_wz; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX wt_subject_rnaseq_calcs_i1 ON tm_wz.wt_subject_rnaseq_calcs USING btree (region_id);


--
-- Name: wt_subject_rnaseq_logs_i1; Type: INDEX; Schema: tm_wz; Owner: tm_cz; Tablespace: indx
--

CREATE INDEX wt_subject_rnaseq_logs_i1 ON tm_wz.wt_subject_rnaseq_logs USING btree (trial_name, region_id);


--
-- Name: am_tag_item trg_am_tag_item_id; Type: TRIGGER; Schema: amapp; Owner: amapp
--

CREATE TRIGGER trg_am_tag_item_id BEFORE INSERT ON amapp.am_tag_item FOR EACH ROW EXECUTE PROCEDURE amapp.tf_trg_am_tag_item_id();


--
-- Name: am_tag_template_association trg_am_tag_temp_assoc_id; Type: TRIGGER; Schema: amapp; Owner: amapp
--

CREATE TRIGGER trg_am_tag_temp_assoc_id BEFORE INSERT ON amapp.am_tag_template_association FOR EACH ROW EXECUTE PROCEDURE amapp.tf_trg_am_tag_temp_assoc_id();


--
-- Name: am_tag_template trg_am_tag_template_id; Type: TRIGGER; Schema: amapp; Owner: amapp
--

CREATE TRIGGER trg_am_tag_template_id BEFORE INSERT ON amapp.am_tag_template FOR EACH ROW EXECUTE PROCEDURE amapp.tf_trg_am_tag_template_id();


--
-- Name: am_tag_value trg_am_tag_value_id; Type: TRIGGER; Schema: amapp; Owner: amapp
--

CREATE TRIGGER trg_am_tag_value_id BEFORE INSERT ON amapp.am_tag_value FOR EACH ROW EXECUTE PROCEDURE amapp.tf_trg_am_tag_value_id();


--
-- Name: am_tag_value trg_am_tag_value_uid; Type: TRIGGER; Schema: amapp; Owner: amapp
--

CREATE TRIGGER trg_am_tag_value_uid BEFORE INSERT ON amapp.am_tag_value FOR EACH ROW EXECUTE PROCEDURE amapp.tf_trg_am_tag_value_uid();


--
-- Name: bio_ad_hoc_property trg_bio_ad_hoc_prop_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_ad_hoc_prop_id BEFORE INSERT ON biomart.bio_ad_hoc_property FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_ad_hoc_prop_id();


--
-- Name: bio_analysis_attribute_lineage trg_bio_analysis_al_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_analysis_al_id BEFORE INSERT ON biomart.bio_analysis_attribute_lineage FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_analysis_al_id();


--
-- Name: bio_analysis_attribute trg_bio_analysis_attribute_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_analysis_attribute_id BEFORE INSERT ON biomart.bio_analysis_attribute FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_analysis_attribute_id();


--
-- Name: bio_assay_analysis trg_bio_assay_analysis_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_analysis_id BEFORE INSERT ON biomart.bio_assay_analysis FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_analysis_id();


--
-- Name: bio_assay_analysis trg_bio_assay_analysis_uid; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_analysis_uid BEFORE INSERT ON biomart.bio_assay_analysis FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_analysis_uid();


--
-- Name: bio_assay_cohort trg_bio_assay_cohort_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_cohort_id BEFORE INSERT ON biomart.bio_assay_cohort FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_cohort_id();


--
-- Name: bio_assay_data trg_bio_assay_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_data_id BEFORE INSERT ON biomart.bio_assay_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_data_id();


--
-- Name: bio_assay_dataset trg_bio_assay_dataset_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_dataset_id BEFORE INSERT ON biomart.bio_assay_dataset FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_dataset_id();


--
-- Name: bio_assay_feature_group trg_bio_assay_f_g_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_f_g_id BEFORE INSERT ON biomart.bio_assay_feature_group FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_f_g_id();


--
-- Name: bio_assay trg_bio_assay_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_id BEFORE INSERT ON biomart.bio_assay FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_id();


--
-- Name: bio_assay_platform trg_bio_assay_platform_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_assay_platform_id BEFORE INSERT ON biomart.bio_assay_platform FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_assay_platform_id();


--
-- Name: bio_asy_analysis_data_idx trg_bio_asy_adi_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_asy_adi_id BEFORE INSERT ON biomart.bio_asy_analysis_data_idx FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_asy_adi_id();


--
-- Name: bio_assay_analysis_data trg_bio_asy_analysis_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_asy_analysis_data_id BEFORE INSERT ON biomart.bio_assay_analysis_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_asy_analysis_data_id();


--
-- Name: bio_asy_analysis_pltfm trg_bio_asy_analysis_pltfm_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_asy_analysis_pltfm_id BEFORE INSERT ON biomart.bio_asy_analysis_pltfm FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_asy_analysis_pltfm_id();


--
-- Name: bio_asy_data_stats_all trg_bio_asy_dt_stats_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_asy_dt_stats_id BEFORE INSERT ON biomart.bio_asy_data_stats_all FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_asy_dt_stats_id();


--
-- Name: bio_cell_line trg_bio_cell_line_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_cell_line_id BEFORE INSERT ON biomart.bio_cell_line FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_cell_line_id();


--
-- Name: bio_clinc_trial_time_pt trg_bio_cl_trl_time_pt_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_cl_trl_time_pt_id BEFORE INSERT ON biomart.bio_clinc_trial_time_pt FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_cl_trl_time_pt_id();


--
-- Name: bio_clinc_trial_pt_group trg_bio_clin_trl_pt_grp_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_clin_trl_pt_grp_id BEFORE INSERT ON biomart.bio_clinc_trial_pt_group FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_clin_trl_pt_grp_id();


--
-- Name: bio_clinc_trial_attr trg_bio_cln_trl_attr_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_cln_trl_attr_id BEFORE INSERT ON biomart.bio_clinc_trial_attr FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_cln_trl_attr_id();


--
-- Name: bio_compound trg_bio_compound_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_compound_id BEFORE INSERT ON biomart.bio_compound FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_compound_id();


--
-- Name: bio_concept_code trg_bio_concept_code_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_concept_code_id BEFORE INSERT ON biomart.bio_concept_code FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_concept_code_id();


--
-- Name: bio_content_reference trg_bio_content_ref_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_content_ref_id BEFORE INSERT ON biomart.bio_content_reference FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_content_ref_id();


--
-- Name: bio_content_repository trg_bio_content_repo_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_content_repo_id BEFORE INSERT ON biomart.bio_content_repository FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_content_repo_id();


--
-- Name: bio_curation_dataset trg_bio_curation_dataset_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_curation_dataset_id BEFORE INSERT ON biomart.bio_curation_dataset FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_curation_dataset_id();


--
-- Name: bio_data_attribute trg_bio_data_attr_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_data_attr_id BEFORE INSERT ON biomart.bio_data_attribute FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_data_attr_id();


--
-- Name: bio_data_correlation trg_bio_data_correl_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_data_correl_id BEFORE INSERT ON biomart.bio_data_correlation FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_data_correl_id();


--
-- Name: bio_data_ext_code trg_bio_data_ext_code_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_data_ext_code_id BEFORE INSERT ON biomart.bio_data_ext_code FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_data_ext_code_id();


--
-- Name: bio_disease trg_bio_disease_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_disease_id BEFORE INSERT ON biomart.bio_disease FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_disease_id();


--
-- Name: bio_experiment trg_bio_experiment_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_experiment_id BEFORE INSERT ON biomart.bio_experiment FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_experiment_id();


--
-- Name: bio_experiment trg_bio_experiment_uid; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_experiment_uid BEFORE INSERT ON biomart.bio_experiment FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_experiment_uid();


--
-- Name: bio_content trg_bio_file_content_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_file_content_id BEFORE INSERT ON biomart.bio_content FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_file_content_id();


--
-- Name: bio_lit_alt_data trg_bio_lit_alt_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_alt_data_id BEFORE INSERT ON biomart.bio_lit_alt_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_alt_data_id();


--
-- Name: bio_lit_amd_data trg_bio_lit_amd_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_amd_data_id BEFORE INSERT ON biomart.bio_lit_amd_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_amd_data_id();


--
-- Name: bio_lit_inh_data trg_bio_lit_inh_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_inh_data_id BEFORE INSERT ON biomart.bio_lit_inh_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_inh_data_id();


--
-- Name: bio_lit_int_data trg_bio_lit_int_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_int_data_id BEFORE INSERT ON biomart.bio_lit_int_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_int_data_id();


--
-- Name: bio_lit_model_data trg_bio_lit_model_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_model_data_id BEFORE INSERT ON biomart.bio_lit_model_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_model_data_id();


--
-- Name: bio_lit_pe_data trg_bio_lit_pe_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_pe_data_id BEFORE INSERT ON biomart.bio_lit_pe_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_pe_data_id();


--
-- Name: bio_lit_ref_data trg_bio_lit_ref_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_ref_data_id BEFORE INSERT ON biomart.bio_lit_ref_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_ref_data_id();


--
-- Name: bio_lit_sum_data trg_bio_lit_sum_data_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_lit_sum_data_id BEFORE INSERT ON biomart.bio_lit_sum_data FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_lit_sum_data_id();


--
-- Name: bio_marker trg_bio_marker_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_marker_id BEFORE INSERT ON biomart.bio_marker FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_marker_id();


--
-- Name: bio_data_correl_descr trg_bio_mkr_correl_descr_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_mkr_correl_descr_id BEFORE INSERT ON biomart.bio_data_correl_descr FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_mkr_correl_descr_id();


--
-- Name: bio_observation trg_bio_observation_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_observation_id BEFORE INSERT ON biomart.bio_observation FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_observation_id();


--
-- Name: bio_patient_event trg_bio_patient_event_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_patient_event_id BEFORE INSERT ON biomart.bio_patient_event FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_patient_event_id();


--
-- Name: bio_patient trg_bio_patient_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_patient_id BEFORE INSERT ON biomart.bio_patient FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_patient_id();


--
-- Name: bio_patient_event_attr trg_bio_pt_evt_attr_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_pt_evt_attr_id BEFORE INSERT ON biomart.bio_patient_event_attr FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_pt_evt_attr_id();


--
-- Name: bio_sample trg_bio_sample_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_sample_id BEFORE INSERT ON biomart.bio_sample FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_sample_id();


--
-- Name: bio_subject trg_bio_subject_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_subject_id BEFORE INSERT ON biomart.bio_subject FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_subject_id();


--
-- Name: bio_taxonomy trg_bio_taxon_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_bio_taxon_id BEFORE INSERT ON biomart.bio_taxonomy FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_bio_taxon_id();


--
-- Name: ctd2_clin_inhib_effect trg_ctd2_clin_inhib_effect; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_ctd2_clin_inhib_effect BEFORE INSERT ON biomart.ctd2_clin_inhib_effect FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_ctd2_clin_inhib_effect();


--
-- Name: ctd2_disease trg_ctd2_disease; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_ctd2_disease BEFORE INSERT ON biomart.ctd2_disease FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_ctd2_disease();


--
-- Name: ctd2_inhib_details trg_ctd2_inhib_details; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_ctd2_inhib_details BEFORE INSERT ON biomart.ctd2_inhib_details FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_ctd2_inhib_details();


--
-- Name: ctd2_study trg_ctd2_study_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_ctd2_study_id BEFORE INSERT ON biomart.ctd2_study FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_ctd2_study_id();


--
-- Name: ctd2_trial_details trg_ctd2_trial_details; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trg_ctd2_trial_details BEFORE INSERT ON biomart.ctd2_trial_details FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trg_ctd2_trial_details();


--
-- Name: ctd_full trig_clinical_trial_design_id; Type: TRIGGER; Schema: biomart; Owner: biomart
--

CREATE TRIGGER trig_clinical_trial_design_id BEFORE INSERT ON biomart.ctd_full FOR EACH ROW EXECUTE PROCEDURE biomart.tf_trig_clinical_trial_design_id();


--
-- Name: de_xtrial_parent_names de_parent_cd_trg; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER de_parent_cd_trg BEFORE INSERT ON deapp.de_xtrial_parent_names FOR EACH ROW WHEN ((COALESCE((new.parent_cd)::text, ''::text) = ''::text)) EXECUTE PROCEDURE deapp.tf_de_parent_cd_trg();


--
-- Name: de_rbm_annotation rbm_id_trigger; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER rbm_id_trigger BEFORE INSERT ON deapp.de_rbm_annotation FOR EACH ROW EXECUTE PROCEDURE deapp.tf_rbm_id_trigger();


--
-- Name: de_gene_source trg_de_gene_source_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_gene_source_id BEFORE INSERT ON deapp.de_gene_source FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_gene_source_id();


--
-- Name: de_mrna_annotation trg_de_mrna_annotation_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_mrna_annotation_id BEFORE INSERT ON deapp.de_mrna_annotation FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_mrna_annotation_id();


--
-- Name: de_pathway_gene trg_de_pathway_gene_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_pathway_gene_id BEFORE INSERT ON deapp.de_pathway_gene FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_pathway_gene_id();


--
-- Name: de_pathway trg_de_pathway_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_pathway_id BEFORE INSERT ON deapp.de_pathway FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_pathway_id();


--
-- Name: de_snp_info trg_de_snp_info_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_snp_info_id BEFORE INSERT ON deapp.de_snp_info FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_snp_info_id();


--
-- Name: de_snp_probe trg_de_snp_probe_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_snp_probe_id BEFORE INSERT ON deapp.de_snp_probe FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_snp_probe_id();


--
-- Name: de_snp_probe_sorted_def trg_de_snp_probe_sorted_def_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_snp_probe_sorted_def_id BEFORE INSERT ON deapp.de_snp_probe_sorted_def FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_snp_probe_sorted_def_id();


--
-- Name: de_subject_rbm_data trg_de_subj_rbm_data_id; Type: TRIGGER; Schema: deapp; Owner: tm_cz
--

CREATE TRIGGER trg_de_subj_rbm_data_id BEFORE INSERT ON deapp.de_subject_rbm_data FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_subj_rbm_data_id();


--
-- Name: de_subject_snp_dataset trg_de_subject_snp_dataset_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_subject_snp_dataset_id BEFORE INSERT ON deapp.de_subject_snp_dataset FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_subject_snp_dataset_id();


--
-- Name: de_snp_subject_sorted_def trg_de_subject_sorted_def_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_de_subject_sorted_def_id BEFORE INSERT ON deapp.de_snp_subject_sorted_def FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_de_subject_sorted_def_id();


--
-- Name: de_snp_data_by_patient trg_snp_data_by_patient_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_snp_data_by_patient_id BEFORE INSERT ON deapp.de_snp_data_by_patient FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_snp_data_by_patient_id();


--
-- Name: de_snp_data_by_probe trg_snp_data_by_probe_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_snp_data_by_probe_id BEFORE INSERT ON deapp.de_snp_data_by_probe FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_snp_data_by_probe_id();


--
-- Name: de_snp_data_dataset_loc trg_snp_data_dataset_loc_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_snp_data_dataset_loc_id BEFORE INSERT ON deapp.de_snp_data_dataset_loc FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_snp_data_dataset_loc_id();


--
-- Name: de_snp_subject_sorted_def trg_snp_subject_sorted_def_id; Type: TRIGGER; Schema: deapp; Owner: deapp
--

CREATE TRIGGER trg_snp_subject_sorted_def_id BEFORE INSERT ON deapp.de_snp_subject_sorted_def FOR EACH ROW EXECUTE PROCEDURE deapp.tf_trg_snp_subject_sorted_def_id();


--
-- Name: fm_file trg_fm_file_id; Type: TRIGGER; Schema: fmapp; Owner: fmapp
--

CREATE TRIGGER trg_fm_file_id BEFORE INSERT ON fmapp.fm_file FOR EACH ROW EXECUTE PROCEDURE fmapp.tf_trg_fm_file_id();


--
-- Name: fm_file trg_fm_file_uid; Type: TRIGGER; Schema: fmapp; Owner: fmapp
--

CREATE TRIGGER trg_fm_file_uid BEFORE INSERT ON fmapp.fm_file FOR EACH ROW EXECUTE PROCEDURE fmapp.tf_trg_fm_file_uid();


--
-- Name: fm_folder trg_fm_folder_id; Type: TRIGGER; Schema: fmapp; Owner: fmapp
--

CREATE TRIGGER trg_fm_folder_id BEFORE INSERT ON fmapp.fm_folder FOR EACH ROW EXECUTE PROCEDURE fmapp.tf_trg_fm_folder_id();


--
-- Name: fm_folder trg_fm_folder_uid; Type: TRIGGER; Schema: fmapp; Owner: fmapp
--

CREATE TRIGGER trg_fm_folder_uid BEFORE INSERT ON fmapp.fm_folder FOR EACH ROW EXECUTE PROCEDURE fmapp.tf_trg_fm_folder_uid();


--
-- Name: concept_dimension trg_concept_dimension_cd; Type: TRIGGER; Schema: i2b2demodata; Owner: i2b2demodata
--

CREATE TRIGGER trg_concept_dimension_cd BEFORE INSERT ON i2b2demodata.concept_dimension FOR EACH ROW EXECUTE PROCEDURE i2b2demodata.tf_trg_concept_dimension_cd();


--
-- Name: observation_fact trg_encounter_num; Type: TRIGGER; Schema: i2b2demodata; Owner: i2b2demodata
--

CREATE TRIGGER trg_encounter_num BEFORE INSERT ON i2b2demodata.observation_fact FOR EACH ROW EXECUTE PROCEDURE i2b2demodata.tf_trg_encounter_num();


--
-- Name: patient_dimension trg_patient_dimension; Type: TRIGGER; Schema: i2b2demodata; Owner: i2b2demodata
--

CREATE TRIGGER trg_patient_dimension BEFORE INSERT ON i2b2demodata.patient_dimension FOR EACH ROW EXECUTE PROCEDURE i2b2demodata.tf_trg_patient_dimension();


--
-- Name: i2b2 trg_i2b2_id; Type: TRIGGER; Schema: i2b2metadata; Owner: i2b2metadata
--

CREATE TRIGGER trg_i2b2_id BEFORE INSERT ON i2b2metadata.i2b2 FOR EACH ROW EXECUTE PROCEDURE i2b2metadata.tf_trg_i2b2_id();


--
-- Name: i2b2_tags trg_i2b2_tag_id; Type: TRIGGER; Schema: i2b2metadata; Owner: i2b2metadata
--

CREATE TRIGGER trg_i2b2_tag_id BEFORE INSERT ON i2b2metadata.i2b2_tags FOR EACH ROW EXECUTE PROCEDURE i2b2metadata.tf_trg_i2b2_tag_id();


--
-- Name: saved_faceted_search trg_saved_faceted_search_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_saved_faceted_search_id BEFORE INSERT ON searchapp.saved_faceted_search FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_saved_faceted_search_id();


--
-- Name: search_auth_user_sec_access trg_search_a_u_sec_access_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_a_u_sec_access_id BEFORE INSERT ON searchapp.search_auth_user_sec_access FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_a_u_sec_access_id();


--
-- Name: search_auth_sec_object_access trg_search_au_obj_access_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_au_obj_access_id BEFORE INSERT ON searchapp.search_auth_sec_object_access FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_au_obj_access_id();


--
-- Name: search_auth_principal trg_search_au_prcpl_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_au_prcpl_id BEFORE INSERT ON searchapp.search_auth_principal FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_au_prcpl_id();


--
-- Name: search_custom_filter_item trg_search_cust_fil_item_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_cust_fil_item_id BEFORE INSERT ON searchapp.search_custom_filter_item FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_cust_fil_item_id();


--
-- Name: search_custom_filter trg_search_custom_filter_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_custom_filter_id BEFORE INSERT ON searchapp.search_custom_filter FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_custom_filter_id();


--
-- Name: search_form_layout trg_search_form_layout_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_form_layout_id BEFORE INSERT ON searchapp.search_form_layout FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_form_layout_id();


--
-- Name: search_keyword trg_search_keyword_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_keyword_id BEFORE INSERT ON searchapp.search_keyword FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_keyword_id();


--
-- Name: search_keyword_term trg_search_keyword_term_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_keyword_term_id BEFORE INSERT ON searchapp.search_keyword_term FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_keyword_term_id();


--
-- Name: search_sec_access_level trg_search_sec_acc_level_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_sec_acc_level_id BEFORE INSERT ON searchapp.search_sec_access_level FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_sec_acc_level_id();


--
-- Name: search_secure_object trg_search_sec_obj_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_sec_obj_id BEFORE INSERT ON searchapp.search_secure_object FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_sec_obj_id();


--
-- Name: search_secure_object_path trg_search_sec_obj_path_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_sec_obj_path_id BEFORE INSERT ON searchapp.search_secure_object_path FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_sec_obj_path_id();


--
-- Name: search_taxonomy_rels trg_search_taxonomy_rels_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_taxonomy_rels_id BEFORE INSERT ON searchapp.search_taxonomy_rels FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_taxonomy_rels_id();


--
-- Name: search_taxonomy trg_search_taxonomy_term_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_search_taxonomy_term_id BEFORE INSERT ON searchapp.search_taxonomy FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_search_taxonomy_term_id();


--
-- Name: search_required_upload_field trg_srch_req_up_field_id; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_srch_req_up_field_id BEFORE INSERT ON searchapp.search_required_upload_field FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_srch_req_up_field_id();


--
-- Name: saved_faceted_search trg_upd_saved_faceted_search; Type: TRIGGER; Schema: searchapp; Owner: searchapp
--

CREATE TRIGGER trg_upd_saved_faceted_search BEFORE UPDATE ON searchapp.saved_faceted_search FOR EACH ROW EXECUTE PROCEDURE searchapp.tf_trg_upd_saved_faceted_search();


--
-- Name: az_test_run tf_trg_az_test_run_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER tf_trg_az_test_run_id BEFORE INSERT ON tm_cz.az_test_run FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_az_test_run_id();


--
-- Name: antigen_deapp trg_antigen_deapp; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_antigen_deapp BEFORE INSERT ON tm_cz.antigen_deapp FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_antigen_deapp();


--
-- Name: az_test_step_act_result trg_az_test_step_act_result; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_az_test_step_act_result BEFORE INSERT ON tm_cz.az_test_step_act_result FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_az_test_step_act_result();


--
-- Name: az_test_step_run trg_az_test_step_run_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_az_test_step_run_id BEFORE INSERT ON tm_cz.az_test_step_run FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_az_test_step_run_id();


--
-- Name: cz_data_file trg_cz_data_file_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_data_file_id BEFORE INSERT ON tm_cz.cz_data_file FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_data_file_id();


--
-- Name: cz_data trg_cz_data_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_data_id BEFORE INSERT ON tm_cz.cz_data FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_data_id();


--
-- Name: cz_dw_version trg_cz_dw_version_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_dw_version_id BEFORE INSERT ON tm_cz.cz_dw_version FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_dw_version_id();


--
-- Name: cz_job_master trg_cz_job_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_job_id BEFORE INSERT ON tm_cz.cz_job_master FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_job_id();


--
-- Name: cz_job_message trg_cz_message_seq_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_message_seq_id BEFORE INSERT ON tm_cz.cz_job_message FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_message_seq_id();


--
-- Name: cz_person trg_cz_personid; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_personid BEFORE INSERT ON tm_cz.cz_person FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_personid();


--
-- Name: cz_job_audit trg_cz_seq_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_seq_id BEFORE INSERT ON tm_cz.cz_job_audit FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_seq_id();


--
-- Name: cz_test_category trg_cz_test_category_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_test_category_id BEFORE INSERT ON tm_cz.cz_test_category FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_test_category_id();


--
-- Name: cz_test trg_cz_test_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_test_id BEFORE INSERT ON tm_cz.cz_test FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_test_id();


--
-- Name: cz_test_result trg_cz_test_result_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_test_result_id BEFORE INSERT ON tm_cz.cz_test_result FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_test_result_id();


--
-- Name: cz_xtrial_ctrl_vocab trg_cz_xtrial_ctrl_vocab_id; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_cz_xtrial_ctrl_vocab_id BEFORE INSERT ON tm_cz.cz_xtrial_ctrl_vocab FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_cz_xtrial_ctrl_vocab_id();


--
-- Name: probeset_deapp trg_probeset_deapp; Type: TRIGGER; Schema: tm_cz; Owner: tm_cz
--

CREATE TRIGGER trg_probeset_deapp BEFORE INSERT ON tm_cz.probeset_deapp FOR EACH ROW EXECUTE PROCEDURE tm_cz.tf_trg_probeset_deapp();


--
-- Name: lz_src_analysis_metadata trg_lz_src_analysis_meta_id; Type: TRIGGER; Schema: tm_lz; Owner: tm_lz
--

CREATE TRIGGER trg_lz_src_analysis_meta_id BEFORE INSERT ON tm_lz.lz_src_analysis_metadata FOR EACH ROW EXECUTE PROCEDURE tm_lz.tf_trg_lz_src_analysis_meta_id();


--
-- Name: bio_assay_analysis_data bio_assay_analysis_data_n_fk1; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data
    ADD CONSTRAINT bio_assay_analysis_data_n_fk1 FOREIGN KEY (bio_assay_analysis_id) REFERENCES biomart.bio_assay_analysis(bio_assay_analysis_id);


--
-- Name: bio_assay_analysis_data bio_assay_analysis_data_n_fk2; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data
    ADD CONSTRAINT bio_assay_analysis_data_n_fk2 FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_experiment(bio_experiment_id);


--
-- Name: bio_assay_analysis_data bio_assay_analysis_data_n_fk3; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data
    ADD CONSTRAINT bio_assay_analysis_data_n_fk3 FOREIGN KEY (bio_assay_platform_id) REFERENCES biomart.bio_assay_platform(bio_assay_platform_id);


--
-- Name: bio_assay_analysis_data_tea bio_assay_analysis_data_t_fk1; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data_tea
    ADD CONSTRAINT bio_assay_analysis_data_t_fk1 FOREIGN KEY (bio_assay_analysis_id) REFERENCES biomart.bio_assay_analysis(bio_assay_analysis_id);


--
-- Name: bio_assay_analysis_data_tea bio_assay_analysis_data_t_fk2; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data_tea
    ADD CONSTRAINT bio_assay_analysis_data_t_fk2 FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_experiment(bio_experiment_id);


--
-- Name: bio_assay_analysis_data_tea bio_assay_analysis_data_t_fk3; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data_tea
    ADD CONSTRAINT bio_assay_analysis_data_t_fk3 FOREIGN KEY (bio_assay_platform_id) REFERENCES biomart.bio_assay_platform(bio_assay_platform_id);


--
-- Name: bio_assay_analysis bio_assay_ans_pltfm_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis
    ADD CONSTRAINT bio_assay_ans_pltfm_fk FOREIGN KEY (bio_asy_analysis_pltfm_id) REFERENCES biomart.bio_asy_analysis_pltfm(bio_asy_analysis_pltfm_id);


--
-- Name: bio_assay_sample bio_assay_sample_bio_assay_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_sample
    ADD CONSTRAINT bio_assay_sample_bio_assay_fk FOREIGN KEY (bio_assay_id) REFERENCES biomart.bio_assay(bio_assay_id);


--
-- Name: bio_assay_sample bio_assay_sample_bio_sample_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_sample
    ADD CONSTRAINT bio_assay_sample_bio_sample_fk FOREIGN KEY (bio_sample_id) REFERENCES biomart.bio_sample(bio_sample_id);


--
-- Name: bio_assay_analysis_data bio_asy_ad_fg_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data
    ADD CONSTRAINT bio_asy_ad_fg_fk FOREIGN KEY (bio_assay_feature_group_id) REFERENCES biomart.bio_assay_feature_group(bio_assay_feature_group_id);


--
-- Name: bio_assay_analysis_data_tea bio_asy_ad_tea_fg_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_analysis_data_tea
    ADD CONSTRAINT bio_asy_ad_tea_fg_fk FOREIGN KEY (bio_assay_feature_group_id) REFERENCES biomart.bio_assay_feature_group(bio_assay_feature_group_id);


--
-- Name: bio_asy_analysis_data_ext bio_asy_analysis_data_ext_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_asy_analysis_data_ext
    ADD CONSTRAINT bio_asy_analysis_data_ext_fk FOREIGN KEY (bio_asy_analysis_data_id) REFERENCES biomart.bio_assay_analysis_gwas(bio_asy_analysis_gwas_id);


--
-- Name: bio_assay bio_asy_asy_pfm_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay
    ADD CONSTRAINT bio_asy_asy_pfm_fk FOREIGN KEY (bio_assay_platform_id) REFERENCES biomart.bio_assay_platform(bio_assay_platform_id);


--
-- Name: bio_assay_data bio_asy_dt_ds_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_data
    ADD CONSTRAINT bio_asy_dt_ds_fk FOREIGN KEY (bio_assay_dataset_id) REFERENCES biomart.bio_assay_dataset(bio_assay_dataset_id);


--
-- Name: bio_assay_data_stats bio_asy_dt_fg_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_data_stats
    ADD CONSTRAINT bio_asy_dt_fg_fk FOREIGN KEY (bio_assay_feature_group_id) REFERENCES biomart.bio_assay_feature_group(bio_assay_feature_group_id);


--
-- Name: bio_assay_data_stats bio_asy_dt_stat_exp_s_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_data_stats
    ADD CONSTRAINT bio_asy_dt_stat_exp_s_fk FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_experiment(bio_experiment_id);


--
-- Name: bio_assay_data_stats bio_asy_dt_stats_ds_s_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_data_stats
    ADD CONSTRAINT bio_asy_dt_stats_ds_s_fk FOREIGN KEY (bio_assay_dataset_id) REFERENCES biomart.bio_assay_dataset(bio_assay_dataset_id);


--
-- Name: bio_asy_data_stats_all bio_asy_dt_stats_smp_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_asy_data_stats_all
    ADD CONSTRAINT bio_asy_dt_stats_smp_fk FOREIGN KEY (bio_sample_id) REFERENCES biomart.bio_sample(bio_sample_id);


--
-- Name: bio_assay_data_stats bio_asy_dt_stats_smp_s_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_data_stats
    ADD CONSTRAINT bio_asy_dt_stats_smp_s_fk FOREIGN KEY (bio_sample_id) REFERENCES biomart.bio_sample(bio_sample_id);


--
-- Name: bio_assay_data bio_asy_exp_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_data
    ADD CONSTRAINT bio_asy_exp_fk FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_experiment(bio_experiment_id);


--
-- Name: bio_clinc_trial_time_pt bio_cli_trial_time_trl_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_clinc_trial_time_pt
    ADD CONSTRAINT bio_cli_trial_time_trl_fk FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_clinical_trial(bio_experiment_id);


--
-- Name: bio_clinc_trial_pt_group bio_clinc_trl_pt_grp_exp_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_clinc_trial_pt_group
    ADD CONSTRAINT bio_clinc_trl_pt_grp_exp_fk FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_clinical_trial(bio_experiment_id);


--
-- Name: bio_clinical_trial bio_clinical_trial_bio_experim; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_clinical_trial
    ADD CONSTRAINT bio_clinical_trial_bio_experim FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_experiment(bio_experiment_id);


--
-- Name: bio_clinc_trial_attr bio_clinical_trial_property_bi; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_clinc_trial_attr
    ADD CONSTRAINT bio_clinical_trial_property_bi FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_clinical_trial(bio_experiment_id);


--
-- Name: bio_content_reference bio_content_ref_cont_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_content_reference
    ADD CONSTRAINT bio_content_ref_cont_fk FOREIGN KEY (bio_content_id) REFERENCES biomart.bio_content(bio_file_content_id);


--
-- Name: bio_asy_analysis_dataset bio_data_anl_ds_anl_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_asy_analysis_dataset
    ADD CONSTRAINT bio_data_anl_ds_anl_fk FOREIGN KEY (bio_assay_analysis_id) REFERENCES biomart.bio_assay_analysis(bio_assay_analysis_id);


--
-- Name: bio_asy_analysis_dataset bio_data_anl_ds_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_asy_analysis_dataset
    ADD CONSTRAINT bio_data_anl_ds_fk FOREIGN KEY (bio_assay_dataset_id) REFERENCES biomart.bio_assay_dataset(bio_assay_dataset_id);


--
-- Name: bio_assay_dataset bio_dataset_experiment_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_dataset
    ADD CONSTRAINT bio_dataset_experiment_fk FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_experiment(bio_experiment_id);


--
-- Name: bio_data_compound bio_df_cmp_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_data_compound
    ADD CONSTRAINT bio_df_cmp_fk FOREIGN KEY (bio_compound_id) REFERENCES biomart.bio_compound(bio_compound_id);


--
-- Name: bio_data_disease bio_df_disease_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_data_disease
    ADD CONSTRAINT bio_df_disease_fk FOREIGN KEY (bio_disease_id) REFERENCES biomart.bio_disease(bio_disease_id);


--
-- Name: bio_assay_data bio_exp_data_fact_samp_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay_data
    ADD CONSTRAINT bio_exp_data_fact_samp_fk FOREIGN KEY (bio_sample_id) REFERENCES biomart.bio_sample(bio_sample_id);


--
-- Name: bio_curated_data bio_ext_analys_ext_anl_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_curated_data
    ADD CONSTRAINT bio_ext_analys_ext_anl_fk FOREIGN KEY (bio_curation_dataset_id) REFERENCES biomart.bio_curation_dataset(bio_curation_dataset_id);


--
-- Name: bio_curation_dataset bio_ext_anl_pltfm_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_curation_dataset
    ADD CONSTRAINT bio_ext_anl_pltfm_fk FOREIGN KEY (bio_asy_analysis_pltfm_id) REFERENCES biomart.bio_asy_analysis_pltfm(bio_asy_analysis_pltfm_id);


--
-- Name: bio_lit_alt_data bio_lit_alt_ref_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_lit_alt_data
    ADD CONSTRAINT bio_lit_alt_ref_fk FOREIGN KEY (bio_lit_ref_data_id) REFERENCES biomart.bio_lit_ref_data(bio_lit_ref_data_id);


--
-- Name: bio_lit_amd_data bio_lit_amd_alt_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_lit_amd_data
    ADD CONSTRAINT bio_lit_amd_alt_fk FOREIGN KEY (bio_lit_alt_data_id) REFERENCES biomart.bio_lit_alt_data(bio_lit_alt_data_id);


--
-- Name: bio_data_literature bio_lit_curation_dataset_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_data_literature
    ADD CONSTRAINT bio_lit_curation_dataset_fk FOREIGN KEY (bio_curation_dataset_id) REFERENCES biomart.bio_curation_dataset(bio_curation_dataset_id);


--
-- Name: bio_lit_inh_data bio_lit_inh_ref_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_lit_inh_data
    ADD CONSTRAINT bio_lit_inh_ref_fk FOREIGN KEY (bio_lit_ref_data_id) REFERENCES biomart.bio_lit_ref_data(bio_lit_ref_data_id);


--
-- Name: bio_lit_int_data bio_lit_int_ref_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_lit_int_data
    ADD CONSTRAINT bio_lit_int_ref_fk FOREIGN KEY (bio_lit_ref_data_id) REFERENCES biomart.bio_lit_ref_data(bio_lit_ref_data_id);


--
-- Name: bio_lit_pe_data bio_lit_pe_ref_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_lit_pe_data
    ADD CONSTRAINT bio_lit_pe_ref_fk FOREIGN KEY (bio_lit_ref_data_id) REFERENCES biomart.bio_lit_ref_data(bio_lit_ref_data_id);


--
-- Name: bio_data_correlation bio_marker_link_bio_marker_rel; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_data_correlation
    ADD CONSTRAINT bio_marker_link_bio_marker_rel FOREIGN KEY (bio_data_correl_descr_id) REFERENCES biomart.bio_data_correl_descr(bio_data_correl_descr_id);


--
-- Name: bio_patient bio_patient_bio_clinic_tri_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_patient
    ADD CONSTRAINT bio_patient_bio_clinic_tri_fk FOREIGN KEY (bio_clinical_trial_p_group_id) REFERENCES biomart.bio_clinc_trial_pt_group(bio_clinical_trial_p_group_id);


--
-- Name: bio_patient bio_patient_bio_clinical_trial; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_patient
    ADD CONSTRAINT bio_patient_bio_clinical_trial FOREIGN KEY (bio_experiment_id) REFERENCES biomart.bio_clinical_trial(bio_experiment_id);


--
-- Name: bio_patient bio_patient_bio_subject_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_patient
    ADD CONSTRAINT bio_patient_bio_subject_fk FOREIGN KEY (bio_patient_id) REFERENCES biomart.bio_subject(bio_subject_id);


--
-- Name: bio_patient_event_attr bio_pt_attr_trl_attr_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_patient_event_attr
    ADD CONSTRAINT bio_pt_attr_trl_attr_fk FOREIGN KEY (bio_clinic_trial_attr_id) REFERENCES biomart.bio_clinc_trial_attr(bio_clinc_trial_attr_id);


--
-- Name: bio_patient_event_attr bio_pt_event_attr_evt_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_patient_event_attr
    ADD CONSTRAINT bio_pt_event_attr_evt_fk FOREIGN KEY (bio_patient_event_id) REFERENCES biomart.bio_patient_event(bio_patient_event_id);


--
-- Name: bio_patient_event bio_pt_event_bio_pt_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_patient_event
    ADD CONSTRAINT bio_pt_event_bio_pt_fk FOREIGN KEY (bio_patient_id) REFERENCES biomart.bio_patient(bio_patient_id);


--
-- Name: bio_patient_event bio_pt_event_bio_trl_tp_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_patient_event
    ADD CONSTRAINT bio_pt_event_bio_trl_tp_fk FOREIGN KEY (bio_clinic_trial_timepoint_id) REFERENCES biomart.bio_clinc_trial_time_pt(bio_clinc_trial_tm_pt_id);


--
-- Name: bio_sample bio_sample_bio_subject_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_sample
    ADD CONSTRAINT bio_sample_bio_subject_fk FOREIGN KEY (bio_subject_id) REFERENCES biomart.bio_subject(bio_subject_id);


--
-- Name: bio_sample bio_sample_cl_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_sample
    ADD CONSTRAINT bio_sample_cl_fk FOREIGN KEY (bio_cell_line_id) REFERENCES biomart.bio_cell_line(bio_cell_line_id);


--
-- Name: bio_sample bio_sample_pt_evt_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_sample
    ADD CONSTRAINT bio_sample_pt_evt_fk FOREIGN KEY (bio_patient_event_id) REFERENCES biomart.bio_patient_event(bio_patient_event_id);


--
-- Name: bio_data_taxonomy bio_taxon_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_data_taxonomy
    ADD CONSTRAINT bio_taxon_fk FOREIGN KEY (bio_taxonomy_id) REFERENCES biomart.bio_taxonomy(bio_taxonomy_id);


--
-- Name: bio_cell_line cd_disease_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_cell_line
    ADD CONSTRAINT cd_disease_fk FOREIGN KEY (bio_disease_id) REFERENCES biomart.bio_disease(bio_disease_id);


--
-- Name: bio_assay dataset_experiment_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_assay
    ADD CONSTRAINT dataset_experiment_fk FOREIGN KEY (experiment_id) REFERENCES biomart.bio_experiment(bio_experiment_id);


--
-- Name: bio_content ext_file_cnt_cnt_repo_fk; Type: FK CONSTRAINT; Schema: biomart; Owner: biomart
--

ALTER TABLE ONLY biomart.bio_content
    ADD CONSTRAINT ext_file_cnt_cnt_repo_fk FOREIGN KEY (repository_id) REFERENCES biomart.bio_content_repository(bio_content_repo_id);


--
-- Name: de_chromosomal_region de_chrom_region_gpl_id_fkey; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_chromosomal_region
    ADD CONSTRAINT de_chrom_region_gpl_id_fkey FOREIGN KEY (gpl_id) REFERENCES deapp.de_gpl_info(platform);


--
-- Name: de_metabolite_sub_pway_metab de_met_sub_pw_met_met_id_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_metabolite_sub_pway_metab
    ADD CONSTRAINT de_met_sub_pw_met_met_id_fk FOREIGN KEY (metabolite_id) REFERENCES deapp.de_metabolite_annotation(id);


--
-- Name: de_metabolite_sub_pway_metab de_met_sub_pw_met_sub_pw_id_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_metabolite_sub_pway_metab
    ADD CONSTRAINT de_met_sub_pw_met_sub_pw_id_fk FOREIGN KEY (sub_pathway_id) REFERENCES deapp.de_metabolite_sub_pathways(id);


--
-- Name: de_metabolite_sub_pathways de_met_sub_pw_sup_pw_id_fkey; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_metabolite_sub_pathways
    ADD CONSTRAINT de_met_sub_pw_sup_pw_id_fkey FOREIGN KEY (super_pathway_id) REFERENCES deapp.de_metabolite_super_pathways(id);


--
-- Name: de_rbm_data_annotation_join de_rbm_data_ann_jn_ann_id_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_rbm_data_annotation_join
    ADD CONSTRAINT de_rbm_data_ann_jn_ann_id_fk FOREIGN KEY (annotation_id) REFERENCES deapp.de_rbm_annotation(id) ON DELETE CASCADE;


--
-- Name: de_subject_metabolomics_data de_sj_met_data_met_ann_id_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: tm_cz
--

ALTER TABLE ONLY deapp.de_subject_metabolomics_data
    ADD CONSTRAINT de_sj_met_data_met_ann_id_fk FOREIGN KEY (metabolite_annotation_id) REFERENCES deapp.de_metabolite_annotation(id);


--
-- Name: de_subject_acgh_data de_subj_acgh_region_id_fkey; Type: FK CONSTRAINT; Schema: deapp; Owner: tm_cz
--

ALTER TABLE ONLY deapp.de_subject_acgh_data
    ADD CONSTRAINT de_subj_acgh_region_id_fkey FOREIGN KEY (region_id) REFERENCES deapp.de_chromosomal_region(region_id);


--
-- Name: de_subject_rnaseq_data de_subj_rnaseq_region_id_fkey; Type: FK CONSTRAINT; Schema: deapp; Owner: tm_cz
--

ALTER TABLE ONLY deapp.de_subject_rnaseq_data
    ADD CONSTRAINT de_subj_rnaseq_region_id_fkey FOREIGN KEY (region_id) REFERENCES deapp.de_chromosomal_region(region_id);


--
-- Name: de_variant_population_data de_variant_population_data_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_variant_population_data
    ADD CONSTRAINT de_variant_population_data_fk FOREIGN KEY (dataset_id) REFERENCES deapp.de_variant_dataset(dataset_id);


--
-- Name: de_variant_population_info de_variant_population_info_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_variant_population_info
    ADD CONSTRAINT de_variant_population_info_fk FOREIGN KEY (dataset_id) REFERENCES deapp.de_variant_dataset(dataset_id);


--
-- Name: de_xtrial_child_map dexcm_parent_cd_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_xtrial_child_map
    ADD CONSTRAINT dexcm_parent_cd_fk FOREIGN KEY (parent_cd) REFERENCES deapp.de_xtrial_parent_names(parent_cd);


--
-- Name: de_subject_protein_data fk_protein_annotation_id; Type: FK CONSTRAINT; Schema: deapp; Owner: tm_cz
--

ALTER TABLE ONLY deapp.de_subject_protein_data
    ADD CONSTRAINT fk_protein_annotation_id FOREIGN KEY (protein_annotation_id) REFERENCES deapp.de_protein_annotation(id);


--
-- Name: de_snp_data_by_probe fk_snp_by_probe_probe_id; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_snp_data_by_probe
    ADD CONSTRAINT fk_snp_by_probe_probe_id FOREIGN KEY (probe_id) REFERENCES deapp.de_snp_probe(snp_probe_id);


--
-- Name: de_snp_data_by_probe fk_snp_by_probe_snp_id; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_snp_data_by_probe
    ADD CONSTRAINT fk_snp_by_probe_snp_id FOREIGN KEY (snp_id) REFERENCES deapp.de_snp_info(snp_info_id);


--
-- Name: de_snp_data_by_patient fk_snp_dataset_id; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_snp_data_by_patient
    ADD CONSTRAINT fk_snp_dataset_id FOREIGN KEY (snp_dataset_id) REFERENCES deapp.de_subject_snp_dataset(subject_snp_dataset_id);


--
-- Name: de_snp_data_dataset_loc fk_snp_loc_dataset_id; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_snp_data_dataset_loc
    ADD CONSTRAINT fk_snp_loc_dataset_id FOREIGN KEY (snp_dataset_id) REFERENCES deapp.de_subject_snp_dataset(subject_snp_dataset_id);


--
-- Name: de_snp_probe fk_snp_probe_snp_id; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_snp_probe
    ADD CONSTRAINT fk_snp_probe_snp_id FOREIGN KEY (snp_id) REFERENCES deapp.de_snp_info(snp_info_id);


--
-- Name: de_variant_dataset gpl_id; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_variant_dataset
    ADD CONSTRAINT gpl_id FOREIGN KEY (gpl_id) REFERENCES deapp.de_gpl_info(platform);


--
-- Name: de_two_region_event_gene two_region_event_gene_id_event_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_two_region_event_gene
    ADD CONSTRAINT two_region_event_gene_id_event_fk FOREIGN KEY (event_id) REFERENCES deapp.de_two_region_event(two_region_event_id);


--
-- Name: de_two_region_junction_event two_region_junction_event_id_event_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_two_region_junction_event
    ADD CONSTRAINT two_region_junction_event_id_event_fk FOREIGN KEY (event_id) REFERENCES deapp.de_two_region_event(two_region_event_id);


--
-- Name: de_two_region_junction_event two_region_junction_event_id_junction_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_two_region_junction_event
    ADD CONSTRAINT two_region_junction_event_id_junction_fk FOREIGN KEY (junction_id) REFERENCES deapp.de_two_region_junction(two_region_junction_id);


--
-- Name: de_variant_metadata var_met_dataset_id; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_variant_metadata
    ADD CONSTRAINT var_met_dataset_id FOREIGN KEY (dataset_id) REFERENCES deapp.de_variant_dataset(dataset_id);


--
-- Name: de_variant_subject_detail variant_subject_detail_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_variant_subject_detail
    ADD CONSTRAINT variant_subject_detail_fk FOREIGN KEY (dataset_id) REFERENCES deapp.de_variant_dataset(dataset_id);


--
-- Name: de_variant_subject_idx variant_subject_idx_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_variant_subject_idx
    ADD CONSTRAINT variant_subject_idx_fk FOREIGN KEY (dataset_id) REFERENCES deapp.de_variant_dataset(dataset_id);


--
-- Name: de_variant_subject_summary variant_subject_summary_fk; Type: FK CONSTRAINT; Schema: deapp; Owner: deapp
--

ALTER TABLE ONLY deapp.de_variant_subject_summary
    ADD CONSTRAINT variant_subject_summary_fk FOREIGN KEY (dataset_id) REFERENCES deapp.de_variant_dataset(dataset_id);


--
-- Name: fm_folder_association fk_fm_folder_assoc_fm_folder; Type: FK CONSTRAINT; Schema: fmapp; Owner: fmapp
--

ALTER TABLE ONLY fmapp.fm_folder_association
    ADD CONSTRAINT fk_fm_folder_assoc_fm_folder FOREIGN KEY (folder_id) REFERENCES fmapp.fm_folder(folder_id);


--
-- Name: fm_folder_file_association fk_fm_folder_fm_folder; Type: FK CONSTRAINT; Schema: fmapp; Owner: fmapp
--

ALTER TABLE ONLY fmapp.fm_folder_file_association
    ADD CONSTRAINT fk_fm_folder_fm_folder FOREIGN KEY (folder_id) REFERENCES fmapp.fm_folder(folder_id);


--
-- Name: fm_folder_file_association fk_folder_file_assoc_file; Type: FK CONSTRAINT; Schema: fmapp; Owner: fmapp
--

ALTER TABLE ONLY fmapp.fm_folder_file_association
    ADD CONSTRAINT fk_folder_file_assoc_file FOREIGN KEY (file_id) REFERENCES fmapp.fm_file(file_id);


--
-- Name: set_upload_status fk_up_set_type_id; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.set_upload_status
    ADD CONSTRAINT fk_up_set_type_id FOREIGN KEY (set_type_id) REFERENCES i2b2demodata.set_type(id);


--
-- Name: qt_patient_enc_collection qt_fk_pec_ri; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_patient_enc_collection
    ADD CONSTRAINT qt_fk_pec_ri FOREIGN KEY (result_instance_id) REFERENCES i2b2demodata.qt_query_result_instance(result_instance_id);


--
-- Name: qt_patient_set_collection qt_fk_psc_ri; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_patient_set_collection
    ADD CONSTRAINT qt_fk_psc_ri FOREIGN KEY (result_instance_id) REFERENCES i2b2demodata.qt_query_result_instance(result_instance_id);


--
-- Name: qt_query_instance qt_fk_qi_mid; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_query_instance
    ADD CONSTRAINT qt_fk_qi_mid FOREIGN KEY (query_master_id) REFERENCES i2b2demodata.qt_query_master(query_master_id);


--
-- Name: qt_query_instance qt_fk_qi_stid; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_query_instance
    ADD CONSTRAINT qt_fk_qi_stid FOREIGN KEY (status_type_id) REFERENCES i2b2demodata.qt_query_status_type(status_type_id);


--
-- Name: qt_query_result_instance qt_fk_qri_rid; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_query_result_instance
    ADD CONSTRAINT qt_fk_qri_rid FOREIGN KEY (query_instance_id) REFERENCES i2b2demodata.qt_query_instance(query_instance_id);


--
-- Name: qt_query_result_instance qt_fk_qri_rtid; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_query_result_instance
    ADD CONSTRAINT qt_fk_qri_rtid FOREIGN KEY (result_type_id) REFERENCES i2b2demodata.qt_query_result_type(result_type_id);


--
-- Name: qt_query_result_instance qt_fk_qri_stid; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_query_result_instance
    ADD CONSTRAINT qt_fk_qri_stid FOREIGN KEY (status_type_id) REFERENCES i2b2demodata.qt_query_status_type(status_type_id);


--
-- Name: qt_xml_result qt_fk_xmlr_riid; Type: FK CONSTRAINT; Schema: i2b2demodata; Owner: i2b2demodata
--

ALTER TABLE ONLY i2b2demodata.qt_xml_result
    ADD CONSTRAINT qt_fk_xmlr_riid FOREIGN KEY (result_instance_id) REFERENCES i2b2demodata.qt_query_result_instance(result_instance_id);


--
-- Name: search_taxonomy_rels fk_search_tax_rels_child; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_taxonomy_rels
    ADD CONSTRAINT fk_search_tax_rels_child FOREIGN KEY (child_id) REFERENCES searchapp.search_taxonomy(term_id);


--
-- Name: search_taxonomy_rels fk_search_tax_rels_parent; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_taxonomy_rels
    ADD CONSTRAINT fk_search_tax_rels_parent FOREIGN KEY (parent_id) REFERENCES searchapp.search_taxonomy(term_id);


--
-- Name: search_taxonomy fk_search_tax_search_keyword; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_taxonomy
    ADD CONSTRAINT fk_search_tax_search_keyword FOREIGN KEY (search_keyword_id) REFERENCES searchapp.search_keyword(search_keyword_id);


--
-- Name: search_role_auth_user fkfb14ef79287e0cac; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_role_auth_user
    ADD CONSTRAINT fkfb14ef79287e0cac FOREIGN KEY (authorities_id) REFERENCES searchapp.search_auth_user(id);


--
-- Name: search_role_auth_user fkfb14ef798f01f561; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_role_auth_user
    ADD CONSTRAINT fkfb14ef798f01f561 FOREIGN KEY (people_id) REFERENCES searchapp.search_role(id);


--
-- Name: search_gene_signature gene_sig_create_auth_user_fk1; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_gene_signature
    ADD CONSTRAINT gene_sig_create_auth_user_fk1 FOREIGN KEY (created_by_auth_user_id) REFERENCES searchapp.search_auth_user(id);


--
-- Name: search_gene_signature gene_sig_file_schema_fk1; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_gene_signature
    ADD CONSTRAINT gene_sig_file_schema_fk1 FOREIGN KEY (search_gene_sig_file_schema_id) REFERENCES searchapp.search_gene_sig_file_schema(search_gene_sig_file_schema_id);


--
-- Name: search_gene_signature gene_sig_mod_auth_user_fk1; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_gene_signature
    ADD CONSTRAINT gene_sig_mod_auth_user_fk1 FOREIGN KEY (modified_by_auth_user_id) REFERENCES searchapp.search_auth_user(id);


--
-- Name: search_gene_signature gene_sig_parent_fk1; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_gene_signature
    ADD CONSTRAINT gene_sig_parent_fk1 FOREIGN KEY (parent_gene_signature_id) REFERENCES searchapp.search_gene_signature(search_gene_signature_id);


--
-- Name: plugin_module plugin_module_plugin_fk1; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.plugin_module
    ADD CONSTRAINT plugin_module_plugin_fk1 FOREIGN KEY (plugin_seq) REFERENCES searchapp.plugin(plugin_seq);


--
-- Name: saved_faceted_search saved_faceted_search_user_id; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.saved_faceted_search
    ADD CONSTRAINT saved_faceted_search_user_id FOREIGN KEY (user_id) REFERENCES searchapp.search_auth_user(id);


--
-- Name: search_auth_sec_object_access sch_sec_a_u_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_sec_object_access
    ADD CONSTRAINT sch_sec_a_u_fk FOREIGN KEY (auth_principal_id) REFERENCES searchapp.search_auth_principal(id);


--
-- Name: search_auth_sec_object_access sch_sec_s_a_l_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_sec_object_access
    ADD CONSTRAINT sch_sec_s_a_l_fk FOREIGN KEY (secure_access_level_id) REFERENCES searchapp.search_sec_access_level(search_sec_access_level_id);


--
-- Name: search_auth_sec_object_access sch_sec_s_o_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_sec_object_access
    ADD CONSTRAINT sch_sec_s_o_fk FOREIGN KEY (secure_object_id) REFERENCES searchapp.search_secure_object(search_secure_object_id);


--
-- Name: search_auth_group_member sch_user_gp_m_grp_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_group_member
    ADD CONSTRAINT sch_user_gp_m_grp_fk FOREIGN KEY (auth_group_id) REFERENCES searchapp.search_auth_group(id);


--
-- Name: search_auth_group_member sch_user_gp_m_usr_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_group_member
    ADD CONSTRAINT sch_user_gp_m_usr_fk FOREIGN KEY (auth_user_id) REFERENCES searchapp.search_auth_principal(id);


--
-- Name: search_keyword_term search_kw_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_keyword_term
    ADD CONSTRAINT search_kw_fk FOREIGN KEY (search_keyword_id) REFERENCES searchapp.search_keyword(search_keyword_id);


--
-- Name: search_auth_user_sec_access search_sec_a_u_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_user_sec_access
    ADD CONSTRAINT search_sec_a_u_fk FOREIGN KEY (search_auth_user_id) REFERENCES searchapp.search_auth_user(id);


--
-- Name: search_auth_user_sec_access search_sec_s_a_l_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_user_sec_access
    ADD CONSTRAINT search_sec_s_a_l_fk FOREIGN KEY (search_sec_access_level_id) REFERENCES searchapp.search_sec_access_level(search_sec_access_level_id);


--
-- Name: search_auth_user_sec_access search_sec_s_o_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_user_sec_access
    ADD CONSTRAINT search_sec_s_o_fk FOREIGN KEY (search_secure_object_id) REFERENCES searchapp.search_secure_object(search_secure_object_id);


--
-- Name: search_auth_group sh_auth_gp_id_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_group
    ADD CONSTRAINT sh_auth_gp_id_fk FOREIGN KEY (id) REFERENCES searchapp.search_auth_principal(id);


--
-- Name: search_auth_user sh_auth_user_id_fk; Type: FK CONSTRAINT; Schema: searchapp; Owner: searchapp
--

ALTER TABLE ONLY searchapp.search_auth_user
    ADD CONSTRAINT sh_auth_user_id_fk FOREIGN KEY (id) REFERENCES searchapp.search_auth_principal(id);


--
-- Name: az_test_run az_test_run_cz_dw_version_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.az_test_run
    ADD CONSTRAINT az_test_run_cz_dw_version_fk1 FOREIGN KEY (dw_version_id) REFERENCES tm_cz.cz_dw_version(dw_version_id);


--
-- Name: az_test_run az_test_run_cz_test_categ_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.az_test_run
    ADD CONSTRAINT az_test_run_cz_test_categ_fk1 FOREIGN KEY (test_category_id) REFERENCES tm_cz.cz_test_category(test_category_id);


--
-- Name: az_test_step_act_result az_test_step_act_result_az_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.az_test_step_act_result
    ADD CONSTRAINT az_test_step_act_result_az_fk1 FOREIGN KEY (test_step_run_id) REFERENCES tm_cz.az_test_step_run(test_step_run_id);


--
-- Name: az_test_step_run az_test_step_run_cz_job_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.az_test_step_run
    ADD CONSTRAINT az_test_step_run_cz_job_fk1 FOREIGN KEY (test_id) REFERENCES tm_cz.cz_test(test_id);


--
-- Name: az_test_step_run az_tst_step_run_az_test_ru_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.az_test_step_run
    ADD CONSTRAINT az_tst_step_run_az_test_ru_fk1 FOREIGN KEY (test_run_id) REFERENCES tm_cz.az_test_run(test_run_id);


--
-- Name: cz_data_file cz_data_file_cz_data_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.cz_data_file
    ADD CONSTRAINT cz_data_file_cz_data_fk1 FOREIGN KEY (data_id) REFERENCES tm_cz.cz_data(data_id);


--
-- Name: cz_test_category cz_test_category_cz_perso_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.cz_test_category
    ADD CONSTRAINT cz_test_category_cz_perso_fk1 FOREIGN KEY (person_id) REFERENCES tm_cz.cz_person(person_id);


--
-- Name: cz_test cz_test_cz_test_category_fk1; Type: FK CONSTRAINT; Schema: tm_cz; Owner: tm_cz
--

ALTER TABLE ONLY tm_cz.cz_test
    ADD CONSTRAINT cz_test_cz_test_category_fk1 FOREIGN KEY (test_category_id) REFERENCES tm_cz.cz_test_category(test_category_id);


--
-- Name: batch_job_execution_context job_exec_ctx_fk; Type: FK CONSTRAINT; Schema: ts_batch; Owner: ts_batch
--

ALTER TABLE ONLY ts_batch.batch_job_execution_context
    ADD CONSTRAINT job_exec_ctx_fk FOREIGN KEY (job_execution_id) REFERENCES ts_batch.batch_job_execution(job_execution_id);


--
-- Name: batch_job_execution_params job_exec_params_fk; Type: FK CONSTRAINT; Schema: ts_batch; Owner: ts_batch
--

ALTER TABLE ONLY ts_batch.batch_job_execution_params
    ADD CONSTRAINT job_exec_params_fk FOREIGN KEY (job_execution_id) REFERENCES ts_batch.batch_job_execution(job_execution_id);


--
-- Name: batch_step_execution job_exec_step_fk; Type: FK CONSTRAINT; Schema: ts_batch; Owner: ts_batch
--

ALTER TABLE ONLY ts_batch.batch_step_execution
    ADD CONSTRAINT job_exec_step_fk FOREIGN KEY (job_execution_id) REFERENCES ts_batch.batch_job_execution(job_execution_id);


--
-- Name: batch_job_execution job_inst_exec_fk; Type: FK CONSTRAINT; Schema: ts_batch; Owner: ts_batch
--

ALTER TABLE ONLY ts_batch.batch_job_execution
    ADD CONSTRAINT job_inst_exec_fk FOREIGN KEY (job_instance_id) REFERENCES ts_batch.batch_job_instance(job_instance_id);


--
-- Name: batch_step_execution_context step_exec_ctx_fk; Type: FK CONSTRAINT; Schema: ts_batch; Owner: ts_batch
--

ALTER TABLE ONLY ts_batch.batch_step_execution_context
    ADD CONSTRAINT step_exec_ctx_fk FOREIGN KEY (step_execution_id) REFERENCES ts_batch.batch_step_execution(step_execution_id);


--
-- Name: SCHEMA amapp; Type: ACL; Schema: -; Owner: amapp
--

GRANT ALL ON SCHEMA amapp TO tm_cz;
GRANT USAGE ON SCHEMA amapp TO biomart_user;


--
-- Name: SCHEMA biomart; Type: ACL; Schema: -; Owner: biomart
--

GRANT ALL ON SCHEMA biomart TO tm_cz;
GRANT USAGE ON SCHEMA biomart TO biomart_user;


--
-- Name: SCHEMA biomart_user; Type: ACL; Schema: -; Owner: biomart_user
--

GRANT ALL ON SCHEMA biomart_user TO tm_cz;


--
-- Name: SCHEMA deapp; Type: ACL; Schema: -; Owner: deapp
--

GRANT ALL ON SCHEMA deapp TO tm_cz;
GRANT USAGE ON SCHEMA deapp TO biomart_user;
GRANT USAGE ON SCHEMA deapp TO tm_lz;


--
-- Name: SCHEMA fmapp; Type: ACL; Schema: -; Owner: fmapp
--

GRANT ALL ON SCHEMA fmapp TO tm_cz;
GRANT USAGE ON SCHEMA fmapp TO biomart_user;


--
-- Name: SCHEMA galaxy; Type: ACL; Schema: -; Owner: galaxy
--

GRANT ALL ON SCHEMA galaxy TO tm_cz;
GRANT USAGE ON SCHEMA galaxy TO biomart_user;


--
-- Name: SCHEMA i2b2demodata; Type: ACL; Schema: -; Owner: i2b2demodata
--

GRANT ALL ON SCHEMA i2b2demodata TO tm_cz;
GRANT USAGE ON SCHEMA i2b2demodata TO biomart_user;


--
-- Name: SCHEMA i2b2metadata; Type: ACL; Schema: -; Owner: i2b2metadata
--

GRANT ALL ON SCHEMA i2b2metadata TO tm_cz;
GRANT USAGE ON SCHEMA i2b2metadata TO biomart_user;


--
-- Name: SCHEMA searchapp; Type: ACL; Schema: -; Owner: searchapp
--

GRANT ALL ON SCHEMA searchapp TO tm_cz;
GRANT USAGE ON SCHEMA searchapp TO biomart_user;


--
-- Name: SCHEMA tm_lz; Type: ACL; Schema: -; Owner: tm_lz
--

GRANT ALL ON SCHEMA tm_lz TO tm_cz;


--
-- Name: SCHEMA tm_wz; Type: ACL; Schema: -; Owner: tm_wz
--

GRANT ALL ON SCHEMA tm_wz TO tm_cz;


--
-- Name: SCHEMA ts_batch; Type: ACL; Schema: -; Owner: ts_batch
--

GRANT ALL ON SCHEMA ts_batch TO tm_cz;


--
-- Name: FUNCTION am_tag_value_uid(tag_value_id bigint); Type: ACL; Schema: amapp; Owner: amapp
--

REVOKE ALL ON FUNCTION amapp.am_tag_value_uid(tag_value_id bigint) FROM PUBLIC;
GRANT ALL ON FUNCTION amapp.am_tag_value_uid(tag_value_id bigint) TO tm_cz;
GRANT ALL ON FUNCTION amapp.am_tag_value_uid(tag_value_id bigint) TO biomart_user;


--
-- Name: FUNCTION tf_trg_am_tag_item_id(); Type: ACL; Schema: amapp; Owner: amapp
--

REVOKE ALL ON FUNCTION amapp.tf_trg_am_tag_item_id() FROM PUBLIC;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_item_id() TO tm_cz;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_item_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_am_tag_temp_assoc_id(); Type: ACL; Schema: amapp; Owner: amapp
--

REVOKE ALL ON FUNCTION amapp.tf_trg_am_tag_temp_assoc_id() FROM PUBLIC;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_temp_assoc_id() TO tm_cz;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_temp_assoc_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_am_tag_template_id(); Type: ACL; Schema: amapp; Owner: amapp
--

REVOKE ALL ON FUNCTION amapp.tf_trg_am_tag_template_id() FROM PUBLIC;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_template_id() TO tm_cz;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_template_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_am_tag_value_id(); Type: ACL; Schema: amapp; Owner: amapp
--

REVOKE ALL ON FUNCTION amapp.tf_trg_am_tag_value_id() FROM PUBLIC;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_value_id() TO tm_cz;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_value_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_am_tag_value_uid(); Type: ACL; Schema: amapp; Owner: amapp
--

REVOKE ALL ON FUNCTION amapp.tf_trg_am_tag_value_uid() FROM PUBLIC;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_value_uid() TO tm_cz;
GRANT ALL ON FUNCTION amapp.tf_trg_am_tag_value_uid() TO biomart_user;


--
-- Name: FUNCTION bio_assay_analysis_uid(analysis_name character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_assay_analysis_uid(analysis_name character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_assay_analysis_uid(analysis_name character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_assay_analysis_uid(analysis_name character varying) TO biomart_user;


--
-- Name: FUNCTION bio_assay_platform_uid(platform_name character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_assay_platform_uid(platform_name character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_assay_platform_uid(platform_name character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_assay_platform_uid(platform_name character varying) TO biomart_user;


--
-- Name: FUNCTION bio_asy_analysis_pltfm_uid(platform_name character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_asy_analysis_pltfm_uid(platform_name character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_asy_analysis_pltfm_uid(platform_name character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_asy_analysis_pltfm_uid(platform_name character varying) TO biomart_user;


--
-- Name: FUNCTION bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying) TO biomart_user;


--
-- Name: FUNCTION bio_curation_dataset_uid(bio_curation_type character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_curation_dataset_uid(bio_curation_type character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_curation_dataset_uid(bio_curation_type character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_curation_dataset_uid(bio_curation_type character varying) TO biomart_user;


--
-- Name: FUNCTION bio_disease_uid(mesh_code character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_disease_uid(mesh_code character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_disease_uid(mesh_code character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_disease_uid(mesh_code character varying) TO biomart_user;


--
-- Name: FUNCTION bio_experiment_uid(primary_id character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_experiment_uid(primary_id character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_experiment_uid(primary_id character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_experiment_uid(primary_id character varying) TO biomart_user;


--
-- Name: FUNCTION bio_jub_oncol_data_uid(record_id numeric, bio_curation_name character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_jub_oncol_data_uid(record_id numeric, bio_curation_name character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_jub_oncol_data_uid(record_id numeric, bio_curation_name character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_jub_oncol_data_uid(record_id numeric, bio_curation_name character varying) TO biomart_user;


--
-- Name: FUNCTION bio_jub_oncol_sum_data_uid(record_id numeric, bio_curation_name character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.bio_jub_oncol_sum_data_uid(record_id numeric, bio_curation_name character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.bio_jub_oncol_sum_data_uid(record_id numeric, bio_curation_name character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.bio_jub_oncol_sum_data_uid(record_id numeric, bio_curation_name character varying) TO biomart_user;


--
-- Name: FUNCTION biomarker_gene_uid(gene_id character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.biomarker_gene_uid(gene_id character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.biomarker_gene_uid(gene_id character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.biomarker_gene_uid(gene_id character varying) TO biomart_user;


--
-- Name: FUNCTION biomarker_pathway_uid(p_source character varying, pathway_id character varying); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.biomarker_pathway_uid(p_source character varying, pathway_id character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.biomarker_pathway_uid(p_source character varying, pathway_id character varying) TO tm_cz;
GRANT ALL ON FUNCTION biomart.biomarker_pathway_uid(p_source character varying, pathway_id character varying) TO biomart_user;


--
-- Name: FUNCTION cum_normal_dist(foldchg numeric, mu numeric, sigma numeric); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.cum_normal_dist(foldchg numeric, mu numeric, sigma numeric) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.cum_normal_dist(foldchg numeric, mu numeric, sigma numeric) TO tm_cz;
GRANT ALL ON FUNCTION biomart.cum_normal_dist(foldchg numeric, mu numeric, sigma numeric) TO biomart_user;


--
-- Name: FUNCTION fract_error_dist(norminput numeric); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.fract_error_dist(norminput numeric) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.fract_error_dist(norminput numeric) TO tm_cz;
GRANT ALL ON FUNCTION biomart.fract_error_dist(norminput numeric) TO biomart_user;


--
-- Name: FUNCTION refresh_bio_lit_int_model_mv(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.refresh_bio_lit_int_model_mv() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.refresh_bio_lit_int_model_mv() TO tm_cz;
GRANT ALL ON FUNCTION biomart.refresh_bio_lit_int_model_mv() TO biomart_user;


--
-- Name: FUNCTION refresh_bio_marker_correl_mv(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.refresh_bio_marker_correl_mv() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.refresh_bio_marker_correl_mv() TO tm_cz;
GRANT ALL ON FUNCTION biomart.refresh_bio_marker_correl_mv() TO biomart_user;


--
-- Name: FUNCTION tea_npv_precompute(foldchg numeric, mu numeric, sigma numeric); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tea_npv_precompute(foldchg numeric, mu numeric, sigma numeric) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tea_npv_precompute(foldchg numeric, mu numeric, sigma numeric) TO tm_cz;
GRANT ALL ON FUNCTION biomart.tea_npv_precompute(foldchg numeric, mu numeric, sigma numeric) TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_ad_hoc_prop_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_ad_hoc_prop_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_ad_hoc_prop_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_ad_hoc_prop_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_analysis_al_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_analysis_al_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_analysis_al_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_analysis_al_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_analysis_attribute_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_analysis_attribute_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_analysis_attribute_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_analysis_attribute_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_analysis_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_analysis_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_analysis_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_analysis_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_analysis_uid(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_analysis_uid() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_analysis_uid() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_analysis_uid() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_cohort_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_cohort_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_cohort_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_cohort_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_dataset_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_dataset_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_dataset_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_dataset_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_f_g_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_f_g_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_f_g_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_f_g_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_assay_platform_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_assay_platform_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_platform_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_assay_platform_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_asy_adi_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_asy_adi_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_adi_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_adi_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_asy_analysis_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_asy_analysis_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_analysis_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_analysis_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_asy_analysis_pltfm_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_asy_analysis_pltfm_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_analysis_pltfm_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_analysis_pltfm_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_asy_dt_stats_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_asy_dt_stats_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_dt_stats_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_asy_dt_stats_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_cell_line_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_cell_line_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_cell_line_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_cell_line_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_cl_trl_time_pt_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_cl_trl_time_pt_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_cl_trl_time_pt_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_cl_trl_time_pt_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_clin_trl_pt_grp_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_clin_trl_pt_grp_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_clin_trl_pt_grp_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_clin_trl_pt_grp_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_cln_trl_attr_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_cln_trl_attr_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_cln_trl_attr_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_cln_trl_attr_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_compound_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_compound_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_compound_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_compound_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_concept_code_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_concept_code_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_concept_code_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_concept_code_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_content_ref_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_content_ref_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_content_ref_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_content_ref_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_content_repo_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_content_repo_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_content_repo_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_content_repo_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_curation_dataset_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_curation_dataset_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_curation_dataset_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_curation_dataset_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_data_attr_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_data_attr_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_data_attr_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_data_attr_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_data_correl_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_data_correl_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_data_correl_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_data_correl_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_data_ext_code_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_data_ext_code_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_data_ext_code_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_data_ext_code_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_disease_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_disease_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_disease_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_disease_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_experiment_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_experiment_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_experiment_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_experiment_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_experiment_uid(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_experiment_uid() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_experiment_uid() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_experiment_uid() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_file_content_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_file_content_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_file_content_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_file_content_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_alt_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_alt_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_alt_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_alt_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_amd_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_amd_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_amd_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_amd_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_inh_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_inh_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_inh_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_inh_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_int_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_int_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_int_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_int_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_model_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_model_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_model_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_model_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_pe_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_pe_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_pe_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_pe_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_ref_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_ref_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_ref_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_ref_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_lit_sum_data_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_lit_sum_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_sum_data_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_lit_sum_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_marker_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_marker_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_marker_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_marker_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_mkr_correl_descr_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_mkr_correl_descr_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_mkr_correl_descr_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_mkr_correl_descr_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_observation_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_observation_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_observation_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_observation_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_patient_event_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_patient_event_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_patient_event_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_patient_event_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_patient_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_patient_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_patient_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_patient_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_pt_evt_attr_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_pt_evt_attr_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_pt_evt_attr_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_pt_evt_attr_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_sample_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_sample_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_sample_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_sample_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_subject_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_subject_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_subject_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_subject_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_bio_taxon_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_bio_taxon_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_taxon_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_bio_taxon_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_ctd2_clin_inhib_effect(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_ctd2_clin_inhib_effect() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_clin_inhib_effect() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_clin_inhib_effect() TO biomart_user;


--
-- Name: FUNCTION tf_trg_ctd2_disease(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_ctd2_disease() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_disease() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_disease() TO biomart_user;


--
-- Name: FUNCTION tf_trg_ctd2_inhib_details(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_ctd2_inhib_details() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_inhib_details() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_inhib_details() TO biomart_user;


--
-- Name: FUNCTION tf_trg_ctd2_study_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_ctd2_study_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_study_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_study_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_ctd2_trial_details(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trg_ctd2_trial_details() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_trial_details() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trg_ctd2_trial_details() TO biomart_user;


--
-- Name: FUNCTION tf_trig_clinical_trial_design_id(); Type: ACL; Schema: biomart; Owner: biomart
--

REVOKE ALL ON FUNCTION biomart.tf_trig_clinical_trial_design_id() FROM PUBLIC;
GRANT ALL ON FUNCTION biomart.tf_trig_clinical_trial_design_id() TO tm_cz;
GRANT ALL ON FUNCTION biomart.tf_trig_clinical_trial_design_id() TO biomart_user;


--
-- Name: FUNCTION i2b2_bulk_add_search_term(currentjobid bigint); Type: ACL; Schema: biomart_user; Owner: biomart_user
--

REVOKE ALL ON FUNCTION biomart_user.i2b2_bulk_add_search_term(currentjobid bigint) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart_user.i2b2_bulk_add_search_term(currentjobid bigint) TO tm_cz;


--
-- Name: FUNCTION i2b2_metabolomics_zscore_calc(trial_id character varying, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric); Type: ACL; Schema: biomart_user; Owner: biomart_user
--

REVOKE ALL ON FUNCTION biomart_user.i2b2_metabolomics_zscore_calc(trial_id character varying, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart_user.i2b2_metabolomics_zscore_calc(trial_id character varying, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric) TO tm_cz;


--
-- Name: FUNCTION instr(character varying, character varying, character varying); Type: ACL; Schema: biomart_user; Owner: biomart_user
--

REVOKE ALL ON FUNCTION biomart_user.instr(character varying, character varying, character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart_user.instr(character varying, character varying, character varying) TO tm_cz;


--
-- Name: FUNCTION instr(string character varying, string_to_search character varying, beg_index integer, occur_index integer); Type: ACL; Schema: biomart_user; Owner: biomart_user
--

REVOKE ALL ON FUNCTION biomart_user.instr(string character varying, string_to_search character varying, beg_index integer, occur_index integer) FROM PUBLIC;
GRANT ALL ON FUNCTION biomart_user.instr(string character varying, string_to_search character varying, beg_index integer, occur_index integer) TO tm_cz;


--
-- Name: FUNCTION dump_table_to_csv(p_tname character varying, p_dir character varying, p_filename character varying); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.dump_table_to_csv(p_tname character varying, p_dir character varying, p_filename character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.dump_table_to_csv(p_tname character varying, p_dir character varying, p_filename character varying) TO tm_cz;
GRANT ALL ON FUNCTION deapp.dump_table_to_csv(p_tname character varying, p_dir character varying, p_filename character varying) TO biomart_user;


--
-- Name: FUNCTION i2b2_process_rna_seq_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, OUT rtn_code numeric); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.i2b2_process_rna_seq_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, OUT rtn_code numeric) FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.i2b2_process_rna_seq_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, OUT rtn_code numeric) TO tm_cz;
GRANT ALL ON FUNCTION deapp.i2b2_process_rna_seq_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, OUT rtn_code numeric) TO biomart_user;


--
-- Name: FUNCTION protein_comparison_qry(patient_ids character varying, sample_types character varying, pathway_uid1 character varying, timepoints character varying, INOUT cv_1 refcursor); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.protein_comparison_qry(patient_ids character varying, sample_types character varying, pathway_uid1 character varying, timepoints character varying, INOUT cv_1 refcursor) FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.protein_comparison_qry(patient_ids character varying, sample_types character varying, pathway_uid1 character varying, timepoints character varying, INOUT cv_1 refcursor) TO tm_cz;
GRANT ALL ON FUNCTION deapp.protein_comparison_qry(patient_ids character varying, sample_types character varying, pathway_uid1 character varying, timepoints character varying, INOUT cv_1 refcursor) TO biomart_user;


--
-- Name: FUNCTION protein_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, sample_types1 character varying, sample_types2 character varying, pathway_uid1 character varying, pathway_uid2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.protein_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, sample_types1 character varying, sample_types2 character varying, pathway_uid1 character varying, pathway_uid2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor) FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.protein_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, sample_types1 character varying, sample_types2 character varying, pathway_uid1 character varying, pathway_uid2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor) TO tm_cz;
GRANT ALL ON FUNCTION deapp.protein_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, sample_types1 character varying, sample_types2 character varying, pathway_uid1 character varying, pathway_uid2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor) TO biomart_user;


--
-- Name: FUNCTION rbm_comparison_qry(patient_ids character varying, concept_cds character varying, timepoints character varying, INOUT cv_1 refcursor); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.rbm_comparison_qry(patient_ids character varying, concept_cds character varying, timepoints character varying, INOUT cv_1 refcursor) FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.rbm_comparison_qry(patient_ids character varying, concept_cds character varying, timepoints character varying, INOUT cv_1 refcursor) TO tm_cz;
GRANT ALL ON FUNCTION deapp.rbm_comparison_qry(patient_ids character varying, concept_cds character varying, timepoints character varying, INOUT cv_1 refcursor) TO biomart_user;


--
-- Name: FUNCTION rbm_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, concept_cds1 character varying, concept_cds2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.rbm_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, concept_cds1 character varying, concept_cds2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor) FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.rbm_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, concept_cds1 character varying, concept_cds2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor) TO tm_cz;
GRANT ALL ON FUNCTION deapp.rbm_dbl_comp_qry(patient_ids1 character varying, patient_ids2 character varying, concept_cds1 character varying, concept_cds2 character varying, timepoints1 character varying, timepoints2 character varying, INOUT cv_1 refcursor) TO biomart_user;


--
-- Name: FUNCTION tf_de_parent_cd_trg(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_de_parent_cd_trg() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_de_parent_cd_trg() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_de_parent_cd_trg() TO biomart_user;


--
-- Name: FUNCTION tf_rbm_id_trigger(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_rbm_id_trigger() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_rbm_id_trigger() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_rbm_id_trigger() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_gene_source_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_gene_source_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_gene_source_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_gene_source_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_mrna_annotation_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_mrna_annotation_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_mrna_annotation_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_mrna_annotation_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_pathway_gene_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_pathway_gene_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_pathway_gene_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_pathway_gene_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_pathway_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_pathway_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_pathway_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_pathway_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_snp_info_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_snp_info_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_snp_info_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_snp_info_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_snp_probe_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_snp_probe_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_snp_probe_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_snp_probe_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_snp_probe_sorted_def_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_snp_probe_sorted_def_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_snp_probe_sorted_def_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_snp_probe_sorted_def_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_subj_rbm_data_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_subj_rbm_data_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_subj_rbm_data_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_subj_rbm_data_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_subject_snp_dataset_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_subject_snp_dataset_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_subject_snp_dataset_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_subject_snp_dataset_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_de_subject_sorted_def_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_de_subject_sorted_def_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_de_subject_sorted_def_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_de_subject_sorted_def_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_snp_data_by_patient_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_snp_data_by_patient_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_data_by_patient_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_data_by_patient_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_snp_data_by_probe_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_snp_data_by_probe_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_data_by_probe_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_data_by_probe_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_snp_data_dataset_loc_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_snp_data_dataset_loc_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_data_dataset_loc_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_data_dataset_loc_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_snp_subject_sorted_def_id(); Type: ACL; Schema: deapp; Owner: deapp
--

REVOKE ALL ON FUNCTION deapp.tf_trg_snp_subject_sorted_def_id() FROM PUBLIC;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_subject_sorted_def_id() TO tm_cz;
GRANT ALL ON FUNCTION deapp.tf_trg_snp_subject_sorted_def_id() TO biomart_user;


--
-- Name: FUNCTION fm_file_uid(file_id character varying); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.fm_file_uid(file_id character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.fm_file_uid(file_id character varying) TO tm_cz;
GRANT ALL ON FUNCTION fmapp.fm_file_uid(file_id character varying) TO biomart_user;


--
-- Name: FUNCTION fm_folder_uid(folder_id numeric); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.fm_folder_uid(folder_id numeric) FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.fm_folder_uid(folder_id numeric) TO tm_cz;
GRANT ALL ON FUNCTION fmapp.fm_folder_uid(folder_id numeric) TO biomart_user;


--
-- Name: FUNCTION fm_get_folder_full_name(p_folder_id bigint); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.fm_get_folder_full_name(p_folder_id bigint) FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.fm_get_folder_full_name(p_folder_id bigint) TO tm_cz;
GRANT ALL ON FUNCTION fmapp.fm_get_folder_full_name(p_folder_id bigint) TO biomart_user;


--
-- Name: FUNCTION fm_update_folder_full_name(); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.fm_update_folder_full_name() FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.fm_update_folder_full_name() TO tm_cz;
GRANT ALL ON FUNCTION fmapp.fm_update_folder_full_name() TO biomart_user;


--
-- Name: FUNCTION tf_trg_fm_file_id(); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.tf_trg_fm_file_id() FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_file_id() TO tm_cz;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_file_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_fm_file_uid(); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.tf_trg_fm_file_uid() FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_file_uid() TO tm_cz;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_file_uid() TO biomart_user;


--
-- Name: FUNCTION tf_trg_fm_folder_id(); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.tf_trg_fm_folder_id() FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_folder_id() TO tm_cz;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_folder_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_fm_folder_uid(); Type: ACL; Schema: fmapp; Owner: fmapp
--

REVOKE ALL ON FUNCTION fmapp.tf_trg_fm_folder_uid() FROM PUBLIC;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_folder_uid() TO tm_cz;
GRANT ALL ON FUNCTION fmapp.tf_trg_fm_folder_uid() TO biomart_user;


--
-- Name: FUNCTION create_temp_concept_table(tempconcepttablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_concept_table(tempconcepttablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_concept_table(tempconcepttablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_concept_table(tempconcepttablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION create_temp_eid_table(temppatientmappingtablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_eid_table(temppatientmappingtablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_eid_table(temppatientmappingtablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_eid_table(temppatientmappingtablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION create_temp_modifier_table(tempmodifiertablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_modifier_table(tempmodifiertablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_modifier_table(tempmodifiertablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_modifier_table(tempmodifiertablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION create_temp_patient_table(temppatientdimensiontablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_patient_table(temppatientdimensiontablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_patient_table(temppatientdimensiontablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_patient_table(temppatientdimensiontablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION create_temp_pid_table(temppatientmappingtablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_pid_table(temppatientmappingtablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_pid_table(temppatientmappingtablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_pid_table(temppatientmappingtablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION create_temp_provider_table(tempprovidertablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_provider_table(tempprovidertablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_provider_table(tempprovidertablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_provider_table(tempprovidertablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION create_temp_table(temptablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_table(temptablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_table(temptablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_table(temptablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION create_temp_visit_table(temptablename character varying, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.create_temp_visit_table(temptablename character varying, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_visit_table(temptablename character varying, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.create_temp_visit_table(temptablename character varying, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION insert_concept_fromtemp(tempconcepttablename character varying, upload_id numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.insert_concept_fromtemp(tempconcepttablename character varying, upload_id numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.insert_concept_fromtemp(tempconcepttablename character varying, upload_id numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.insert_concept_fromtemp(tempconcepttablename character varying, upload_id numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION insert_eid_map_fromtemp(tempeidtablename character varying, upload_id numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.insert_eid_map_fromtemp(tempeidtablename character varying, upload_id numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.insert_eid_map_fromtemp(tempeidtablename character varying, upload_id numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.insert_eid_map_fromtemp(tempeidtablename character varying, upload_id numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION insert_encountervisit_fromtemp(temptablename character varying, upload_id numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.insert_encountervisit_fromtemp(temptablename character varying, upload_id numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.insert_encountervisit_fromtemp(temptablename character varying, upload_id numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.insert_encountervisit_fromtemp(temptablename character varying, upload_id numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION insert_modifier_fromtemp(tempmodifiertablename character varying, upload_id numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.insert_modifier_fromtemp(tempmodifiertablename character varying, upload_id numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.insert_modifier_fromtemp(tempmodifiertablename character varying, upload_id numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.insert_modifier_fromtemp(tempmodifiertablename character varying, upload_id numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION insert_patient_map_fromtemp(temppatienttablename character varying, upload_id numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.insert_patient_map_fromtemp(temppatienttablename character varying, upload_id numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.insert_patient_map_fromtemp(temppatienttablename character varying, upload_id numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.insert_patient_map_fromtemp(temppatienttablename character varying, upload_id numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION insert_pid_map_fromtemp(temppidtablename character varying, upload_id numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.insert_pid_map_fromtemp(temppidtablename character varying, upload_id numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.insert_pid_map_fromtemp(temppidtablename character varying, upload_id numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.insert_pid_map_fromtemp(temppidtablename character varying, upload_id numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION insert_provider_fromtemp(tempprovidertablename character varying, upload_id numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.insert_provider_fromtemp(tempprovidertablename character varying, upload_id numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.insert_provider_fromtemp(tempprovidertablename character varying, upload_id numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.insert_provider_fromtemp(tempprovidertablename character varying, upload_id numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION remove_temp_table(temptablename character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.remove_temp_table(temptablename character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.remove_temp_table(temptablename character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.remove_temp_table(temptablename character varying) TO biomart_user;


--
-- Name: FUNCTION sp_xtab(v_variable character varying, v_protocol integer, v_subject character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.sp_xtab(v_variable character varying, v_protocol integer, v_subject character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.sp_xtab(v_variable character varying, v_protocol integer, v_subject character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.sp_xtab(v_variable character varying, v_protocol integer, v_subject character varying) TO biomart_user;


--
-- Name: FUNCTION sync_clear_concept_table(tempconcepttablename character varying, backupconcepttablename character varying, uploadid numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.sync_clear_concept_table(tempconcepttablename character varying, backupconcepttablename character varying, uploadid numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.sync_clear_concept_table(tempconcepttablename character varying, backupconcepttablename character varying, uploadid numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.sync_clear_concept_table(tempconcepttablename character varying, backupconcepttablename character varying, uploadid numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION sync_clear_modifier_table(tempmodifiertablename character varying, backupmodifiertablename character varying, uploadid numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.sync_clear_modifier_table(tempmodifiertablename character varying, backupmodifiertablename character varying, uploadid numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.sync_clear_modifier_table(tempmodifiertablename character varying, backupmodifiertablename character varying, uploadid numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.sync_clear_modifier_table(tempmodifiertablename character varying, backupmodifiertablename character varying, uploadid numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION sync_clear_provider_table(tempprovidertablename character varying, backupprovidertablename character varying, uploadid numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.sync_clear_provider_table(tempprovidertablename character varying, backupprovidertablename character varying, uploadid numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.sync_clear_provider_table(tempprovidertablename character varying, backupprovidertablename character varying, uploadid numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.sync_clear_provider_table(tempprovidertablename character varying, backupprovidertablename character varying, uploadid numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION tf_trg_concept_dimension_cd(); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.tf_trg_concept_dimension_cd() FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.tf_trg_concept_dimension_cd() TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.tf_trg_concept_dimension_cd() TO biomart_user;


--
-- Name: FUNCTION tf_trg_encounter_num(); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.tf_trg_encounter_num() FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.tf_trg_encounter_num() TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.tf_trg_encounter_num() TO biomart_user;


--
-- Name: FUNCTION tf_trg_patient_dimension(); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.tf_trg_patient_dimension() FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.tf_trg_patient_dimension() TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.tf_trg_patient_dimension() TO biomart_user;


--
-- Name: FUNCTION update_observation_fact(upload_temptable_name character varying, upload_id numeric, appendflag numeric, OUT errormsg character varying); Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

REVOKE ALL ON FUNCTION i2b2demodata.update_observation_fact(upload_temptable_name character varying, upload_id numeric, appendflag numeric, OUT errormsg character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2demodata.update_observation_fact(upload_temptable_name character varying, upload_id numeric, appendflag numeric, OUT errormsg character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2demodata.update_observation_fact(upload_temptable_name character varying, upload_id numeric, appendflag numeric, OUT errormsg character varying) TO biomart_user;


--
-- Name: FUNCTION add_ontology_node(parent_path_src character varying, node_name character varying, is_leaf_src character varying, is_number character varying, prefix character varying); Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

REVOKE ALL ON FUNCTION i2b2metadata.add_ontology_node(parent_path_src character varying, node_name character varying, is_leaf_src character varying, is_number character varying, prefix character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2metadata.add_ontology_node(parent_path_src character varying, node_name character varying, is_leaf_src character varying, is_number character varying, prefix character varying) TO tm_cz;
GRANT ALL ON FUNCTION i2b2metadata.add_ontology_node(parent_path_src character varying, node_name character varying, is_leaf_src character varying, is_number character varying, prefix character varying) TO biomart_user;


--
-- Name: FUNCTION tf_trg_i2b2_id(); Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

REVOKE ALL ON FUNCTION i2b2metadata.tf_trg_i2b2_id() FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2metadata.tf_trg_i2b2_id() TO tm_cz;
GRANT ALL ON FUNCTION i2b2metadata.tf_trg_i2b2_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_i2b2_tag_id(); Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

REVOKE ALL ON FUNCTION i2b2metadata.tf_trg_i2b2_tag_id() FROM PUBLIC;
GRANT ALL ON FUNCTION i2b2metadata.tf_trg_i2b2_tag_id() TO tm_cz;
GRANT ALL ON FUNCTION i2b2metadata.tf_trg_i2b2_tag_id() TO biomart_user;


--
-- Name: FUNCTION bio_clinical_trial_uid(trial_number character varying, title character varying, condition character varying); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.bio_clinical_trial_uid(trial_number character varying, title character varying, condition character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.bio_clinical_trial_uid(trial_number character varying, title character varying, condition character varying) TO tm_cz;
GRANT ALL ON FUNCTION searchapp.bio_clinical_trial_uid(trial_number character varying, title character varying, condition character varying) TO biomart_user;


--
-- Name: FUNCTION bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying) FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying) TO tm_cz;
GRANT ALL ON FUNCTION searchapp.bio_compound_uid(cas_registry character varying, jnj_number character varying, cnto_number character varying) TO biomart_user;


--
-- Name: FUNCTION refresh_search_bio_mkr_correl_fast_mv(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.refresh_search_bio_mkr_correl_fast_mv() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.refresh_search_bio_mkr_correl_fast_mv() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.refresh_search_bio_mkr_correl_fast_mv() TO biomart_user;


--
-- Name: FUNCTION tf_trg_saved_faceted_search_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_saved_faceted_search_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_saved_faceted_search_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_saved_faceted_search_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_a_u_sec_access_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_a_u_sec_access_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_a_u_sec_access_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_a_u_sec_access_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_au_obj_access_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_au_obj_access_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_au_obj_access_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_au_obj_access_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_au_prcpl_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_au_prcpl_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_au_prcpl_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_au_prcpl_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_cust_fil_item_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_cust_fil_item_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_cust_fil_item_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_cust_fil_item_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_custom_filter_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_custom_filter_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_custom_filter_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_custom_filter_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_form_layout_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_form_layout_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_form_layout_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_form_layout_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_keyword_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_keyword_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_keyword_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_keyword_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_keyword_term_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_keyword_term_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_keyword_term_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_keyword_term_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_sec_acc_level_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_sec_acc_level_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_sec_acc_level_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_sec_acc_level_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_sec_obj_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_sec_obj_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_sec_obj_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_sec_obj_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_sec_obj_path_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_sec_obj_path_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_sec_obj_path_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_sec_obj_path_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_taxonomy_rels_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_taxonomy_rels_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_taxonomy_rels_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_taxonomy_rels_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_search_taxonomy_term_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_search_taxonomy_term_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_taxonomy_term_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_search_taxonomy_term_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_srch_req_up_field_id(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_srch_req_up_field_id() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_srch_req_up_field_id() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_srch_req_up_field_id() TO biomart_user;


--
-- Name: FUNCTION tf_trg_upd_saved_faceted_search(); Type: ACL; Schema: searchapp; Owner: searchapp
--

REVOKE ALL ON FUNCTION searchapp.tf_trg_upd_saved_faceted_search() FROM PUBLIC;
GRANT ALL ON FUNCTION searchapp.tf_trg_upd_saved_faceted_search() TO tm_cz;
GRANT ALL ON FUNCTION searchapp.tf_trg_upd_saved_faceted_search() TO biomart_user;


--
-- Name: FUNCTION _final_median(double precision[]); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz._final_median(double precision[]) FROM PUBLIC;


--
-- Name: FUNCTION _final_median(anyarray); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz._final_median(anyarray) FROM PUBLIC;


--
-- Name: FUNCTION bio_assay_analysis_uid(analysis_id bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_assay_analysis_uid(analysis_id bigint) FROM PUBLIC;


--
-- Name: FUNCTION bio_assay_analysis_uid(analysis_name character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_assay_analysis_uid(analysis_name character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_assay_platform_uid(platform_name character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_assay_platform_uid(platform_name character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_asy_analysis_pltfm_uid(platform_name character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_asy_analysis_pltfm_uid(platform_name character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_compound_uid(jnj_number character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_compound_uid(jnj_number character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_curation_dataset_uid(bio_curation_type character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_curation_dataset_uid(bio_curation_type character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_disease_uid(mesh_code character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_disease_uid(mesh_code character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_experiment_uid(primary_id character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_experiment_uid(primary_id character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_jub_oncol_data_uid(record_id numeric, bio_curation_name character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_jub_oncol_data_uid(record_id numeric, bio_curation_name character varying) FROM PUBLIC;


--
-- Name: FUNCTION bio_jub_oncol_sum_data_uid(record_id numeric, bio_curation_name character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.bio_jub_oncol_sum_data_uid(record_id numeric, bio_curation_name character varying) FROM PUBLIC;


--
-- Name: FUNCTION biomarker_gene_uid(gene_id character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.biomarker_gene_uid(gene_id character varying) FROM PUBLIC;


--
-- Name: FUNCTION biomarker_pathway_uid(p_source character varying, pathway_id character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.biomarker_pathway_uid(p_source character varying, pathway_id character varying) FROM PUBLIC;


--
-- Name: FUNCTION create_synonyms(fromdb character varying, todb character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.create_synonyms(fromdb character varying, todb character varying) FROM PUBLIC;


--
-- Name: FUNCTION cum_normal_dist(foldchg double precision, mu double precision, sigma double precision); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cum_normal_dist(foldchg double precision, mu double precision, sigma double precision) FROM PUBLIC;


--
-- Name: FUNCTION cz_audit_example(currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_audit_example(currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION cz_end_audit(jobid numeric, jobstatus character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_end_audit(jobid numeric, jobstatus character varying) FROM PUBLIC;


--
-- Name: FUNCTION cz_error_handler(jobid numeric, procedurename character varying, errornumber character varying, errormessage character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_error_handler(jobid numeric, procedurename character varying, errornumber character varying, errormessage character varying) FROM PUBLIC;


--
-- Name: FUNCTION cz_info_handler(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying, stepnumber character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_info_handler(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying, stepnumber character varying) FROM PUBLIC;


--
-- Name: FUNCTION cz_start_audit(jobname character varying, databasename character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_start_audit(jobname character varying, databasename character varying) FROM PUBLIC;


--
-- Name: FUNCTION cz_start_audit(jobname character varying, databasename character varying, jobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_start_audit(jobname character varying, databasename character varying, jobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION cz_write_audit(jobid numeric, databasename character varying, procedurename character varying, stepdesc character varying, recordsmanipulated numeric, stepnumber numeric, stepstatus character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_write_audit(jobid numeric, databasename character varying, procedurename character varying, stepdesc character varying, recordsmanipulated numeric, stepnumber numeric, stepstatus character varying) FROM PUBLIC;


--
-- Name: FUNCTION cz_write_error(jobid numeric, errornumber character varying, errormessage character varying, errorstack character varying, errorbacktrace character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_write_error(jobid numeric, errornumber character varying, errormessage character varying, errorstack character varying, errorbacktrace character varying) FROM PUBLIC;


--
-- Name: FUNCTION cz_write_info(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.cz_write_info(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying) FROM PUBLIC;


--
-- Name: FUNCTION czf_init_cap(text_to_parse character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czf_init_cap(text_to_parse character varying) FROM PUBLIC;


--
-- Name: FUNCTION czf_num_occurances(input_str character varying, search_str character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czf_num_occurances(input_str character varying, search_str character varying) FROM PUBLIC;


--
-- Name: FUNCTION czf_parse_nth_value(pvalue character varying, location numeric, delimiter character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czf_parse_nth_value(pvalue character varying, location numeric, delimiter character varying) FROM PUBLIC;


--
-- Name: FUNCTION czx_array_sort(anyarray); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_array_sort(anyarray) FROM PUBLIC;


--
-- Name: FUNCTION czx_end_audit(jobid numeric, jobstatus character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_end_audit(jobid numeric, jobstatus character varying) FROM PUBLIC;


--
-- Name: FUNCTION czx_error_handler(jobid numeric, procedurename character varying, errornumber character varying, errormessage character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_error_handler(jobid numeric, procedurename character varying, errornumber character varying, errormessage character varying) FROM PUBLIC;


--
-- Name: FUNCTION czx_info_handler(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying, stepnumber character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_info_handler(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying, stepnumber character varying) FROM PUBLIC;


--
-- Name: FUNCTION czx_percentile_cont(myarray real[], percentile real); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_percentile_cont(myarray real[], percentile real) FROM PUBLIC;


--
-- Name: FUNCTION czx_start_audit(jobname character varying, databasename character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_start_audit(jobname character varying, databasename character varying) FROM PUBLIC;


--
-- Name: FUNCTION czx_table_index_maint(p_run_type character varying, p_schema character varying, p_table character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_table_index_maint(p_run_type character varying, p_schema character varying, p_table character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION czx_write_audit(jobid numeric, databasename character varying, procedurename character varying, stepdesc character varying, recordsmanipulated numeric, stepnumber numeric, stepstatus character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_write_audit(jobid numeric, databasename character varying, procedurename character varying, stepdesc character varying, recordsmanipulated numeric, stepnumber numeric, stepstatus character varying) FROM PUBLIC;


--
-- Name: FUNCTION czx_write_error(jobid numeric, errornumber character varying, errormessage character varying, errorstack character varying, errorbacktrace character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_write_error(jobid numeric, errornumber character varying, errormessage character varying, errorstack character varying, errorbacktrace character varying) FROM PUBLIC;


--
-- Name: FUNCTION czx_write_info(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.czx_write_info(jobid numeric, messageid numeric, messageline numeric, messageprocedure character varying, infomessage character varying) FROM PUBLIC;


--
-- Name: FUNCTION data_export(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.data_export() FROM PUBLIC;


--
-- Name: FUNCTION drop_table(tabowner character varying, tabname character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.drop_table(tabowner character varying, tabname character varying) FROM PUBLIC;


--
-- Name: FUNCTION dropsyn(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.dropsyn() FROM PUBLIC;


--
-- Name: FUNCTION find_user(user_type character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.find_user(user_type character varying) FROM PUBLIC;


--
-- Name: FUNCTION fract_error_dist(norminput double precision); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.fract_error_dist(norminput double precision) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_add_node(trialid character varying, path character varying, path_name character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_add_node(trialid character varying, path character varying, path_name character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_add_root_node(root_node character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_add_root_node(root_node character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_add_snp_biomarker_nodes(trial_id character varying, ont_path character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_add_snp_biomarker_nodes(trial_id character varying, ont_path character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_backout_trial(trialid character varying, path_string character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_backout_trial(trialid character varying, path_string character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_bulk_add_search_term(currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_bulk_add_search_term(currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_create_concept_counts(path character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_create_concept_counts(path character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_create_external_tables(tpmextfn character varying, catgextfn character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_create_external_tables(tpmextfn character varying, catgextfn character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_create_security_for_trial(trial_id character varying, secured_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_create_security_for_trial(trial_id character varying, secured_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_create_security_inc_trial(trial_id character varying, secured_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_create_security_inc_trial(trial_id character varying, secured_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_create_stage_tables(bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_create_stage_tables(bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_delete_1_node(path character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_delete_1_node(path character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_delete_all_nodes(path character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_delete_all_nodes(path character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_extend_clinical_data(trial_id character varying, top_node character varying, secure_study character varying, highlight_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_extend_clinical_data(trial_id character varying, top_node character varying, secure_study character varying, highlight_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_fill_in_tree(trial_id character varying, path character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_fill_in_tree(trial_id character varying, path character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_hide_node(path character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_hide_node(path character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_link_additional_data(bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_link_additional_data(bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_annotation_deapp(currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_annotation_deapp(currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_chrom_region(platform_title character varying, data_type character varying, genome_release character varying, gene_annotation_id character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_chrom_region(platform_title character varying, data_type character varying, genome_release character varying, gene_annotation_id character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_clinical_data(trial_id character varying, top_node character varying, secure_study character varying, highlight_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_clinical_data(trial_id character varying, top_node character varying, secure_study character varying, highlight_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_clinical_inc_data(trial_id character varying, top_node character varying, secure_study character varying, highlight_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_clinical_inc_data(trial_id character varying, top_node character varying, secure_study character varying, highlight_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_eqtl_top50(i_bio_assay_analysis_id numeric, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_eqtl_top50(i_bio_assay_analysis_id numeric, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_from_stage(character varying, character varying, bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_from_stage(character varying, character varying, bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_gwas_top50(i_bio_assay_analysis_id numeric, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_gwas_top50(i_bio_assay_analysis_id numeric, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_metabolomics_annot(currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_metabolomics_annot(currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_mirna_annot_deapp(currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_mirna_annot_deapp(currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_omicsoft_annot(analysis_id bigint, i_job_id bigint, OUT rtn_code bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_omicsoft_annot(analysis_id bigint, i_job_id bigint, OUT rtn_code bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_proteomics_annot(currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_proteomics_annot(currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_rbm_annotation(currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_rbm_annotation(currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_rbm_data(trial_id character varying, top_node character varying, data_type character varying, source_code character varying, log_base numeric, secure_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_rbm_data(trial_id character varying, top_node character varying, data_type character varying, source_code character varying, log_base numeric, secure_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_sample_categories(currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_sample_categories(currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_security_data(currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_security_data(currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_security_data(sourcesystemcd character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_security_data(sourcesystemcd character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_load_study_metadata(currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_load_study_metadata(currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_metabolomics_zscore_calc(trial_id character varying, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_metabolomics_zscore_calc(trial_id character varying, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_metabolomics_zscore_calc(trial_id character varying, partition_name character varying, partition_indx character varying, partitionid numeric, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_metabolomics_zscore_calc(trial_id character varying, partition_name character varying, partition_indx character varying, partitionid numeric, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_mirna_zscore_calc(trial_id character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric, source_cd character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_mirna_zscore_calc(trial_id character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric, source_cd character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_move_analysis_to_prod(i_etl_id numeric, i_job_id numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_move_analysis_to_prod(i_etl_id numeric, i_job_id numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_move_node(old_path character varying, new_path character varying, topnode character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_move_node(old_path character varying, new_path character varying, topnode character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_move_study(old_path character varying, new_path character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_move_study(old_path character varying, new_path character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_mrna_index_maint(run_type text, tablespace_name text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_mrna_index_maint(run_type text, tablespace_name text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_mrna_zscore_calc(trial_id character varying, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_mrna_zscore_calc(trial_id character varying, source_cd character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_acgh_data(trial_id character varying, top_node character varying, source_cd character varying, secure_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_process_acgh_data(trial_id character varying, top_node character varying, source_cd character varying, secure_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_metabolomic_data(trial_id character varying, top_node character varying, data_type character varying, source_code character varying, log_base bigint, secure_study character varying, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_process_metabolomic_data(trial_id character varying, top_node character varying, data_type character varying, source_code character varying, log_base bigint, secure_study character varying, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_mrna_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_process_mrna_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_proteomics_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_process_proteomics_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_qpcr_mirna_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, mirna_type character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_process_qpcr_mirna_data(trial_id character varying, top_node character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, mirna_type character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_rna_seq_data(trial_id character varying, top_node character varying, data_type character varying, source_code character varying, log_base numeric, secure_study character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_process_rna_seq_data(trial_id character varying, top_node character varying, data_type character varying, source_code character varying, log_base numeric, secure_study character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_rnaseq_data(trial_id character varying, top_node character varying, source_cd character varying, secure_study character varying, data_type character varying, log_base numeric, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_process_rnaseq_data(trial_id character varying, top_node character varying, source_cd character varying, secure_study character varying, data_type character varying, log_base numeric, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_proteomics_zscore_calc(trial_id character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric, source_cd character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_proteomics_zscore_calc(trial_id character varying, run_type character varying, currentjobid numeric, data_type character varying, log_base numeric, source_cd character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_rbm_zscore_calc_new(trial_id character varying, run_type character varying, currentjobid bigint, data_type character varying, log_base bigint, source_cd character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_rbm_zscore_calc_new(trial_id character varying, run_type character varying, currentjobid bigint, data_type character varying, log_base bigint, source_cd character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_rbm_zscore_calc_new(trial_id character varying, partition_name character varying, partition_indx character varying, run_type character varying, currentjobid bigint, data_type character varying, log_base bigint, source_cd character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_rbm_zscore_calc_new(trial_id character varying, partition_name character varying, partition_indx character varying, run_type character varying, currentjobid bigint, data_type character varying, log_base bigint, source_cd character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_rbm_zscore_calc_new(trial_id character varying, partition_name character varying, partition_indx character varying, partitionid numeric, run_type character varying, currentjobid bigint, data_type character varying, log_base bigint, source_cd character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_rbm_zscore_calc_new(trial_id character varying, partition_name character varying, partition_indx character varying, partitionid numeric, run_type character varying, currentjobid bigint, data_type character varying, log_base bigint, source_cd character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_rename_node(trial_id character varying, old_node character varying, new_node character varying, currentjobid numeric); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_rename_node(trial_id character varying, old_node character varying, new_node character varying, currentjobid numeric) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_rna_seq_annotation(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_rna_seq_annotation() FROM PUBLIC;


--
-- Name: FUNCTION i2b2_rna_seq_annotation(currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_rna_seq_annotation(currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_rna_seq_zscore_calc(trial_id character varying, partition_name character varying, partition_indx character varying, partitionid numeric, run_type character varying, currentjobid numeric, data_type character varying, log_base bigint, source_cd character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_rna_seq_zscore_calc(trial_id character varying, partition_name character varying, partition_indx character varying, partitionid numeric, run_type character varying, currentjobid numeric, data_type character varying, log_base bigint, source_cd character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_secure_study(trial_id text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_secure_study(trial_id text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_show_node(path character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_show_node(path character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_table_bkp(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_table_bkp() FROM PUBLIC;


--
-- Name: FUNCTION i2b2_table_defrag(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_table_defrag() FROM PUBLIC;


--
-- Name: FUNCTION i2b2_truncate_release_tables(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.i2b2_truncate_release_tables() FROM PUBLIC;


--
-- Name: FUNCTION instr(string character varying, string_to_search character varying, beg_index integer, occur_index integer); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.instr(string character varying, string_to_search character varying, beg_index integer, occur_index integer) FROM PUBLIC;


--
-- Name: FUNCTION is_date(character varying, character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.is_date(character varying, character varying) FROM PUBLIC;


--
-- Name: FUNCTION is_number_v2(p_string character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.is_number_v2(p_string character varying) FROM PUBLIC;


--
-- Name: FUNCTION is_numeric(character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.is_numeric(character varying) FROM PUBLIC;


--
-- Name: FUNCTION isnumeric(p_string character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.isnumeric(p_string character varying) FROM PUBLIC;


--
-- Name: FUNCTION jnj_init_cap(text_to_parse text); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.jnj_init_cap(text_to_parse text) FROM PUBLIC;


--
-- Name: FUNCTION load_kegg_content_data(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.load_kegg_content_data() FROM PUBLIC;


--
-- Name: FUNCTION num_occurances(input_str character varying, search_str character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.num_occurances(input_str character varying, search_str character varying) FROM PUBLIC;


--
-- Name: FUNCTION number_parser(numbers_to_parse character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.number_parser(numbers_to_parse character varying) FROM PUBLIC;


--
-- Name: FUNCTION nz_i2b2_copy_to_stage(character varying, character varying, bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.nz_i2b2_copy_to_stage(character varying, character varying, bigint) FROM PUBLIC;


--
-- Name: FUNCTION parse_nth_value(pvalue character varying, location numeric, delimiter character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.parse_nth_value(pvalue character varying, location numeric, delimiter character varying) FROM PUBLIC;


--
-- Name: FUNCTION rdc_init_cap(text_to_parse text); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rdc_init_cap(text_to_parse text) FROM PUBLIC;


--
-- Name: FUNCTION rdc_reload_mrna_data(trial_id text, data_type text, source_cd text, log_base bigint, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rdc_reload_mrna_data(trial_id text, data_type text, source_cd text, log_base bigint, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION rename_program(oldprogramname character varying, newprogramname character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rename_program(oldprogramname character varying, newprogramname character varying) FROM PUBLIC;


--
-- Name: FUNCTION rename_study(programname character varying, oldtitle character varying, newtitle character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rename_study(programname character varying, oldtitle character varying, newtitle character varying) FROM PUBLIC;


--
-- Name: FUNCTION rwg_add_search_term(new_term text, category_name text, category_display text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_add_search_term(new_term text, category_name text, category_display text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION rwg_add_taxonomy_term(new_term_in text, parent_term_in text, category_term_in text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_add_taxonomy_term(new_term_in text, parent_term_in text, category_term_in text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION rwg_create_analysis_entry(trialid text, delete_flag text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_create_analysis_entry(trialid text, delete_flag text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION rwg_import_from_ext(trialid text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_import_from_ext(trialid text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION rwg_load_analysis_data(trialid text, currentjobid bigint, inplatformid bigint, OUT rtn_code bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_load_analysis_data(trialid text, currentjobid bigint, inplatformid bigint, OUT rtn_code bigint) FROM PUBLIC;


--
-- Name: FUNCTION rwg_load_analysis_metadata(trialid text, i_study_data_category text, i_study_category_display text, currentjobid bigint, OUT rtn_code bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_load_analysis_metadata(trialid text, i_study_data_category text, i_study_category_display text, currentjobid bigint, OUT rtn_code bigint) FROM PUBLIC;


--
-- Name: FUNCTION rwg_load_heat_map_results(in_study_id text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_load_heat_map_results(in_study_id text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION rwg_remove_study(trialid text, currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.rwg_remove_study(trialid text, currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION set_bio_data_uid_dis(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.set_bio_data_uid_dis() FROM PUBLIC;


--
-- Name: FUNCTION set_bio_data_uid_path(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.set_bio_data_uid_path() FROM PUBLIC;


--
-- Name: FUNCTION sf_xtab(v_variable character varying, v_protocol numeric, v_subject character varying, v_rowid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.sf_xtab(v_variable character varying, v_protocol numeric, v_subject character varying, v_rowid bigint) FROM PUBLIC;


--
-- Name: FUNCTION tea_npv_precompute(foldchg double precision, mu double precision, sigma double precision); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tea_npv_precompute(foldchg double precision, mu double precision, sigma double precision) FROM PUBLIC;


--
-- Name: FUNCTION text_parser(text_to_parse text); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.text_parser(text_to_parse text) FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_antigen_deapp(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_antigen_deapp() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_az_test_run_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_az_test_run_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_az_test_step_act_result(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_az_test_step_act_result() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_az_test_step_run_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_az_test_step_run_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_data_file_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_data_file_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_data_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_data_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_dw_version_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_dw_version_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_job_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_job_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_message_seq_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_message_seq_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_personid(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_personid() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_seq_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_seq_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_test_category_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_test_category_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_test_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_test_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_test_result_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_test_result_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_cz_xtrial_ctrl_vocab_id(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_cz_xtrial_ctrl_vocab_id() FROM PUBLIC;


--
-- Name: FUNCTION tf_trg_probeset_deapp(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.tf_trg_probeset_deapp() FROM PUBLIC;


--
-- Name: FUNCTION upgrade_mrna_data(currentjobid bigint); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.upgrade_mrna_data(currentjobid bigint) FROM PUBLIC;


--
-- Name: FUNCTION util_create_synonym_all(v_fromzone character varying, v_whattype character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_create_synonym_all(v_fromzone character varying, v_whattype character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_drop_all(v_whattype character varying, v_dropifempty character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_drop_all(v_whattype character varying, v_dropifempty character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_drop_anything(v_objname character varying, v_objtype character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_drop_anything(v_objname character varying, v_objtype character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_drop_synonym(v_objname character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_drop_synonym(v_objname character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_drop_synonym_by_owner(v_owner character varying, v_dropifempty character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_drop_synonym_by_owner(v_owner character varying, v_dropifempty character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_drop_table(v_tabname character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_drop_table(v_tabname character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_grant_all(username character varying, v_whattype character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_grant_all(username character varying, v_whattype character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_grant_execute(v_to_zone character varying, v_type character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_grant_execute(v_to_zone character varying, v_type character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_grant_select(username character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_grant_select(username character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_is_populated(tabname character varying, OUT retval integer); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_is_populated(tabname character varying, OUT retval integer) FROM PUBLIC;


--
-- Name: FUNCTION util_make_object_list(v_whattype character varying, OUT v_things character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_make_object_list(v_whattype character varying, OUT v_things character varying) FROM PUBLIC;


--
-- Name: FUNCTION util_recompile_all(); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_recompile_all() FROM PUBLIC;


--
-- Name: FUNCTION util_truncate_table(v_tabname character varying, v_dummyarg character varying); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.util_truncate_table(v_tabname character varying, v_dummyarg character varying) FROM PUBLIC;


--
-- Name: FUNCTION i2b2_process_qpcr_mirna_data(trial_id character varying, top_node character varying, mirna_type character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, OUT rtn_code numeric); Type: ACL; Schema: tm_lz; Owner: tm_lz
--

REVOKE ALL ON FUNCTION tm_lz.i2b2_process_qpcr_mirna_data(trial_id character varying, top_node character varying, mirna_type character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, OUT rtn_code numeric) FROM PUBLIC;
GRANT ALL ON FUNCTION tm_lz.i2b2_process_qpcr_mirna_data(trial_id character varying, top_node character varying, mirna_type character varying, data_type character varying, source_cd character varying, log_base numeric, secure_study character varying, currentjobid numeric, OUT rtn_code numeric) TO tm_cz;


--
-- Name: FUNCTION tf_trg_lz_src_analysis_meta_id(); Type: ACL; Schema: tm_lz; Owner: tm_lz
--

REVOKE ALL ON FUNCTION tm_lz.tf_trg_lz_src_analysis_meta_id() FROM PUBLIC;
GRANT ALL ON FUNCTION tm_lz.tf_trg_lz_src_analysis_meta_id() TO tm_cz;


--
-- Name: FUNCTION median(anyelement); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.median(anyelement) FROM PUBLIC;


--
-- Name: FUNCTION median(double precision); Type: ACL; Schema: tm_cz; Owner: tm_cz
--

REVOKE ALL ON FUNCTION tm_cz.median(double precision) FROM PUBLIC;


--
-- Name: TABLE am_data_uid; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON TABLE amapp.am_data_uid TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE amapp.am_data_uid TO biomart_user;


--
-- Name: TABLE am_tag_association; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON TABLE amapp.am_tag_association TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE amapp.am_tag_association TO biomart_user;


--
-- Name: TABLE am_tag_item; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON TABLE amapp.am_tag_item TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE amapp.am_tag_item TO biomart_user;


--
-- Name: TABLE am_tag_value; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON TABLE amapp.am_tag_value TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE amapp.am_tag_value TO biomart_user;


--
-- Name: TABLE bio_assay_platform; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_platform TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_platform TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_assay_platform TO amapp;


--
-- Name: TABLE bio_compound; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_compound TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_compound TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_compound TO amapp;


--
-- Name: TABLE bio_concept_code; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_concept_code TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_concept_code TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_concept_code TO amapp;


--
-- Name: TABLE bio_data_uid; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_uid TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE biomart.bio_data_uid TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_data_uid TO amapp;


--
-- Name: TABLE bio_disease; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_disease TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_disease TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_disease TO amapp;


--
-- Name: TABLE bio_marker; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_marker TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE biomart.bio_marker TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_marker TO amapp;


--
-- Name: TABLE bio_observation; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_observation TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_observation TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_observation TO amapp;


--
-- Name: TABLE am_tag_display_vw; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON TABLE amapp.am_tag_display_vw TO tm_cz;
GRANT SELECT ON TABLE amapp.am_tag_display_vw TO biomart_user;


--
-- Name: TABLE am_tag_template; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON TABLE amapp.am_tag_template TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE amapp.am_tag_template TO biomart_user;


--
-- Name: TABLE am_tag_template_association; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON TABLE amapp.am_tag_template_association TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE amapp.am_tag_template_association TO biomart_user;


--
-- Name: SEQUENCE seq_amapp_data_id; Type: ACL; Schema: amapp; Owner: amapp
--

GRANT ALL ON SEQUENCE amapp.seq_amapp_data_id TO tm_cz;
GRANT ALL ON SEQUENCE amapp.seq_amapp_data_id TO biomart_user;


--
-- Name: TABLE annotation; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.annotation TO tm_cz;
GRANT SELECT ON TABLE biomart.annotation TO biomart_user;


--
-- Name: TABLE assay_analysis_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.assay_analysis_data TO tm_cz;
GRANT SELECT ON TABLE biomart.assay_analysis_data TO biomart_user;


--
-- Name: TABLE bio_ad_hoc_property; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_ad_hoc_property TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_ad_hoc_property TO biomart_user;


--
-- Name: TABLE bio_analysis_attribute; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_analysis_attribute TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_analysis_attribute TO biomart_user;


--
-- Name: TABLE bio_analysis_attribute_lineage; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_analysis_attribute_lineage TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_analysis_attribute_lineage TO biomart_user;


--
-- Name: TABLE bio_analysis_cohort_xref; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_analysis_cohort_xref TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_analysis_cohort_xref TO biomart_user;


--
-- Name: TABLE bio_assay; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay TO biomart_user;


--
-- Name: TABLE bio_assay_analysis; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_analysis TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE biomart.bio_assay_analysis TO biomart_user;


--
-- Name: TABLE bio_assay_analysis_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_analysis_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_analysis_data TO biomart_user;


--
-- Name: TABLE bio_assay_analysis_data_tea; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_analysis_data_tea TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_analysis_data_tea TO biomart_user;


--
-- Name: TABLE bio_assay_analysis_eqtl; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_analysis_eqtl TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_analysis_eqtl TO biomart_user;


--
-- Name: TABLE bio_assay_analysis_ext; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_analysis_ext TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_analysis_ext TO biomart_user;


--
-- Name: TABLE bio_assay_analysis_gwas; Type: ACL; Schema: biomart; Owner: tm_cz
--

GRANT ALL ON TABLE biomart.bio_assay_analysis_gwas TO biomart;
GRANT SELECT ON TABLE biomart.bio_assay_analysis_gwas TO biomart_user;


--
-- Name: TABLE bio_assay_cohort; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_cohort TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_cohort TO biomart_user;


--
-- Name: TABLE bio_assay_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_data TO biomart_user;


--
-- Name: TABLE bio_assay_data_annotation; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_data_annotation TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE biomart.bio_assay_data_annotation TO biomart_user;
GRANT SELECT ON TABLE biomart.bio_assay_data_annotation TO searchapp;


--
-- Name: TABLE bio_assay_data_stats; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_data_stats TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_data_stats TO biomart_user;


--
-- Name: SEQUENCE bio_assay_data_stats_seq; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON SEQUENCE biomart.bio_assay_data_stats_seq TO tm_cz;
GRANT ALL ON SEQUENCE biomart.bio_assay_data_stats_seq TO biomart_user;


--
-- Name: TABLE bio_assay_dataset; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_dataset TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_dataset TO biomart_user;


--
-- Name: TABLE bio_assay_feature_group; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_feature_group TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE biomart.bio_assay_feature_group TO biomart_user;


--
-- Name: TABLE bio_assay_sample; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_assay_sample TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_assay_sample TO biomart_user;


--
-- Name: TABLE bio_asy_analysis_data_ext; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_asy_analysis_data_ext TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_asy_analysis_data_ext TO biomart_user;


--
-- Name: TABLE bio_asy_analysis_data_idx; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_asy_analysis_data_idx TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_asy_analysis_data_idx TO biomart_user;


--
-- Name: TABLE bio_asy_analysis_dataset; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_asy_analysis_dataset TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_asy_analysis_dataset TO biomart_user;


--
-- Name: TABLE bio_asy_analysis_eqtl_top50; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_asy_analysis_eqtl_top50 TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_asy_analysis_eqtl_top50 TO biomart_user;


--
-- Name: TABLE bio_asy_analysis_gwas_top50; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_asy_analysis_gwas_top50 TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_asy_analysis_gwas_top50 TO biomart_user;


--
-- Name: TABLE bio_asy_analysis_pltfm; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_asy_analysis_pltfm TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_asy_analysis_pltfm TO biomart_user;


--
-- Name: TABLE bio_asy_data_stats_all; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_asy_data_stats_all TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_asy_data_stats_all TO biomart_user;


--
-- Name: TABLE bio_cell_line; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_cell_line TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_cell_line TO biomart_user;


--
-- Name: TABLE bio_cgdcp_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_cgdcp_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_cgdcp_data TO biomart_user;


--
-- Name: TABLE bio_clinc_trial_attr; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_clinc_trial_attr TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_clinc_trial_attr TO biomart_user;


--
-- Name: TABLE bio_clinc_trial_pt_group; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_clinc_trial_pt_group TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_clinc_trial_pt_group TO biomart_user;


--
-- Name: TABLE bio_clinc_trial_time_pt; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_clinc_trial_time_pt TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_clinc_trial_time_pt TO biomart_user;


--
-- Name: TABLE bio_clinical_trial; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_clinical_trial TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_clinical_trial TO biomart_user;


--
-- Name: TABLE bio_clinical_trial_design; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_clinical_trial_design TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_clinical_trial_design TO biomart_user;


--
-- Name: TABLE bio_cohort_exp_xref; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_cohort_exp_xref TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_cohort_exp_xref TO biomart_user;


--
-- Name: TABLE bio_content; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_content TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_content TO biomart_user;


--
-- Name: TABLE bio_content_reference; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_content_reference TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_content_reference TO biomart_user;


--
-- Name: TABLE bio_content_repository; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_content_repository TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_content_repository TO biomart_user;


--
-- Name: TABLE bio_curated_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_curated_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_curated_data TO biomart_user;


--
-- Name: TABLE bio_curation_dataset; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_curation_dataset TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_curation_dataset TO biomart_user;


--
-- Name: TABLE bio_data_attribute; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_attribute TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_attribute TO biomart_user;


--
-- Name: TABLE bio_data_compound; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_compound TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_compound TO biomart_user;


--
-- Name: TABLE bio_data_correl_descr; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_correl_descr TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_correl_descr TO biomart_user;


--
-- Name: TABLE bio_data_correlation; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_correlation TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_correlation TO biomart_user;


--
-- Name: TABLE bio_data_disease; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_disease TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_disease TO biomart_user;


--
-- Name: TABLE bio_data_ext_code; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_ext_code TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_ext_code TO biomart_user;


--
-- Name: TABLE bio_data_literature; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_literature TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_literature TO biomart_user;


--
-- Name: TABLE bio_data_observation; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_observation TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_observation TO biomart_user;


--
-- Name: TABLE bio_data_omic_marker; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_omic_marker TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_omic_marker TO biomart_user;


--
-- Name: TABLE bio_data_platform; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_platform TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_platform TO biomart_user;


--
-- Name: TABLE bio_data_taxonomy; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_data_taxonomy TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_data_taxonomy TO biomart_user;


--
-- Name: TABLE bio_experiment; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_experiment TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE biomart.bio_experiment TO biomart_user;


--
-- Name: TABLE bio_lit_alt_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_alt_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_alt_data TO biomart_user;


--
-- Name: TABLE bio_lit_amd_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_amd_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_amd_data TO biomart_user;


--
-- Name: TABLE bio_lit_inh_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_inh_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_inh_data TO biomart_user;


--
-- Name: TABLE bio_lit_int_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_int_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_int_data TO biomart_user;


--
-- Name: TABLE bio_lit_int_model_mv; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_int_model_mv TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_int_model_mv TO biomart_user;


--
-- Name: TABLE bio_lit_model_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_model_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_model_data TO biomart_user;


--
-- Name: TABLE bio_lit_int_model_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_int_model_view TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_int_model_view TO biomart_user;


--
-- Name: TABLE bio_lit_pe_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_pe_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_pe_data TO biomart_user;


--
-- Name: TABLE bio_lit_ref_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_ref_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_ref_data TO biomart_user;


--
-- Name: TABLE bio_lit_sum_data; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_lit_sum_data TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_lit_sum_data TO biomart_user;


--
-- Name: TABLE bio_marker_correl_mv; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_marker_correl_mv TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_marker_correl_mv TO biomart_user;


--
-- Name: TABLE bio_marker_correl_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_marker_correl_view TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_marker_correl_view TO biomart_user;


--
-- Name: TABLE bio_marker_exp_analysis_mv; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_marker_exp_analysis_mv TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_marker_exp_analysis_mv TO biomart_user;


--
-- Name: TABLE de_metabolite_annotation; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_metabolite_annotation TO tm_cz;
GRANT SELECT ON TABLE deapp.de_metabolite_annotation TO biomart_user;
GRANT SELECT ON TABLE deapp.de_metabolite_annotation TO biomart;


--
-- Name: TABLE de_metabolite_sub_pathways; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_metabolite_sub_pathways TO tm_cz;
GRANT SELECT ON TABLE deapp.de_metabolite_sub_pathways TO biomart_user;
GRANT SELECT ON TABLE deapp.de_metabolite_sub_pathways TO biomart;


--
-- Name: TABLE de_metabolite_sub_pway_metab; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_metabolite_sub_pway_metab TO tm_cz;
GRANT SELECT ON TABLE deapp.de_metabolite_sub_pway_metab TO biomart_user;
GRANT SELECT ON TABLE deapp.de_metabolite_sub_pway_metab TO biomart;


--
-- Name: TABLE bio_metab_subpathway_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_metab_subpathway_view TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_metab_subpathway_view TO biomart_user;


--
-- Name: TABLE de_metabolite_super_pathways; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_metabolite_super_pathways TO tm_cz;
GRANT SELECT ON TABLE deapp.de_metabolite_super_pathways TO biomart_user;
GRANT SELECT ON TABLE deapp.de_metabolite_super_pathways TO biomart;


--
-- Name: TABLE bio_metab_superpathway_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_metab_superpathway_view TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_metab_superpathway_view TO biomart_user;


--
-- Name: TABLE bio_patient; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_patient TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_patient TO biomart_user;


--
-- Name: TABLE bio_patient_event; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_patient_event TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_patient_event TO biomart_user;


--
-- Name: TABLE bio_patient_event_attr; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_patient_event_attr TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_patient_event_attr TO biomart_user;


--
-- Name: TABLE bio_recombination_rates; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_recombination_rates TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_recombination_rates TO biomart_user;


--
-- Name: TABLE bio_regulome_score; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_regulome_score TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_regulome_score TO biomart_user;


--
-- Name: TABLE bio_sample; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_sample TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_sample TO biomart_user;


--
-- Name: TABLE bio_species_organism; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_species_organism TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_species_organism TO biomart_user;


--
-- Name: TABLE bio_stats_exp_marker; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_stats_exp_marker TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_stats_exp_marker TO biomart_user;


--
-- Name: TABLE bio_subject; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_subject TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_subject TO biomart_user;


--
-- Name: TABLE bio_taxonomy; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.bio_taxonomy TO tm_cz;
GRANT SELECT ON TABLE biomart.bio_taxonomy TO biomart_user;


--
-- Name: TABLE biobank_sample; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.biobank_sample TO tm_cz;
GRANT SELECT ON TABLE biomart.biobank_sample TO biomart_user;


--
-- Name: TABLE cta_results; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.cta_results TO tm_cz;
GRANT SELECT ON TABLE biomart.cta_results TO biomart_user;


--
-- Name: TABLE ctd2_clin_inhib_effect; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd2_clin_inhib_effect TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd2_clin_inhib_effect TO biomart_user;


--
-- Name: TABLE ctd2_disease; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd2_disease TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd2_disease TO biomart_user;


--
-- Name: TABLE ctd2_inhib_details; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd2_inhib_details TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd2_inhib_details TO biomart_user;


--
-- Name: TABLE ctd2_study; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd2_study TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd2_study TO biomart_user;


--
-- Name: TABLE ctd2_trial_details; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd2_trial_details TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd2_trial_details TO biomart_user;


--
-- Name: TABLE ctd_allowed_meds_treatment; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_allowed_meds_treatment TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_allowed_meds_treatment TO biomart_user;


--
-- Name: TABLE ctd_full; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_full TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_full TO biomart_user;


--
-- Name: TABLE ctd_arm_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_arm_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_arm_view TO biomart_user;


--
-- Name: TABLE ctd_biomarker; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_biomarker TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_biomarker TO biomart_user;


--
-- Name: TABLE ctd_biomarker_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_biomarker_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_biomarker_view TO biomart_user;


--
-- Name: TABLE ctd_cell_info_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_cell_info_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_cell_info_view TO biomart_user;


--
-- Name: TABLE ctd_clinical_chars_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_clinical_chars_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_clinical_chars_view TO biomart_user;


--
-- Name: TABLE ctd_disease; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_disease TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_disease TO biomart_user;


--
-- Name: TABLE ctd_drug_effects_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_drug_effects_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_drug_effects_view TO biomart_user;


--
-- Name: TABLE ctd_drug_inhib; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_drug_inhib TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_drug_inhib TO biomart_user;


--
-- Name: TABLE ctd_drug_inhibitor_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_drug_inhibitor_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_drug_inhibitor_view TO biomart_user;


--
-- Name: TABLE ctd_events_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_events_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_events_view TO biomart_user;


--
-- Name: TABLE ctd_experiments_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_experiments_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_experiments_view TO biomart_user;


--
-- Name: TABLE ctd_expr_after_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_expr_after_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_expr_after_view TO biomart_user;


--
-- Name: TABLE ctd_expr_baseline_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_expr_baseline_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_expr_baseline_view TO biomart_user;


--
-- Name: TABLE ctd_expr_bio_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_expr_bio_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_expr_bio_view TO biomart_user;


--
-- Name: TABLE ctd_expr_source_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_expr_source_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_expr_source_view TO biomart_user;


--
-- Name: TABLE ctd_full_clinical_endpts_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_full_clinical_endpts_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_full_clinical_endpts_view TO biomart_user;


--
-- Name: TABLE ctd_full_search_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_full_search_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_full_search_view TO biomart_user;


--
-- Name: TABLE ctd_inclusion_criteria; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_inclusion_criteria TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_inclusion_criteria TO biomart_user;


--
-- Name: TABLE ctd_primary_endpts; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_primary_endpts TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_primary_endpts TO biomart_user;


--
-- Name: TABLE ctd_primary_endpts_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_primary_endpts_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_primary_endpts_view TO biomart_user;


--
-- Name: TABLE ctd_prior_med_use_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_prior_med_use_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_prior_med_use_view TO biomart_user;


--
-- Name: TABLE ctd_pulmonary_path_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_pulmonary_path_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_pulmonary_path_view TO biomart_user;


--
-- Name: TABLE ctd_quant_params_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_quant_params_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_quant_params_view TO biomart_user;


--
-- Name: TABLE ctd_reference_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_reference_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_reference_view TO biomart_user;


--
-- Name: TABLE ctd_runin_therapies_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_runin_therapies_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_runin_therapies_view TO biomart_user;


--
-- Name: TABLE ctd_sec_endpts; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_sec_endpts TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_sec_endpts TO biomart_user;


--
-- Name: TABLE ctd_secondary_endpts_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_secondary_endpts_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_secondary_endpts_view TO biomart_user;


--
-- Name: TABLE ctd_stats_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_stats_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_stats_view TO biomart_user;


--
-- Name: TABLE ctd_study; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_study TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_study TO biomart_user;


--
-- Name: TABLE ctd_study_details_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_study_details_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_study_details_view TO biomart_user;


--
-- Name: TABLE ctd_td_design_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_td_design_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_td_design_view TO biomart_user;


--
-- Name: TABLE ctd_td_excl_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_td_excl_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_td_excl_view TO biomart_user;


--
-- Name: TABLE ctd_td_inclusion_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_td_inclusion_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_td_inclusion_view TO biomart_user;


--
-- Name: TABLE ctd_td_smoker_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_td_smoker_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_td_smoker_view TO biomart_user;


--
-- Name: TABLE ctd_td_sponsor_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_td_sponsor_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_td_sponsor_view TO biomart_user;


--
-- Name: TABLE ctd_td_status_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_td_status_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_td_status_view TO biomart_user;


--
-- Name: TABLE ctd_treatment_phases_view; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.ctd_treatment_phases_view TO tm_cz;
GRANT SELECT ON TABLE biomart.ctd_treatment_phases_view TO biomart_user;


--
-- Name: TABLE dd; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.dd TO tm_cz;
GRANT SELECT ON TABLE biomart.dd TO biomart_user;


--
-- Name: TABLE gene_info_test; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.gene_info_test TO tm_cz;
GRANT SELECT ON TABLE biomart.gene_info_test TO biomart_user;


--
-- Name: TABLE gene_synonym_test; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.gene_synonym_test TO tm_cz;
GRANT SELECT ON TABLE biomart.gene_synonym_test TO biomart_user;


--
-- Name: TABLE genego_gene_map; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.genego_gene_map TO tm_cz;
GRANT SELECT ON TABLE biomart.genego_gene_map TO biomart_user;


--
-- Name: TABLE gse_analysis; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.gse_analysis TO tm_cz;
GRANT SELECT ON TABLE biomart.gse_analysis TO biomart_user;


--
-- Name: TABLE gse_probeset; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.gse_probeset TO tm_cz;
GRANT SELECT ON TABLE biomart.gse_probeset TO biomart_user;


--
-- Name: TABLE heat_map_results; Type: ACL; Schema: biomart; Owner: tm_cz
--

GRANT ALL ON TABLE biomart.heat_map_results TO biomart;
GRANT SELECT ON TABLE biomart.heat_map_results TO biomart_user;


--
-- Name: SEQUENCE hibernate_sequence; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON SEQUENCE biomart.hibernate_sequence TO tm_cz;
GRANT ALL ON SEQUENCE biomart.hibernate_sequence TO biomart_user;


--
-- Name: TABLE mesh; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mesh TO tm_cz;
GRANT SELECT ON TABLE biomart.mesh TO biomart_user;


--
-- Name: TABLE mesh_copy; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mesh_copy TO tm_cz;
GRANT SELECT ON TABLE biomart.mesh_copy TO biomart_user;


--
-- Name: TABLE mesh_descriptor; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mesh_descriptor TO tm_cz;
GRANT SELECT ON TABLE biomart.mesh_descriptor TO biomart_user;


--
-- Name: TABLE mesh_entry; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mesh_entry TO tm_cz;
GRANT SELECT ON TABLE biomart.mesh_entry TO biomart_user;


--
-- Name: TABLE mesh_path; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mesh_path TO tm_cz;
GRANT SELECT ON TABLE biomart.mesh_path TO biomart_user;


--
-- Name: TABLE mesh_temp; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mesh_temp TO tm_cz;
GRANT SELECT ON TABLE biomart.mesh_temp TO biomart_user;


--
-- Name: TABLE mesh_with_parent; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mesh_with_parent TO tm_cz;
GRANT SELECT ON TABLE biomart.mesh_with_parent TO biomart_user;


--
-- Name: TABLE mirna_bio_assay_data_annot; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mirna_bio_assay_data_annot TO tm_cz;
GRANT SELECT ON TABLE biomart.mirna_bio_assay_data_annot TO biomart_user;


--
-- Name: SEQUENCE seq_bio_data_id; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON SEQUENCE biomart.seq_bio_data_id TO tm_cz;
GRANT ALL ON SEQUENCE biomart.seq_bio_data_id TO biomart_user;


--
-- Name: TABLE mirna_bio_assay_feature_group; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mirna_bio_assay_feature_group TO tm_cz;
GRANT SELECT ON TABLE biomart.mirna_bio_assay_feature_group TO biomart_user;


--
-- Name: TABLE mirna_bio_marker; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.mirna_bio_marker TO tm_cz;
GRANT SELECT ON TABLE biomart.mirna_bio_marker TO biomart_user;


--
-- Name: TABLE project_info; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.project_info TO tm_cz;
GRANT SELECT ON TABLE biomart.project_info TO biomart_user;


--
-- Name: SEQUENCE seq_bio_data_fact_id; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON SEQUENCE biomart.seq_bio_data_fact_id TO tm_cz;
GRANT ALL ON SEQUENCE biomart.seq_bio_data_fact_id TO biomart_user;


--
-- Name: SEQUENCE seq_clinical_trial_design_id; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON SEQUENCE biomart.seq_clinical_trial_design_id TO tm_cz;
GRANT ALL ON SEQUENCE biomart.seq_clinical_trial_design_id TO biomart_user;


--
-- Name: TABLE tests; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.tests TO tm_cz;
GRANT SELECT ON TABLE biomart.tests TO biomart_user;


--
-- Name: TABLE tmp_bio_marker; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.tmp_bio_marker TO tm_cz;
GRANT SELECT ON TABLE biomart.tmp_bio_marker TO biomart_user;


--
-- Name: TABLE tmp_omicsoft_compound; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.tmp_omicsoft_compound TO tm_cz;
GRANT SELECT ON TABLE biomart.tmp_omicsoft_compound TO biomart_user;


--
-- Name: TABLE tmp_omicsoft_disease_m1; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.tmp_omicsoft_disease_m1 TO tm_cz;
GRANT SELECT ON TABLE biomart.tmp_omicsoft_disease_m1 TO biomart_user;


--
-- Name: TABLE tmp_project_category; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.tmp_project_category TO tm_cz;
GRANT SELECT ON TABLE biomart.tmp_project_category TO biomart_user;


--
-- Name: TABLE tmp_project_compound; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.tmp_project_compound TO tm_cz;
GRANT SELECT ON TABLE biomart.tmp_project_compound TO biomart_user;


--
-- Name: TABLE tmp_project_disease; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.tmp_project_disease TO tm_cz;
GRANT SELECT ON TABLE biomart.tmp_project_disease TO biomart_user;


--
-- Name: TABLE vw_faceted_search; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.vw_faceted_search TO tm_cz;
GRANT SELECT ON TABLE biomart.vw_faceted_search TO biomart_user;


--
-- Name: TABLE vw_faceted_search_disease; Type: ACL; Schema: biomart; Owner: biomart
--

GRANT ALL ON TABLE biomart.vw_faceted_search_disease TO tm_cz;
GRANT SELECT ON TABLE biomart.vw_faceted_search_disease TO biomart_user;


--
-- Name: TABLE fm_data_uid; Type: ACL; Schema: fmapp; Owner: fmapp
--

GRANT ALL ON TABLE fmapp.fm_data_uid TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE fmapp.fm_data_uid TO biomart_user;


--
-- Name: TABLE fm_folder; Type: ACL; Schema: fmapp; Owner: fmapp
--

GRANT ALL ON TABLE fmapp.fm_folder TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE fmapp.fm_folder TO biomart_user;


--
-- Name: TABLE fm_folder_association; Type: ACL; Schema: fmapp; Owner: fmapp
--

GRANT ALL ON TABLE fmapp.fm_folder_association TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE fmapp.fm_folder_association TO biomart_user;


--
-- Name: TABLE browse_analyses_view; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.browse_analyses_view TO tm_cz;


--
-- Name: TABLE browse_assays_view; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.browse_assays_view TO tm_cz;


--
-- Name: TABLE browse_folders_view; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.browse_folders_view TO tm_cz;


--
-- Name: TABLE browse_programs_view; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.browse_programs_view TO tm_cz;


--
-- Name: TABLE browse_studies_view; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.browse_studies_view TO tm_cz;


--
-- Name: TABLE gene_ontology; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.gene_ontology TO tm_cz;


--
-- Name: TABLE gene_ontology_data; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.gene_ontology_data TO tm_cz;


--
-- Name: TABLE ioe_temp_obj_reg2; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.ioe_temp_obj_reg2 TO tm_cz;


--
-- Name: TABLE kde_temp_obj_reg3; Type: ACL; Schema: biomart_user; Owner: biomart_user
--

GRANT ALL ON TABLE biomart_user.kde_temp_obj_reg3 TO tm_cz;


--
-- Name: SEQUENCE de_chromo_region_id_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_chromo_region_id_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_chromo_region_id_seq TO biomart_user;


--
-- Name: TABLE de_chromosomal_region; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_chromosomal_region TO tm_cz;
GRANT SELECT ON TABLE deapp.de_chromosomal_region TO biomart_user;


--
-- Name: TABLE de_concept_visit; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_concept_visit TO tm_cz;
GRANT SELECT ON TABLE deapp.de_concept_visit TO biomart_user;


--
-- Name: TABLE de_encounter_level; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_encounter_level TO tm_cz;
GRANT SELECT ON TABLE deapp.de_encounter_level TO biomart_user;


--
-- Name: TABLE de_encounter_type; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_encounter_type TO tm_cz;
GRANT SELECT ON TABLE deapp.de_encounter_type TO biomart_user;


--
-- Name: TABLE de_gene_info; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_gene_info TO tm_cz;
GRANT SELECT ON TABLE deapp.de_gene_info TO biomart_user;


--
-- Name: SEQUENCE de_gene_info_gene_info_id_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_gene_info_gene_info_id_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_gene_info_gene_info_id_seq TO biomart_user;


--
-- Name: TABLE de_gene_source; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_gene_source TO tm_cz;
GRANT SELECT ON TABLE deapp.de_gene_source TO biomart_user;


--
-- Name: TABLE de_gpl_info; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_gpl_info TO tm_cz;
GRANT SELECT ON TABLE deapp.de_gpl_info TO biomart_user;


--
-- Name: TABLE de_mrna_annotation; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_mrna_annotation TO tm_cz;
GRANT SELECT ON TABLE deapp.de_mrna_annotation TO biomart_user;
GRANT SELECT ON TABLE deapp.de_mrna_annotation TO biomart;


--
-- Name: TABLE de_obs_enroll_days; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_obs_enroll_days TO tm_cz;
GRANT SELECT ON TABLE deapp.de_obs_enroll_days TO biomart_user;


--
-- Name: SEQUENCE de_parent_cd_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_parent_cd_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_parent_cd_seq TO biomart_user;


--
-- Name: TABLE de_pathway; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_pathway TO tm_cz;
GRANT SELECT ON TABLE deapp.de_pathway TO biomart_user;


--
-- Name: TABLE de_pathway_gene; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_pathway_gene TO tm_cz;
GRANT SELECT ON TABLE deapp.de_pathway_gene TO biomart_user;


--
-- Name: SEQUENCE protein_annotation_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.protein_annotation_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.protein_annotation_id TO biomart_user;


--
-- Name: TABLE de_protein_annotation; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_protein_annotation TO tm_cz;
GRANT SELECT ON TABLE deapp.de_protein_annotation TO biomart_user;


--
-- Name: TABLE de_qpcr_mirna_annotation; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_qpcr_mirna_annotation TO tm_cz;
GRANT SELECT ON TABLE deapp.de_qpcr_mirna_annotation TO biomart_user;


--
-- Name: TABLE de_rbm_annotation; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_rbm_annotation TO tm_cz;
GRANT SELECT ON TABLE deapp.de_rbm_annotation TO biomart_user;


--
-- Name: TABLE de_rbm_data_annotation_join; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_rbm_data_annotation_join TO tm_cz;
GRANT SELECT ON TABLE deapp.de_rbm_data_annotation_join TO biomart_user;


--
-- Name: SEQUENCE de_rc_snp_info_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_rc_snp_info_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_rc_snp_info_seq TO biomart_user;


--
-- Name: TABLE de_rc_snp_info; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_rc_snp_info TO tm_cz;
GRANT SELECT ON TABLE deapp.de_rc_snp_info TO biomart_user;


--
-- Name: TABLE de_rnaseq_annotation; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_rnaseq_annotation TO tm_cz;
GRANT SELECT ON TABLE deapp.de_rnaseq_annotation TO biomart_user;


--
-- Name: TABLE de_sample_snp_data; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_sample_snp_data TO tm_cz;
GRANT SELECT ON TABLE deapp.de_sample_snp_data TO biomart_user;


--
-- Name: TABLE de_saved_comparison; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_saved_comparison TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE deapp.de_saved_comparison TO biomart_user;


--
-- Name: TABLE de_snp_calls_by_gsm; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_calls_by_gsm TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_calls_by_gsm TO biomart_user;


--
-- Name: TABLE de_snp_copy_number; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_copy_number TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_copy_number TO biomart_user;


--
-- Name: TABLE de_snp_data_by_patient; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_data_by_patient TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_data_by_patient TO biomart_user;


--
-- Name: TABLE de_snp_data_by_probe; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_data_by_probe TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_data_by_probe TO biomart_user;


--
-- Name: TABLE de_snp_data_dataset_loc; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_data_dataset_loc TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_data_dataset_loc TO biomart_user;


--
-- Name: TABLE de_snp_gene_map; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_gene_map TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_gene_map TO biomart_user;


--
-- Name: TABLE de_snp_info; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_info TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_info TO biomart_user;


--
-- Name: TABLE de_snp_probe; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_probe TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_probe TO biomart_user;


--
-- Name: TABLE de_snp_probe_sorted_def; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_probe_sorted_def TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_probe_sorted_def TO biomart_user;


--
-- Name: TABLE de_snp_subject_sorted_def; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_snp_subject_sorted_def TO tm_cz;
GRANT SELECT ON TABLE deapp.de_snp_subject_sorted_def TO biomart_user;


--
-- Name: TABLE de_subject_acgh_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_acgh_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_acgh_data TO biomart_user;


--
-- Name: TABLE de_subject_metabolomics_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_metabolomics_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_metabolomics_data TO biomart_user;


--
-- Name: TABLE de_subject_microarray_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_microarray_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_microarray_data TO biomart_user;


--
-- Name: TABLE de_subject_microarray_data_new; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_subject_microarray_data_new TO tm_cz;
GRANT SELECT ON TABLE deapp.de_subject_microarray_data_new TO biomart_user;


--
-- Name: TABLE de_subject_microarray_logs; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_microarray_logs TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_microarray_logs TO biomart_user;


--
-- Name: TABLE de_subject_microarray_med; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_microarray_med TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_microarray_med TO biomart_user;


--
-- Name: TABLE de_subject_mirna_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_mirna_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_mirna_data TO biomart_user;


--
-- Name: TABLE de_subject_protein_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_protein_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_protein_data TO biomart_user;


--
-- Name: TABLE de_subject_proteomics_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_proteomics_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_proteomics_data TO biomart_user;


--
-- Name: TABLE de_subject_rbm_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_rbm_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_rbm_data TO biomart_user;


--
-- Name: SEQUENCE de_subject_rbm_data_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_subject_rbm_data_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_subject_rbm_data_seq TO biomart_user;


--
-- Name: TABLE de_subject_rna_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_rna_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_rna_data TO biomart_user;


--
-- Name: TABLE de_subject_rnaseq_data; Type: ACL; Schema: deapp; Owner: tm_cz
--

GRANT ALL ON TABLE deapp.de_subject_rnaseq_data TO deapp;
GRANT SELECT ON TABLE deapp.de_subject_rnaseq_data TO biomart_user;


--
-- Name: TABLE de_subject_sample_mapping; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_subject_sample_mapping TO tm_cz;
GRANT SELECT ON TABLE deapp.de_subject_sample_mapping TO biomart_user;
GRANT SELECT ON TABLE deapp.de_subject_sample_mapping TO tm_lz;


--
-- Name: TABLE de_subject_snp_dataset; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_subject_snp_dataset TO tm_cz;
GRANT SELECT ON TABLE deapp.de_subject_snp_dataset TO biomart_user;


--
-- Name: SEQUENCE de_two_region_event_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_two_region_event_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_two_region_event_seq TO biomart_user;


--
-- Name: TABLE de_two_region_event; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_two_region_event TO tm_cz;
GRANT SELECT ON TABLE deapp.de_two_region_event TO biomart_user;


--
-- Name: SEQUENCE de_two_region_event_gene_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_two_region_event_gene_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_two_region_event_gene_seq TO biomart_user;


--
-- Name: TABLE de_two_region_event_gene; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_two_region_event_gene TO tm_cz;
GRANT SELECT ON TABLE deapp.de_two_region_event_gene TO biomart_user;


--
-- Name: SEQUENCE de_two_region_junction_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_two_region_junction_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_two_region_junction_seq TO biomart_user;


--
-- Name: TABLE de_two_region_junction; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_two_region_junction TO tm_cz;
GRANT SELECT ON TABLE deapp.de_two_region_junction TO biomart_user;


--
-- Name: SEQUENCE de_two_rgn_junction_event_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_two_rgn_junction_event_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_two_rgn_junction_event_seq TO biomart_user;


--
-- Name: TABLE de_two_region_junction_event; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_two_region_junction_event TO tm_cz;
GRANT SELECT ON TABLE deapp.de_two_region_junction_event TO biomart_user;


--
-- Name: TABLE de_variant_dataset; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_dataset TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_dataset TO biomart_user;


--
-- Name: SEQUENCE de_variant_metadata_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_variant_metadata_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_variant_metadata_seq TO biomart_user;


--
-- Name: TABLE de_variant_metadata; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_metadata TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_metadata TO biomart_user;


--
-- Name: SEQUENCE de_variant_population_data_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_variant_population_data_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_variant_population_data_seq TO biomart_user;


--
-- Name: TABLE de_variant_population_data; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_population_data TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_population_data TO biomart_user;


--
-- Name: SEQUENCE de_variant_population_info_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_variant_population_info_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_variant_population_info_seq TO biomart_user;


--
-- Name: TABLE de_variant_population_info; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_population_info TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_population_info TO biomart_user;


--
-- Name: SEQUENCE de_variant_subject_detail_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_variant_subject_detail_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_variant_subject_detail_seq TO biomart_user;


--
-- Name: TABLE de_variant_subject_detail; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_subject_detail TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_subject_detail TO biomart_user;


--
-- Name: SEQUENCE de_variant_subject_idx_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_variant_subject_idx_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_variant_subject_idx_seq TO biomart_user;


--
-- Name: TABLE de_variant_subject_idx; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_subject_idx TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_subject_idx TO biomart_user;


--
-- Name: SEQUENCE de_variant_subject_summary_seq; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.de_variant_subject_summary_seq TO tm_cz;
GRANT ALL ON SEQUENCE deapp.de_variant_subject_summary_seq TO biomart_user;


--
-- Name: TABLE de_variant_subject_summary; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_subject_summary TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_subject_summary TO biomart_user;


--
-- Name: TABLE de_variant_summary_detail_gene; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_variant_summary_detail_gene TO tm_cz;
GRANT SELECT ON TABLE deapp.de_variant_summary_detail_gene TO biomart_user;


--
-- Name: TABLE de_xtrial_child_map; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_xtrial_child_map TO tm_cz;
GRANT SELECT ON TABLE deapp.de_xtrial_child_map TO biomart_user;


--
-- Name: TABLE de_xtrial_parent_names; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.de_xtrial_parent_names TO tm_cz;
GRANT SELECT ON TABLE deapp.de_xtrial_parent_names TO biomart_user;


--
-- Name: TABLE deapp_annotation; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.deapp_annotation TO tm_cz;
GRANT SELECT ON TABLE deapp.deapp_annotation TO biomart_user;


--
-- Name: TABLE haploview_data; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.haploview_data TO tm_cz;
GRANT SELECT ON TABLE deapp.haploview_data TO biomart_user;


--
-- Name: TABLE kegg; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.kegg TO tm_cz;
GRANT SELECT ON TABLE deapp.kegg TO biomart_user;


--
-- Name: TABLE kegg_data; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.kegg_data TO tm_cz;
GRANT SELECT ON TABLE deapp.kegg_data TO biomart_user;


--
-- Name: TABLE kegg_def; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.kegg_def TO tm_cz;
GRANT SELECT ON TABLE deapp.kegg_def TO biomart_user;


--
-- Name: SEQUENCE metabolite_sub_pth_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.metabolite_sub_pth_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.metabolite_sub_pth_id TO biomart_user;


--
-- Name: SEQUENCE metabolite_sup_pth_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.metabolite_sup_pth_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.metabolite_sup_pth_id TO biomart_user;


--
-- Name: SEQUENCE metabolomics_annot_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.metabolomics_annot_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.metabolomics_annot_id TO biomart_user;


--
-- Name: SEQUENCE rbm_annotation_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.rbm_annotation_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.rbm_annotation_id TO biomart_user;


--
-- Name: TABLE ricerca; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON TABLE deapp.ricerca TO tm_cz;
GRANT SELECT ON TABLE deapp.ricerca TO biomart_user;


--
-- Name: SEQUENCE seq_assay_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_assay_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_assay_id TO biomart_user;


--
-- Name: SEQUENCE seq_data_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_data_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_data_id TO biomart_user;


--
-- Name: SEQUENCE seq_de_mrna_annotation_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_de_mrna_annotation_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_de_mrna_annotation_id TO biomart_user;


--
-- Name: SEQUENCE seq_metabolomics_partition_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_metabolomics_partition_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_metabolomics_partition_id TO biomart_user;


--
-- Name: SEQUENCE seq_mrna_partition_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_mrna_partition_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_mrna_partition_id TO biomart_user;


--
-- Name: SEQUENCE seq_proteomics_partition_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_proteomics_partition_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_proteomics_partition_id TO biomart_user;


--
-- Name: SEQUENCE seq_rbm_partition_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_rbm_partition_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_rbm_partition_id TO biomart_user;


--
-- Name: SEQUENCE seq_rna_partition_id; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.seq_rna_partition_id TO tm_cz;
GRANT ALL ON SEQUENCE deapp.seq_rna_partition_id TO biomart_user;


--
-- Name: SEQUENCE tt; Type: ACL; Schema: deapp; Owner: deapp
--

GRANT ALL ON SEQUENCE deapp.tt TO tm_cz;
GRANT ALL ON SEQUENCE deapp.tt TO biomart_user;


--
-- Name: TABLE fm_file; Type: ACL; Schema: fmapp; Owner: fmapp
--

GRANT ALL ON TABLE fmapp.fm_file TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE fmapp.fm_file TO biomart_user;


--
-- Name: TABLE fm_folder_file_association; Type: ACL; Schema: fmapp; Owner: fmapp
--

GRANT ALL ON TABLE fmapp.fm_folder_file_association TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE fmapp.fm_folder_file_association TO biomart_user;


--
-- Name: SEQUENCE seq_fm_id; Type: ACL; Schema: fmapp; Owner: fmapp
--

GRANT ALL ON SEQUENCE fmapp.seq_fm_id TO tm_cz;
GRANT ALL ON SEQUENCE fmapp.seq_fm_id TO biomart_user;


--
-- Name: SEQUENCE hibernate_id; Type: ACL; Schema: galaxy; Owner: galaxy
--

GRANT ALL ON SEQUENCE galaxy.hibernate_id TO tm_cz;
GRANT ALL ON SEQUENCE galaxy.hibernate_id TO biomart_user;


--
-- Name: TABLE status_of_export_job; Type: ACL; Schema: galaxy; Owner: galaxy
--

GRANT ALL ON TABLE galaxy.status_of_export_job TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE galaxy.status_of_export_job TO biomart_user;


--
-- Name: SEQUENCE status_of_export_job_seq; Type: ACL; Schema: galaxy; Owner: galaxy
--

GRANT ALL ON SEQUENCE galaxy.status_of_export_job_seq TO tm_cz;
GRANT ALL ON SEQUENCE galaxy.status_of_export_job_seq TO biomart_user;


--
-- Name: TABLE users_details_for_export_gal; Type: ACL; Schema: galaxy; Owner: galaxy
--

GRANT ALL ON TABLE galaxy.users_details_for_export_gal TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE galaxy.users_details_for_export_gal TO biomart_user;


--
-- Name: TABLE archive_observation_fact; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.archive_observation_fact TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.archive_observation_fact TO biomart_user;


--
-- Name: TABLE async_job; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.async_job TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE i2b2demodata.async_job TO biomart_user;


--
-- Name: SEQUENCE async_job_seq; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.async_job_seq TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.async_job_seq TO biomart_user;


--
-- Name: TABLE cd; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.cd TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.cd TO biomart_user;


--
-- Name: TABLE code_lookup; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.code_lookup TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.code_lookup TO biomart_user;


--
-- Name: TABLE concept_counts; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.concept_counts TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.concept_counts TO biomart_user;


--
-- Name: TABLE concept_dimension; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.concept_dimension TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.concept_dimension TO biomart_user;


--
-- Name: SEQUENCE concept_id; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.concept_id TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.concept_id TO biomart_user;


--
-- Name: TABLE counter; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.counter TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.counter TO biomart_user;


--
-- Name: TABLE crc_db_lookup; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.crc_db_lookup TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.crc_db_lookup TO biomart_user;


--
-- Name: TABLE datamart_report; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.datamart_report TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.datamart_report TO biomart_user;


--
-- Name: TABLE dimloader; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.dimloader TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.dimloader TO biomart_user;


--
-- Name: TABLE encounter_mapping; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.encounter_mapping TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.encounter_mapping TO biomart_user;


--
-- Name: TABLE hilosequences; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.hilosequences TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.hilosequences TO biomart_user;


--
-- Name: TABLE jms_messages; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.jms_messages TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.jms_messages TO biomart_user;


--
-- Name: TABLE jms_roles; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.jms_roles TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.jms_roles TO biomart_user;


--
-- Name: TABLE jms_subscriptions; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.jms_subscriptions TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.jms_subscriptions TO biomart_user;


--
-- Name: TABLE jms_transactions; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.jms_transactions TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.jms_transactions TO biomart_user;


--
-- Name: TABLE jms_users; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.jms_users TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.jms_users TO biomart_user;


--
-- Name: TABLE map; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.map TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.map TO biomart_user;


--
-- Name: TABLE modifier_dimension; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.modifier_dimension TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.modifier_dimension TO biomart_user;


--
-- Name: TABLE modifier_metadata; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.modifier_metadata TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.modifier_metadata TO biomart_user;


--
-- Name: TABLE modifier_dimension_view; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.modifier_dimension_view TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.modifier_dimension_view TO biomart_user;


--
-- Name: TABLE news_updates; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.news_updates TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.news_updates TO biomart_user;


--
-- Name: TABLE observation_fact; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.observation_fact TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.observation_fact TO biomart_user;


--
-- Name: TABLE patient_dimension; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.patient_dimension TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.patient_dimension TO biomart_user;


--
-- Name: TABLE patient_mapping; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.patient_mapping TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.patient_mapping TO biomart_user;


--
-- Name: TABLE patient_trial; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.patient_trial TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.patient_trial TO biomart_user;


--
-- Name: SEQUENCE protocol_id_seq; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.protocol_id_seq TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.protocol_id_seq TO biomart_user;


--
-- Name: TABLE provider_dimension; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.provider_dimension TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.provider_dimension TO biomart_user;


--
-- Name: TABLE qt_analysis_plugin; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_analysis_plugin TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_analysis_plugin TO biomart_user;


--
-- Name: TABLE qt_analysis_plugin_result_type; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_analysis_plugin_result_type TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_analysis_plugin_result_type TO biomart_user;


--
-- Name: TABLE qt_breakdown_path; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_breakdown_path TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_breakdown_path TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qper_pecid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qper_pecid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qper_pecid TO biomart_user;


--
-- Name: TABLE qt_patient_enc_collection; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_patient_enc_collection TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_patient_enc_collection TO biomart_user;


--
-- Name: TABLE qt_patient_sample_collection; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_patient_sample_collection TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE i2b2demodata.qt_patient_sample_collection TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qpr_pcid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qpr_pcid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qpr_pcid TO biomart_user;


--
-- Name: TABLE qt_patient_set_collection; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_patient_set_collection TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE i2b2demodata.qt_patient_set_collection TO biomart_user;


--
-- Name: SEQUENCE qt_sq_pqm_qmid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_pqm_qmid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_pqm_qmid TO biomart_user;


--
-- Name: TABLE qt_pdo_query_master; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_pdo_query_master TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_pdo_query_master TO biomart_user;


--
-- Name: TABLE qt_privilege; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_privilege TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_privilege TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qi_qiid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qi_qiid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qi_qiid TO biomart_user;


--
-- Name: TABLE qt_query_instance; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_query_instance TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE i2b2demodata.qt_query_instance TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qm_qmid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qm_qmid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qm_qmid TO biomart_user;


--
-- Name: TABLE qt_query_master; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_query_master TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE i2b2demodata.qt_query_master TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qri_qriid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qri_qriid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qri_qriid TO biomart_user;


--
-- Name: TABLE qt_query_result_instance; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_query_result_instance TO tm_cz;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE i2b2demodata.qt_query_result_instance TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qr_qrid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qr_qrid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qr_qrid TO biomart_user;


--
-- Name: TABLE qt_query_result_type; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_query_result_type TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_query_result_type TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qs_qsid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qs_qsid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qs_qsid TO biomart_user;


--
-- Name: TABLE qt_query_status_type; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_query_status_type TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_query_status_type TO biomart_user;


--
-- Name: SEQUENCE qt_sq_qxr_xrid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qxr_xrid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.qt_sq_qxr_xrid TO biomart_user;


--
-- Name: TABLE qt_xml_result; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.qt_xml_result TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.qt_xml_result TO biomart_user;


--
-- Name: TABLE ricerca; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.ricerca TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.ricerca TO biomart_user;


--
-- Name: TABLE sample_categories; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.sample_categories TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.sample_categories TO biomart_user;


--
-- Name: TABLE sample_dimension; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.sample_dimension TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.sample_dimension TO biomart_user;


--
-- Name: SEQUENCE seq_encounter_num; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.seq_encounter_num TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.seq_encounter_num TO biomart_user;


--
-- Name: SEQUENCE seq_patient_num; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.seq_patient_num TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.seq_patient_num TO biomart_user;


--
-- Name: SEQUENCE seq_subject_reference; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.seq_subject_reference TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.seq_subject_reference TO biomart_user;


--
-- Name: SEQUENCE sq_up_patdim_patientnum; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.sq_up_patdim_patientnum TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.sq_up_patdim_patientnum TO biomart_user;


--
-- Name: TABLE set_type; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.set_type TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.set_type TO biomart_user;


--
-- Name: TABLE set_upload_status; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.set_upload_status TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.set_upload_status TO biomart_user;


--
-- Name: TABLE source_master; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.source_master TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.source_master TO biomart_user;


--
-- Name: SEQUENCE sq_up_encdim_encounternum; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.sq_up_encdim_encounternum TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.sq_up_encdim_encounternum TO biomart_user;


--
-- Name: SEQUENCE sq_uploadstatus_uploadid; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON SEQUENCE i2b2demodata.sq_uploadstatus_uploadid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2demodata.sq_uploadstatus_uploadid TO biomart_user;


--
-- Name: TABLE timers; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.timers TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.timers TO biomart_user;


--
-- Name: TABLE upload_status; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.upload_status TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.upload_status TO biomart_user;


--
-- Name: TABLE visit_dimension; Type: ACL; Schema: i2b2demodata; Owner: i2b2demodata
--

GRANT ALL ON TABLE i2b2demodata.visit_dimension TO tm_cz;
GRANT SELECT ON TABLE i2b2demodata.visit_dimension TO biomart_user;


--
-- Name: TABLE custom_meta; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.custom_meta TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.custom_meta TO biomart_user;


--
-- Name: TABLE i2b2; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.i2b2 TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.i2b2 TO biomart_user;


--
-- Name: SEQUENCE i2b2_id_seq; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON SEQUENCE i2b2metadata.i2b2_id_seq TO tm_cz;
GRANT ALL ON SEQUENCE i2b2metadata.i2b2_id_seq TO biomart_user;


--
-- Name: TABLE i2b2_secure; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.i2b2_secure TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.i2b2_secure TO biomart_user;


--
-- Name: TABLE i2b2_tags; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.i2b2_tags TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.i2b2_tags TO biomart_user;


--
-- Name: TABLE i2b2_trial_nodes; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.i2b2_trial_nodes TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.i2b2_trial_nodes TO biomart_user;


--
-- Name: TABLE ont_db_lookup; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.ont_db_lookup TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.ont_db_lookup TO biomart_user;


--
-- Name: SEQUENCE ont_sq_ps_prid; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON SEQUENCE i2b2metadata.ont_sq_ps_prid TO tm_cz;
GRANT ALL ON SEQUENCE i2b2metadata.ont_sq_ps_prid TO biomart_user;


--
-- Name: TABLE ont_process_status; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.ont_process_status TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.ont_process_status TO biomart_user;


--
-- Name: TABLE schemes; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.schemes TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.schemes TO biomart_user;


--
-- Name: SEQUENCE seq_concept_code; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON SEQUENCE i2b2metadata.seq_concept_code TO tm_cz;
GRANT ALL ON SEQUENCE i2b2metadata.seq_concept_code TO biomart_user;


--
-- Name: SEQUENCE seq_i2b2_data_id; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON SEQUENCE i2b2metadata.seq_i2b2_data_id TO tm_cz;
GRANT ALL ON SEQUENCE i2b2metadata.seq_i2b2_data_id TO biomart_user;


--
-- Name: SEQUENCE sq_i2b2_id; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON SEQUENCE i2b2metadata.sq_i2b2_id TO tm_cz;
GRANT ALL ON SEQUENCE i2b2metadata.sq_i2b2_id TO biomart_user;


--
-- Name: SEQUENCE sq_i2b2_tag_id; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON SEQUENCE i2b2metadata.sq_i2b2_tag_id TO tm_cz;
GRANT ALL ON SEQUENCE i2b2metadata.sq_i2b2_tag_id TO biomart_user;


--
-- Name: TABLE table_access; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.table_access TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.table_access TO biomart_user;


--
-- Name: TABLE tmp_secure_token; Type: ACL; Schema: i2b2metadata; Owner: i2b2metadata
--

GRANT ALL ON TABLE i2b2metadata.tmp_secure_token TO tm_cz;
GRANT SELECT ON TABLE i2b2metadata.tmp_secure_token TO biomart_user;


--
-- Name: SEQUENCE hibernate_sequence; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON SEQUENCE searchapp.hibernate_sequence TO tm_cz;
GRANT ALL ON SEQUENCE searchapp.hibernate_sequence TO biomart_user;


--
-- Name: TABLE search_gene_signature; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_gene_signature TO tm_cz;
GRANT ALL ON TABLE searchapp.search_gene_signature TO biomart_user;


--
-- Name: TABLE search_gene_signature_item; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_gene_signature_item TO tm_cz;
GRANT ALL ON TABLE searchapp.search_gene_signature_item TO biomart_user;


--
-- Name: TABLE search_keyword; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_keyword TO tm_cz;
GRANT ALL ON TABLE searchapp.search_keyword TO biomart_user;


--
-- Name: TABLE listsig_genes; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.listsig_genes TO tm_cz;
GRANT SELECT ON TABLE searchapp.listsig_genes TO biomart_user;


--
-- Name: TABLE pathway_genes; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.pathway_genes TO tm_cz;
GRANT SELECT ON TABLE searchapp.pathway_genes TO biomart_user;


--
-- Name: TABLE plugin; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.plugin TO tm_cz;
GRANT ALL ON TABLE searchapp.plugin TO biomart_user;


--
-- Name: TABLE plugin_module; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.plugin_module TO tm_cz;
GRANT ALL ON TABLE searchapp.plugin_module TO biomart_user;


--
-- Name: TABLE plugin_module_backup; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.plugin_module_backup TO tm_cz;
GRANT ALL ON TABLE searchapp.plugin_module_backup TO biomart_user;


--
-- Name: SEQUENCE plugin_module_seq; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON SEQUENCE searchapp.plugin_module_seq TO tm_cz;
GRANT ALL ON SEQUENCE searchapp.plugin_module_seq TO biomart_user;


--
-- Name: SEQUENCE plugin_seq; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON SEQUENCE searchapp.plugin_seq TO tm_cz;
GRANT ALL ON SEQUENCE searchapp.plugin_seq TO biomart_user;


--
-- Name: TABLE report; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.report TO tm_cz;
GRANT ALL ON TABLE searchapp.report TO biomart_user;


--
-- Name: TABLE report_item; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.report_item TO tm_cz;
GRANT ALL ON TABLE searchapp.report_item TO biomart_user;


--
-- Name: TABLE saved_faceted_search; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.saved_faceted_search TO tm_cz;
GRANT ALL ON TABLE searchapp.saved_faceted_search TO biomart_user;


--
-- Name: TABLE search_app_access_log; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_app_access_log TO tm_cz;
GRANT ALL ON TABLE searchapp.search_app_access_log TO biomart_user;


--
-- Name: TABLE search_auth_group; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_auth_group TO tm_cz;
GRANT ALL ON TABLE searchapp.search_auth_group TO biomart_user;


--
-- Name: TABLE search_auth_group_member; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_auth_group_member TO tm_cz;
GRANT ALL ON TABLE searchapp.search_auth_group_member TO biomart_user;


--
-- Name: TABLE search_auth_principal; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_auth_principal TO tm_cz;
GRANT ALL ON TABLE searchapp.search_auth_principal TO biomart_user;


--
-- Name: TABLE search_auth_sec_object_access; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_auth_sec_object_access TO tm_cz;
GRANT ALL ON TABLE searchapp.search_auth_sec_object_access TO biomart_user;


--
-- Name: TABLE search_auth_user; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_auth_user TO tm_cz;
GRANT ALL ON TABLE searchapp.search_auth_user TO biomart_user;


--
-- Name: TABLE search_auth_user_sec_access; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_auth_user_sec_access TO tm_cz;
GRANT ALL ON TABLE searchapp.search_auth_user_sec_access TO biomart_user;


--
-- Name: TABLE search_auth_user_sec_access_v; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_auth_user_sec_access_v TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_auth_user_sec_access_v TO biomart_user;


--
-- Name: TABLE search_bio_mkr_correl_fast_mv; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_bio_mkr_correl_fast_mv TO tm_cz;
GRANT ALL ON TABLE searchapp.search_bio_mkr_correl_fast_mv TO biomart_user;


--
-- Name: TABLE search_bio_mkr_correl_fast_view; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_bio_mkr_correl_fast_view TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_bio_mkr_correl_fast_view TO biomart_user;


--
-- Name: TABLE search_bio_mkr_correl_view; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_bio_mkr_correl_view TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_bio_mkr_correl_view TO biomart_user;


--
-- Name: TABLE search_taxonomy; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy TO tm_cz;
GRANT ALL ON TABLE searchapp.search_taxonomy TO biomart_user;


--
-- Name: TABLE search_taxonomy_rels; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_rels TO tm_cz;
GRANT ALL ON TABLE searchapp.search_taxonomy_rels TO biomart_user;


--
-- Name: TABLE search_categories; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_categories TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_categories TO biomart_user;


--
-- Name: TABLE search_custom_filter; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_custom_filter TO tm_cz;
GRANT ALL ON TABLE searchapp.search_custom_filter TO biomart_user;


--
-- Name: TABLE search_custom_filter_item; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_custom_filter_item TO tm_cz;
GRANT ALL ON TABLE searchapp.search_custom_filter_item TO biomart_user;


--
-- Name: TABLE search_form_layout; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_form_layout TO tm_cz;
GRANT ALL ON TABLE searchapp.search_form_layout TO biomart_user;


--
-- Name: TABLE search_gene_sig_file_schema; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_gene_sig_file_schema TO tm_cz;
GRANT ALL ON TABLE searchapp.search_gene_sig_file_schema TO biomart_user;


--
-- Name: TABLE search_keyword_term; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_keyword_term TO tm_cz;
GRANT ALL ON TABLE searchapp.search_keyword_term TO biomart_user;


--
-- Name: TABLE search_request_map; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_request_map TO tm_cz;
GRANT ALL ON TABLE searchapp.search_request_map TO biomart_user;


--
-- Name: TABLE search_required_upload_field; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_required_upload_field TO tm_cz;
GRANT ALL ON TABLE searchapp.search_required_upload_field TO biomart_user;


--
-- Name: TABLE search_role; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_role TO tm_cz;
GRANT ALL ON TABLE searchapp.search_role TO biomart_user;


--
-- Name: TABLE search_role_auth_user; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_role_auth_user TO tm_cz;
GRANT ALL ON TABLE searchapp.search_role_auth_user TO biomart_user;


--
-- Name: TABLE search_sec_access_level; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_sec_access_level TO tm_cz;
GRANT ALL ON TABLE searchapp.search_sec_access_level TO biomart_user;


--
-- Name: TABLE search_secure_object; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_secure_object TO tm_cz;
GRANT ALL ON TABLE searchapp.search_secure_object TO biomart_user;


--
-- Name: TABLE search_secure_object_path; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_secure_object_path TO tm_cz;
GRANT ALL ON TABLE searchapp.search_secure_object_path TO biomart_user;


--
-- Name: TABLE search_taxonomy_level1; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_level1 TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_taxonomy_level1 TO biomart_user;


--
-- Name: TABLE search_taxonomy_level2; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_level2 TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_taxonomy_level2 TO biomart_user;


--
-- Name: TABLE search_taxonomy_level3; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_level3 TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_taxonomy_level3 TO biomart_user;


--
-- Name: TABLE search_taxonomy_level4; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_level4 TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_taxonomy_level4 TO biomart_user;


--
-- Name: TABLE search_taxonomy_level5; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_level5 TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_taxonomy_level5 TO biomart_user;


--
-- Name: TABLE search_taxonomy_lineage; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_lineage TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_taxonomy_lineage TO biomart_user;


--
-- Name: TABLE search_taxonomy_terms_cats; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_taxonomy_terms_cats TO tm_cz;
GRANT SELECT ON TABLE searchapp.search_taxonomy_terms_cats TO biomart_user;


--
-- Name: TABLE search_user_feedback; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_user_feedback TO tm_cz;
GRANT ALL ON TABLE searchapp.search_user_feedback TO biomart_user;


--
-- Name: TABLE search_user_settings; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.search_user_settings TO tm_cz;
GRANT ALL ON TABLE searchapp.search_user_settings TO biomart_user;


--
-- Name: SEQUENCE seq_req_upload_field_id; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON SEQUENCE searchapp.seq_req_upload_field_id TO tm_cz;
GRANT ALL ON SEQUENCE searchapp.seq_req_upload_field_id TO biomart_user;


--
-- Name: SEQUENCE seq_saved_faceted_search_id; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON SEQUENCE searchapp.seq_saved_faceted_search_id TO tm_cz;
GRANT ALL ON SEQUENCE searchapp.seq_saved_faceted_search_id TO biomart_user;


--
-- Name: SEQUENCE seq_search_data_id; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON SEQUENCE searchapp.seq_search_data_id TO tm_cz;
GRANT ALL ON SEQUENCE searchapp.seq_search_data_id TO biomart_user;


--
-- Name: SEQUENCE seq_search_form_layout_id; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON SEQUENCE searchapp.seq_search_form_layout_id TO tm_cz;
GRANT ALL ON SEQUENCE searchapp.seq_search_form_layout_id TO biomart_user;


--
-- Name: TABLE solr_keywords_lineage; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.solr_keywords_lineage TO tm_cz;
GRANT SELECT ON TABLE searchapp.solr_keywords_lineage TO biomart_user;


--
-- Name: TABLE subset; Type: ACL; Schema: searchapp; Owner: searchapp
--

GRANT ALL ON TABLE searchapp.subset TO tm_cz;
GRANT ALL ON TABLE searchapp.subset TO biomart_user;


--
-- Name: TABLE lz_src_sample_categories; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_sample_categories TO tm_cz;


--
-- Name: TABLE clinical_trial_metadata_ext; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.clinical_trial_metadata_ext TO tm_cz;


--
-- Name: SEQUENCE lt_chromo_region_id_seq; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON SEQUENCE tm_lz.lt_chromo_region_id_seq TO tm_cz;


--
-- Name: TABLE lt_chromosomal_region; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_chromosomal_region TO tm_cz;


--
-- Name: TABLE lt_metabolomic_annotation; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_metabolomic_annotation TO tm_cz;


--
-- Name: TABLE lt_metabolomic_display_mapping; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_metabolomic_display_mapping TO tm_cz;


--
-- Name: TABLE lt_protein_annotation; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_protein_annotation TO tm_cz;


--
-- Name: TABLE lt_qpcr_mirna_annotation; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_qpcr_mirna_annotation TO tm_cz;


--
-- Name: TABLE lt_rnaseq_annotation; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_rnaseq_annotation TO tm_cz;


--
-- Name: TABLE lt_snp_calls_by_gsm; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_snp_calls_by_gsm TO tm_cz;


--
-- Name: TABLE lt_snp_copy_number; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_snp_copy_number TO tm_cz;


--
-- Name: TABLE lt_snp_gene_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_snp_gene_map TO tm_cz;


--
-- Name: TABLE lt_src_acgh_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_acgh_data TO tm_cz;


--
-- Name: TABLE lt_src_cel_files; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_cel_files TO tm_cz;


--
-- Name: TABLE lt_src_clinical_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_clinical_data TO tm_cz;


--
-- Name: TABLE lt_src_data_metadata; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_data_metadata TO tm_cz;


--
-- Name: TABLE lt_src_deapp_annot; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_deapp_annot TO tm_cz;


--
-- Name: TABLE lt_src_display_mapping; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_display_mapping TO tm_cz;


--
-- Name: TABLE lt_src_metabolomic_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_metabolomic_data TO tm_cz;


--
-- Name: TABLE lt_src_metabolomic_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_metabolomic_map TO tm_cz;


--
-- Name: TABLE lt_src_metabolomics_display_mapping; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_metabolomics_display_mapping TO tm_cz;


--
-- Name: TABLE lt_src_mirna_deapp_annot; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_mirna_deapp_annot TO tm_cz;


--
-- Name: TABLE lt_src_mirna_display_mapping; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_mirna_display_mapping TO tm_cz;


--
-- Name: TABLE lt_src_mirna_subj_samp_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_mirna_subj_samp_map TO tm_cz;


--
-- Name: TABLE lt_src_mrna_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_mrna_data TO tm_cz;


--
-- Name: TABLE lt_src_mrna_subj_samp_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_mrna_subj_samp_map TO tm_cz;


--
-- Name: TABLE lt_src_nextbio; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_nextbio TO tm_cz;


--
-- Name: TABLE lt_src_omicsoft_annot; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_omicsoft_annot TO tm_cz;


--
-- Name: TABLE lt_src_omicsoft_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_omicsoft_data TO tm_cz;


--
-- Name: TABLE lt_src_pathway; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_pathway TO tm_cz;


--
-- Name: TABLE lt_src_pathway_org; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_pathway_org TO tm_cz;


--
-- Name: TABLE lt_src_protein_display_mapping; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_protein_display_mapping TO tm_cz;


--
-- Name: TABLE lt_src_proteomics_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_proteomics_data TO tm_cz;


--
-- Name: TABLE lt_src_proteomics_sub_sam_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_proteomics_sub_sam_map TO tm_cz;


--
-- Name: TABLE lt_src_qpcr_mirna_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_qpcr_mirna_data TO tm_cz;


--
-- Name: TABLE lt_src_rbm_annotation; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rbm_annotation TO tm_cz;


--
-- Name: TABLE lt_src_rbm_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rbm_data TO tm_cz;


--
-- Name: TABLE lt_src_rbm_display_mapping; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rbm_display_mapping TO tm_cz;


--
-- Name: TABLE lt_src_rbm_subj_samp_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rbm_subj_samp_map TO tm_cz;


--
-- Name: TABLE lt_src_rna_display_mapping; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rna_display_mapping TO tm_cz;


--
-- Name: TABLE lt_src_rna_seq_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rna_seq_data TO tm_cz;


--
-- Name: TABLE lt_src_rna_seq_subj_samp_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rna_seq_subj_samp_map TO tm_cz;


--
-- Name: TABLE lt_src_rnaseq_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_rnaseq_data TO tm_cz;


--
-- Name: TABLE lt_src_sample_categories; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_sample_categories TO tm_cz;


--
-- Name: TABLE lt_src_search_keyword; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_search_keyword TO tm_cz;


--
-- Name: TABLE lt_src_study_metadata; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_study_metadata TO tm_cz;


--
-- Name: TABLE lt_src_study_metadata_ad_hoc; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_study_metadata_ad_hoc TO tm_cz;


--
-- Name: TABLE lt_src_subj_enroll_date; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lt_src_subj_enroll_date TO tm_cz;


--
-- Name: TABLE lz_src_analysis_metadata; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_analysis_metadata TO tm_cz;


--
-- Name: TABLE lz_src_clinical_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_clinical_data TO tm_cz;


--
-- Name: TABLE lz_src_mrna_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_mrna_data TO tm_cz;


--
-- Name: TABLE lz_src_mrna_subj_samp_map; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_mrna_subj_samp_map TO tm_cz;


--
-- Name: TABLE lz_src_sample_categories_bkup; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_sample_categories_bkup TO tm_cz;


--
-- Name: TABLE lz_src_study_metadata; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_study_metadata TO tm_cz;


--
-- Name: TABLE lz_src_study_metadata_ad_hoc; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_study_metadata_ad_hoc TO tm_cz;


--
-- Name: TABLE lz_src_subj_enroll_date; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.lz_src_subj_enroll_date TO tm_cz;


--
-- Name: TABLE rwg_analysis; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_analysis TO tm_cz;


--
-- Name: TABLE rwg_analysis_data; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_analysis_data TO tm_cz;


--
-- Name: TABLE rwg_analysis_data_ext; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_analysis_data_ext TO tm_cz;


--
-- Name: TABLE rwg_analysis_ext; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_analysis_ext TO tm_cz;


--
-- Name: TABLE rwg_cohorts; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_cohorts TO tm_cz;


--
-- Name: TABLE rwg_cohorts_ext; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_cohorts_ext TO tm_cz;


--
-- Name: TABLE rwg_samples; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_samples TO tm_cz;


--
-- Name: TABLE rwg_samples_ext; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.rwg_samples_ext TO tm_cz;


--
-- Name: SEQUENCE seq_etl_id; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON SEQUENCE tm_lz.seq_etl_id TO tm_cz;


--
-- Name: TABLE wt_snp_node_values; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.wt_snp_node_values TO tm_cz;


--
-- Name: TABLE wt_snp_nodes; Type: ACL; Schema: tm_lz; Owner: tm_lz
--

GRANT ALL ON TABLE tm_lz.wt_snp_nodes TO tm_cz;


--
-- Name: TABLE bio_assay_analysis_data_new; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.bio_assay_analysis_data_new TO tm_cz;


--
-- Name: TABLE tmp_assay_analysis_metrics; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.tmp_assay_analysis_metrics TO tm_cz;


--
-- Name: TABLE wrk_clinical_data; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wrk_clinical_data TO tm_cz;


--
-- Name: TABLE wrk_mrna_data; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wrk_mrna_data TO tm_cz;


--
-- Name: TABLE wt_clinical_data_dups; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_clinical_data_dups TO tm_cz;


--
-- Name: TABLE wt_clinical_encounter; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_clinical_encounter TO tm_cz;


--
-- Name: TABLE wt_del_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_del_nodes TO tm_cz;


--
-- Name: TABLE wt_folder_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_folder_nodes TO tm_cz;


--
-- Name: TABLE wt_metabolomic_node_values; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_metabolomic_node_values TO tm_cz;


--
-- Name: TABLE wt_metabolomic_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_metabolomic_nodes TO tm_cz;


--
-- Name: TABLE wt_mixed_types; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_mixed_types TO tm_cz;


--
-- Name: TABLE wt_mrna_data; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_mrna_data TO tm_cz;


--
-- Name: TABLE wt_mrna_node_values; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_mrna_node_values TO tm_cz;


--
-- Name: TABLE wt_mrna_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_mrna_nodes TO tm_cz;


--
-- Name: TABLE wt_mrna_subj_sample_map; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_mrna_subj_sample_map TO tm_cz;


--
-- Name: TABLE wt_num_data_types; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_num_data_types TO tm_cz;


--
-- Name: TABLE wt_proteomics_node_values; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_proteomics_node_values TO tm_cz;


--
-- Name: TABLE wt_proteomics_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_proteomics_nodes TO tm_cz;


--
-- Name: TABLE wt_qpcr_mirna_node_values; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_qpcr_mirna_node_values TO tm_cz;


--
-- Name: TABLE wt_qpcr_mirna_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_qpcr_mirna_nodes TO tm_cz;


--
-- Name: TABLE wt_rbm_node_values; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_rbm_node_values TO tm_cz;


--
-- Name: TABLE wt_rbm_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_rbm_nodes TO tm_cz;


--
-- Name: TABLE wt_rna_seq_node_values; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_rna_seq_node_values TO tm_cz;


--
-- Name: TABLE wt_rna_seq_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_rna_seq_nodes TO tm_cz;


--
-- Name: TABLE wt_subject_acgh_region; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_acgh_region TO tm_cz;


--
-- Name: TABLE wt_subject_info; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_info TO tm_cz;


--
-- Name: TABLE wt_subject_mbolomics_probeset; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_mbolomics_probeset TO tm_cz;


--
-- Name: TABLE wt_subject_metabolomics_calcs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_metabolomics_calcs TO tm_wz;


--
-- Name: TABLE wt_subject_metabolomics_logs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_metabolomics_logs TO tm_wz;


--
-- Name: TABLE wt_subject_metabolomics_med; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_metabolomics_med TO tm_cz;


--
-- Name: TABLE wt_subject_microarray_calcs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_microarray_calcs TO tm_wz;


--
-- Name: TABLE wt_subject_microarray_logs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_microarray_logs TO tm_wz;


--
-- Name: TABLE wt_subject_microarray_med; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_microarray_med TO tm_cz;


--
-- Name: TABLE wt_subject_mirna_calcs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_mirna_calcs TO tm_wz;


--
-- Name: TABLE wt_subject_mirna_logs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_mirna_logs TO tm_wz;


--
-- Name: TABLE wt_subject_mirna_med; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_mirna_med TO tm_cz;


--
-- Name: TABLE wt_subject_mirna_probeset; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_mirna_probeset TO tm_cz;


--
-- Name: TABLE wt_subject_mrna_data; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_mrna_data TO tm_cz;


--
-- Name: TABLE wt_subject_mrna_probeset; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_mrna_probeset TO tm_cz;


--
-- Name: TABLE wt_subject_proteomics_calcs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_proteomics_calcs TO tm_wz;


--
-- Name: TABLE wt_subject_proteomics_logs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_proteomics_logs TO tm_wz;


--
-- Name: TABLE wt_subject_proteomics_med; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_proteomics_med TO tm_cz;


--
-- Name: TABLE wt_subject_proteomics_probeset; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_proteomics_probeset TO tm_cz;


--
-- Name: TABLE wt_subject_rbm_calcs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rbm_calcs TO tm_wz;


--
-- Name: TABLE wt_subject_rbm_logs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rbm_logs TO tm_wz;


--
-- Name: TABLE wt_subject_rbm_med; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rbm_med TO tm_cz;


--
-- Name: TABLE wt_subject_rbm_probeset; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rbm_probeset TO tm_cz;


--
-- Name: TABLE wt_subject_rna_calcs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rna_calcs TO tm_wz;


--
-- Name: TABLE wt_subject_rna_logs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rna_logs TO tm_wz;


--
-- Name: TABLE wt_subject_rna_med; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rna_med TO tm_cz;


--
-- Name: TABLE wt_subject_rna_probeset; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rna_probeset TO tm_cz;


--
-- Name: TABLE wt_subject_rnaseq_calcs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rnaseq_calcs TO tm_wz;


--
-- Name: TABLE wt_subject_rnaseq_logs; Type: ACL; Schema: tm_wz; Owner: tm_cz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rnaseq_logs TO tm_wz;


--
-- Name: TABLE wt_subject_rnaseq_region; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_rnaseq_region TO tm_cz;


--
-- Name: TABLE wt_subject_sample_mapping; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_subject_sample_mapping TO tm_cz;


--
-- Name: TABLE wt_trial_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_trial_nodes TO tm_cz;


--
-- Name: TABLE wt_vocab_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_vocab_nodes TO tm_cz;


--
-- Name: TABLE wt_xtrial_nodes; Type: ACL; Schema: tm_wz; Owner: tm_wz
--

GRANT ALL ON TABLE tm_wz.wt_xtrial_nodes TO tm_cz;


--
-- Name: TABLE batch_job_execution; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON TABLE ts_batch.batch_job_execution TO tm_cz;


--
-- Name: TABLE batch_job_execution_context; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON TABLE ts_batch.batch_job_execution_context TO tm_cz;


--
-- Name: TABLE batch_job_execution_params; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON TABLE ts_batch.batch_job_execution_params TO tm_cz;


--
-- Name: SEQUENCE batch_job_execution_seq; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON SEQUENCE ts_batch.batch_job_execution_seq TO tm_cz;


--
-- Name: TABLE batch_job_instance; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON TABLE ts_batch.batch_job_instance TO tm_cz;


--
-- Name: SEQUENCE batch_job_seq; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON SEQUENCE ts_batch.batch_job_seq TO tm_cz;


--
-- Name: TABLE batch_step_execution; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON TABLE ts_batch.batch_step_execution TO tm_cz;


--
-- Name: TABLE batch_step_execution_context; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON TABLE ts_batch.batch_step_execution_context TO tm_cz;


--
-- Name: SEQUENCE batch_step_execution_seq; Type: ACL; Schema: ts_batch; Owner: ts_batch
--

GRANT ALL ON SEQUENCE ts_batch.batch_step_execution_seq TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: amapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA amapp GRANT SELECT ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: amapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp GRANT SELECT ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: amapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA amapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA amapp GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: amapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: amapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA amapp GRANT SELECT ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: amapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp GRANT SELECT ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA amapp GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: biomart; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart GRANT SELECT ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: biomart; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart GRANT SELECT ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: biomart; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: biomart; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: biomart; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart GRANT SELECT ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: biomart; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart GRANT SELECT ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: biomart_user; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart_user GRANT ALL ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: biomart_user; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user GRANT ALL ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: biomart_user; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart_user REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart_user GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: biomart_user; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: biomart_user; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA biomart_user GRANT ALL ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: biomart_user; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user GRANT ALL ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA biomart_user GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: deapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA deapp GRANT SELECT ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: deapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp GRANT SELECT ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: deapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA deapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA deapp GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: deapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: deapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA deapp GRANT SELECT ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: deapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp GRANT SELECT ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA deapp GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: fmapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA fmapp GRANT SELECT ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: fmapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp GRANT SELECT ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: fmapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA fmapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA fmapp GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: fmapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: fmapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA fmapp GRANT SELECT ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: fmapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp GRANT SELECT ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA fmapp GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: galaxy; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA galaxy GRANT ALL ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: galaxy; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy GRANT ALL ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: galaxy; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA galaxy REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA galaxy GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: galaxy; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: galaxy; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA galaxy GRANT ALL ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: galaxy; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy GRANT ALL ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA galaxy GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: i2b2demodata; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2demodata GRANT SELECT ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: i2b2demodata; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata GRANT SELECT ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: i2b2demodata; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2demodata REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2demodata GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: i2b2demodata; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: i2b2demodata; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2demodata GRANT SELECT ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: i2b2demodata; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata GRANT SELECT ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2demodata GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: i2b2metadata; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2metadata GRANT SELECT ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: i2b2metadata; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata GRANT SELECT ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: i2b2metadata; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2metadata REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2metadata GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: i2b2metadata; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: i2b2metadata; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA i2b2metadata GRANT SELECT ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: i2b2metadata; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata GRANT SELECT ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA i2b2metadata GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: searchapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA searchapp GRANT USAGE ON SEQUENCES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: searchapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp GRANT USAGE ON SEQUENCES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: searchapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA searchapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA searchapp GRANT ALL ON FUNCTIONS  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: searchapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp GRANT ALL ON FUNCTIONS  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: searchapp; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA searchapp GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO biomart_user;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: searchapp; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO biomart_user;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA searchapp GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tm_cz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_cz REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_cz GRANT ALL ON SEQUENCES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: tm_cz; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_cz REVOKE ALL ON FUNCTIONS  FROM PUBLIC;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: tm_cz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_cz REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_cz REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_cz GRANT ALL ON FUNCTIONS  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tm_cz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_cz REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_cz GRANT ALL ON TABLES  TO tm_cz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tm_lz; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_lz GRANT ALL ON SEQUENCES  TO tm_lz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tm_lz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz GRANT ALL ON SEQUENCES  TO tm_cz;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz GRANT ALL ON SEQUENCES  TO tm_lz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: tm_lz; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_lz REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_lz GRANT ALL ON FUNCTIONS  TO tm_lz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: tm_lz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz GRANT ALL ON FUNCTIONS  TO tm_cz;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz GRANT ALL ON FUNCTIONS  TO tm_lz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tm_lz; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_lz GRANT ALL ON TABLES  TO tm_lz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tm_lz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz GRANT ALL ON TABLES  TO tm_cz;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_lz GRANT ALL ON TABLES  TO tm_lz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tm_wz; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_wz GRANT ALL ON SEQUENCES  TO tm_wz;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tm_wz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz REVOKE ALL ON SEQUENCES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz GRANT ALL ON SEQUENCES  TO tm_cz;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz GRANT ALL ON SEQUENCES  TO tm_wz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: tm_wz; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_wz REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_wz GRANT ALL ON FUNCTIONS  TO tm_wz;


--
-- Name: DEFAULT PRIVILEGES FOR FUNCTIONS; Type: DEFAULT ACL; Schema: tm_wz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz REVOKE ALL ON FUNCTIONS  FROM PUBLIC;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz REVOKE ALL ON FUNCTIONS  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz GRANT ALL ON FUNCTIONS  TO tm_cz;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz GRANT ALL ON FUNCTIONS  TO tm_wz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tm_wz; Owner: tm_cz
--

ALTER DEFAULT PRIVILEGES FOR ROLE tm_cz IN SCHEMA tm_wz GRANT ALL ON TABLES  TO tm_wz;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tm_wz; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz REVOKE ALL ON TABLES  FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz GRANT ALL ON TABLES  TO tm_cz;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tm_wz GRANT ALL ON TABLES  TO tm_wz;


--
--

