Constraints

144 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
organism_id_fk
accession.organism_id
organism.organism_id
Restrict delete
accession_name_id_fk
accession.accession_name_id
accession_names.accession_name_id
Restrict delete
accession_chado_organism_id_fkey
accession.chado_organism_id
organism.organism_id
Restrict delete
marker_id_fk
ests_mapped_by_clone.marker_id
marker.marker_id
Restrict delete
clone_id_fk
ests_mapped_by_clone.clone_id
clone.clone_id
Restrict delete
family_tree_family_id_fkey
family_tree.family_id
family.family_id
Restrict delete
cds_protein_feature_id_fkey
cds.protein_feature_id
feature.feature_id
Restrict delete
cds_unigene_id_fkey
cds.unigene_id
unigene.unigene_id
Cascade on delete
snp_file_file_id_fkey
snp_file.file_id
md_files.file_id
Restrict delete
snp_file_snp_id_fkey
snp_file.snp_id
snp.snp_id
Restrict delete
foriegn
facility.sp_person_id
sp_person.sp_person_id
Restrict delete
library_sp_person_id_fkey
library.sp_person_id
sp_person.sp_person_id
Restrict delete
type_fkey
library.type
types.type_id
Restrict delete
library_chado_organism_id_fkey
library.chado_organism_id
organism.organism_id
Restrict delete
unigene_id_fk
ssr_primer_unigene_matches.unigene_id
unigene.unigene_id
Restrict delete
ssr_id_fk
ssr_primer_unigene_matches.ssr_id
ssr.ssr_id
Restrict delete
organismgroup_member_organism_id_fkey
organismgroup_member.organism_id
organism.organism_id
Restrict delete
organismgroup_member_organismgroup_id_fkey
organismgroup_member.organismgroup_id
organismgroup.organismgroup_id
Restrict delete
organismprop_common_name_id_fkey
common_nameprop.common_name_id
common_name.common_name_id
Restrict delete
organismprop_type_id_fkey
common_nameprop.type_id
cvterm.cvterm_id
Restrict delete
marker_type_fk
deprecated_markers.marker_type
deprecated_marker_types.marker_type_id
Restrict delete
blast_db_blast_db_group_blast_db_group_id_fkey
blast_db_blast_db_group.blast_db_group_id
blast_db_group.blast_db_group_id
Restrict delete
blast_db_blast_db_group_blast_db_id_fkey
blast_db_blast_db_group.blast_db_id
blast_db.blast_db_id
Restrict delete
accession_id_fk
pcr_exp_accession.accession_id
accession.accession_id
Restrict delete
pcr_exp_accession_stock_id_fkey
pcr_exp_accession.stock_id
stock.stock_id
Restrict delete
pcr_experiment_id_fk
pcr_exp_accession.pcr_experiment_id
pcr_experiment.pcr_experiment_id
Cascade on delete
map_ancestor_fkey
map.ancestor
accession.accession_id
Restrict delete
map_parent1_stock_id_fkey
map.parent1_stock_id
stock.stock_id
Restrict delete
map_population_id_fkey
map.population_id
population.population_id
Cascade on delete
map_parent_1_fkey
map.parent_1
accession.accession_id
Restrict delete
map_parent2_stock_id_fkey
map.parent2_stock_id
stock.stock_id
Restrict delete
map_parent_2_fkey
map.parent_2
accession.accession_id
Restrict delete
map_population_stock_id_fkey
map.population_stock_id
stock.stock_id
Restrict delete
interpro_go_go_accession_fkey
interpro_go.go_accession
go.go_accession
Cascade on delete
interpro_go_interpro_accession_fkey
interpro_go.interpro_accession
interpro.interpro_accession
Cascade on delete
domain_dbxref_id_fkey
domain.dbxref_id
dbxref.dbxref_id
Restrict delete
domain_metadata_id_fkey
domain.metadata_id
metadata.metadata_id
Restrict delete
marker_id_fk
cosii_ortholog.marker_id
marker.marker_id
Restrict delete
unigene_build_blast_db_id_fkey
unigene_build.blast_db_id
blast_db.blast_db_id
Restrict delete
unigene_build_superseding_build_id_fkey
unigene_build.superseding_build_id
unigene_build.unigene_build_id
Restrict delete
unigene_build_organism_group_id_fkey
unigene_build.organism_group_id
groups.group_id
Restrict delete
unigene_build_latest_build_id_fkey
unigene_build.latest_build_id
unigene_build.unigene_build_id
Restrict delete
unigene_build_next_build_id_fkey
unigene_build.next_build_id
unigene_build.unigene_build_id
Restrict delete
blast_db_blast_db_group_id_fkey
blast_db.blast_db_group_id
blast_db_group.blast_db_group_id
Restrict delete
family_family_build_id_fkey
family.family_build_id
family_build.family_build_id
Cascade on delete
marker_id_fk
pcr_experiment.marker_id
marker.marker_id
Restrict delete
primer_id_fwd_fk
pcr_experiment.primer_id_fwd
sequence.sequence_id
Restrict delete
map_id_fk
pcr_experiment.map_id
map.map_id
Restrict delete
primer_id_rev_fk
pcr_experiment.primer_id_rev
sequence.sequence_id
Restrict delete
pcr_experiment_stock_id_fkey
pcr_experiment.stock_id
stock.stock_id
Restrict delete
experiment_type_id_fk
pcr_experiment.experiment_type_id
experiment_type.experiment_type_id
Restrict delete
temp_marker_correspondence_old_marker_id_fkey
temp_marker_correspondence.old_marker_id
deprecated_markers.marker_id
Restrict delete
snp_sequence_right_id_fkey
snp.sequence_right_id
sequence.sequence_id
Restrict delete
snp_metadata_id_fkey
snp.metadata_id
md_metadata.metadata_id
Restrict delete
snp_marker_id_fkey
snp.marker_id
marker.marker_id
Restrict delete
snp_stock_id_fkey
snp.stock_id
stock.stock_id
Restrict delete
snp_reference_stock_id_fkey
snp.reference_stock_id
stock.stock_id
Restrict delete
snp_sequence_left_id_fkey
snp.sequence_left_id
sequence.sequence_id
Restrict delete
unigene_unigene_build_id_fkey
unigene.unigene_build_id
unigene_build.unigene_build_id
Restrict delete
unigene_unigene_consensi_id_fkey
unigene.consensi_id
unigene_consensi.consensi_id
Restrict delete
marker_collectible_marker_id_fkey
marker_collectible.marker_id
marker.marker_id
Restrict delete
marker_collectible_mc_id_fkey
marker_collectible.mc_id
marker_collection.mc_id
Restrict delete
pcr_experiment_sequence_sequence_id_fkey
pcr_experiment_sequence.sequence_id
sequence.sequence_id
Cascade on delete
pcr_experiment_sequence_pcr_experiment_id_fkey
pcr_experiment_sequence.pcr_experiment_id
pcr_experiment.pcr_experiment_id
Cascade on delete
pcr_experiment_sequence_type_id_fkey
pcr_experiment_sequence.type_id
cvterm.cvterm_id
Restrict delete
blast_db_organism_organism_id_fkey
blast_db_organism.organism_id
organism.organism_id
Restrict delete
blast_db_organism_blast_db_id_fkey
blast_db_organism.blast_db_id
blast_db.blast_db_id
Restrict delete
marker_id_fk
deprecated_marker_locations.marker_id
deprecated_markers.marker_id
Restrict delete
confidence_fk
deprecated_marker_locations.confidence
deprecated_marker_confidences.legacy_conf_id
Restrict delete
loc_id_fk
deprecated_marker_locations.loc_id
deprecated_mapdata.loc_id
Cascade on delete
domain_match_domain_id_fkey
domain_match.domain_id
domain.domain_id
Cascade on delete
domain_match_metadata_id_fkey
domain_match.metadata_id
metadata.metadata_id
Restrict delete
domain_match_cds_id_fkey
domain_match.cds_id
cds.cds_id
Cascade on delete
read_id_fkey
est.read_id
seqread.read_id
Restrict delete
temp_map_correspondence_old_map_id_fkey
temp_map_correspondence.old_map_id
deprecated_maps.map_id
Restrict delete
temp_map_correspondence_map_version_id_fkey
temp_map_correspondence.map_version_id
map_version.map_version_id
Restrict delete
marker_experiment_marker_id_fkey
marker_experiment.marker_id
marker.marker_id
Restrict delete
marker_experiment_pcr_experiment_id_fkey
marker_experiment.pcr_experiment_id
pcr_experiment.pcr_experiment_id
Restrict delete
marker_experiment_location_id_fkey
marker_experiment.location_id
marker_location.location_id
Cascade on delete
marker_experiment_rflp_experiment_id_fkey
marker_experiment.rflp_experiment_id
rflp_markers.rflp_id
Restrict delete
snpprop_type_id_fkey
snpprop.type_id
cvterm.cvterm_id
Restrict delete
snpprop_snp_id_fkey
snpprop.snp_id
snp.snp_id
Restrict delete
author_id_fk
manual_annotations.author_id
sp_person.sp_person_id
Restrict delete
blast_hits_blast_annotation_id_fkey
blast_hits.blast_annotation_id
blast_annotations.blast_annotation_id
Cascade on delete
lg_id_fk
deprecated_mapdata.lg_id
deprecated_linkage_groups.lg_id
Restrict delete
map_id_fk
deprecated_mapdata.map_id
deprecated_maps.map_id
Restrict delete
linkage_group_south_location_id_fkey
linkage_group.south_location_id
marker_location.location_id
Restrict delete
linkage_group_map_version_id_fkey
linkage_group.map_version_id
map_version.map_version_id
Cascade on delete
linkage_group_north_location_id_fkey
linkage_group.north_location_id
marker_location.location_id
Restrict delete
marker_id_fk
cos_markers.marker_id
marker.marker_id
Restrict delete
map_version_metadata_id_fkey
map_version.metadata_id
md_metadata.metadata_id
Cascade on delete
map_version_default_threshold_fkey
map_version.default_threshold
deprecated_marker_confidences.confidence_id
Restrict delete
map_version_map_id_fkey
map_version.map_id
map.map_id
Cascade on delete
marker_id_fk
tm_markers.marker_id
marker.marker_id
Restrict delete
tm_id_fk
tm_markers.tm_id
tm_markers.tm_id
Restrict delete
map_id_fk
deprecated_linkage_groups.map_id
deprecated_maps.map_id
Restrict delete
marker_derived_from_marker_id_fkey
marker_derived_from.marker_id
deprecated_markers.marker_id
Restrict delete
marker_derived_from_derived_from_source_id_fkey
marker_derived_from.derived_from_source_id
derived_from_source.derived_from_source_id
Restrict delete
marker_id_fk
p_markers.marker_id
marker.marker_id
Restrict delete
facility_id_fk
seqread.facility_id
facility.facility_id
Restrict delete
clone_id_fk
seqread.clone_id
clone.clone_id
Restrict delete
fish_result_clone_id_fkey
fish_result.clone_id
clone.clone_id
Restrict delete
fish_experimenter_id_fkey
fish_result.fish_experimenter_id
fish_experimenter.fish_experimenter_id
Restrict delete
map_id_fkey
fish_result.map_id
deprecated_maps.map_id
Restrict delete
fish_result_attribution_id_fkey
fish_result.attribution_id
attribution.attribution_id
Restrict delete
map_id_fk
deprecated_map_cross.map_id
deprecated_maps.map_id
Restrict delete
organism_id_fk
deprecated_map_cross.organism_id
organism.organism_id
Restrict delete
est_dbxref_dbxref_id_fkey
est_dbxref.dbxref_id
dbxref.dbxref_id
Restrict delete
est_dbxref_est_id_fkey
est_dbxref.est_id
est.est_id
Restrict delete
accession_id_fk
accession_names.accession_id
accession.accession_id
Restrict delete
marker_alias_marker_id_fkey
marker_alias.marker_id
marker.marker_id
Restrict delete
apply_id_fkey
blast_annotations.apply_id
unigene.unigene_id
Restrict delete
marker_id_fk
ssr_repeats.marker_id
marker.marker_id
Restrict delete
ssr_id_fk
ssr_repeats.ssr_id
ssr.ssr_id
Restrict delete
enzyme_id_fk
pcr_product.enzyme_id
enzymes.enzyme_id
Restrict delete
pcr_exp_accession_id_fk
pcr_product.pcr_exp_accession_id
pcr_exp_accession.pcr_exp_accession_id
Cascade on delete
fish_result_image_image_id_fkey
fish_result_image.image_id
md_image.image_id
Restrict delete
fish_result_image_fish_result_id_fkey
fish_result_image.fish_result_id
fish_result.fish_result_id
Cascade on delete
marker_location_confidence_id_fkey
marker_location.confidence_id
marker_confidence.confidence_id
Restrict delete
marker_location_lg_id_fkey
marker_location.lg_id
linkage_group.lg_id
Cascade on delete
marker_location_map_version_id_fkey
marker_location.map_version_id
map_version.map_version_id
Cascade on delete
organism_chado_organism_id_fkey
organism.chado_organism_id
organism.organism_id
Restrict delete
organism_genus_tax_fkey
organism.genus_tax
taxonomy.tax_id
Restrict delete
organism_order_tax_fkey
organism.order_tax
taxonomy.tax_id
Restrict delete
common_name_id_fk
organism.common_name_id
common_name.common_name_id
Restrict delete
organism_family_tax_fkey
organism.family_tax
taxonomy.tax_id
Restrict delete
organism_subfamily_tax_fkey
organism.subfamily_tax
taxonomy.tax_id
Restrict delete
chadoprop_type_id_fkey
chadoprop.type_id
cvterm.cvterm_id
Restrict delete
marker_id_fk
rflp_markers.marker_id
marker.marker_id
Restrict delete
reverse_seq_id_fk
rflp_markers.reverse_seq_id
rflp_sequences.seq_id
Restrict delete
forward_seq_id_fk
rflp_markers.forward_seq_id
rflp_sequences.seq_id
Restrict delete
marker_id_fk
primer_unigene_match.marker_id
marker.marker_id
Restrict delete
primer_unigene_match_unigene_id_fkey
primer_unigene_match.unigene_id
unigene.unigene_id
Restrict delete
foriegn
submit_user.sp_person_id
sp_person.sp_person_id
Restrict delete
family_member_family_id_fkey
family_member.family_id
family.family_id
Cascade on delete
unigene_id_fk
rflp_unigene_associations.unigene_id
unigene.unigene_id
Restrict delete
rflp_seq_id_fk
rflp_unigene_associations.rflp_seq_id
rflp_sequences.seq_id
Restrict delete
est_id_fk
qc_report.est_id
est.est_id
Restrict delete
library_id_fk
clone.library_id
library.library_id
Restrict delete
marker_id_fk
ssr.marker_id
marker.marker_id
Restrict delete
est_id_fkey
unigene_member.est_id
est.est_id
Restrict delete
unigene_member_unigene_id_fkey
unigene_member.unigene_id
unigene.unigene_id
Restrict delete
metadata_modified_person_id_fkey
metadata.modified_person_id
sp_person.sp_person_id
Restrict delete
metadata_create_person_id_fkey
metadata.create_person_id
sp_person.sp_person_id
Restrict delete

Check Constraints

Table Constraint Name Constraint
fish_karyotype_constants chromo_arm_enum (((chromo_arm = 'P'::text) OR (chromo_arm = 'Q'::text)))
map map_map_type_check (((map_type = 'genetic'::text) OR (map_type = 'fish'::text) OR (map_type = 'sequence'::text) OR (map_type = 'QTL'::text)))
map map_units_check (((units = 'cM'::text) OR (units = 'Mb'::text)))
cosii_ortholog cosii_ortholog_copies_check ((((copies)::text = 'S'::text) OR ((copies)::text = 'M'::text)))
cosii_ortholog cosii_ortholog_database_name_check ((((database_name)::text = 'SGN'::text) OR ((database_name)::text = 'Arabidopsis'::text) OR ((database_name)::text = 'Coffee'::text)))
unigene_build unigene_build_status_check (((status = 'C'::bpchar) OR (status = 'D'::bpchar) OR (status = 'P'::bpchar)))
blast_db blast_db_file_base_check (((file_base)::text !~~ '/%'::text))
blast_db blast_db_info_url_check (((info_url IS NULL) OR ((info_url)::text ~ similar_escape('(ftp|http|https)://%'::text, NULL::text))))
blast_db blast_db_lookup_url_check (((lookup_url IS NULL) OR ((lookup_url)::text ~ similar_escape('(ftp|http|https)://%%s%'::text, NULL::text))))
blast_db blast_db_source_url_check (((source_url IS NULL) OR ((source_url)::text ~ similar_escape('(ftp|http|https|cxgn-resource|file)://%'::text, NULL::text))))
blast_db blast_db_type_check ((((type)::text = 'protein'::text) OR ((type)::text = 'nucleotide'::text)))
blast_db blast_db_update_freq_check ((((update_freq)::text = 'daily'::text) OR ((update_freq)::text = 'weekly'::text) OR ((update_freq)::text = 'monthly'::text) OR ((update_freq)::text = 'manual'::text)))
pcr_experiment different_primers (((primer_id_fwd IS NULL) OR (primer_id_rev IS NULL) OR (NOT (primer_id_fwd = primer_id_rev))))
pcr_experiment primer_type_enum ((((primer_type)::text = 'iUPA'::text) OR ((primer_type)::text = 'eUPA'::text) OR (primer_type IS NULL)))
unigene unigene_database_name_check ((((database_name)::text = 'SGN'::text) OR ((database_name)::text = 'CGN'::text)))
unigene unigene_nr_members_iff_consensi_id ((((nr_members > 1) AND (consensi_id IS NOT NULL)) OR ((nr_members = 1) AND (consensi_id IS NULL))))
organismgroup organismgroup_type_check ((((type)::text = 'common name'::text) OR ((type)::text = 'unigene build'::text) OR ((type)::text = ''::text)))
marker_experiment marker_experiment_check (((rflp_experiment_id IS NOT NULL) OR (pcr_experiment_id IS NOT NULL) OR (location_id IS NOT NULL)))
marker_experiment marker_experiment_check1 ((((pcr_experiment_id IS NOT NULL) AND (rflp_experiment_id IS NULL)) OR ((pcr_experiment_id IS NULL) AND (rflp_experiment_id IS NOT NULL)) OR ((pcr_experiment_id IS NULL) AND (rflp_experiment_id IS NULL) AND (location_id IS NOT NULL))))
marker_experiment marker_experiment_protocol_check (((protocol = 'AFLP'::text) OR (protocol = 'CAPS'::text) OR (protocol = 'RAPD'::text) OR (protocol = 'SNP'::text) OR (protocol = 'SSR'::text) OR (protocol = 'RFLP'::text) OR (protocol = 'PCR'::text) OR (protocol = 'dCAPS'::text) OR (protocol = 'DART'::text) OR (protocol = 'OPA'::text) OR (protocol = 'unknown'::text) OR (protocol = 'ASPE'::text) OR (protocol = 'INDEL'::text) OR (protocol = 'QTL'::text)))
marker_experiment marker_experiment_rflp_protocol_consistency ((((protocol = 'RFLP'::text) AND (pcr_experiment_id IS NULL)) OR ((protocol <> 'RFLP'::text) AND (rflp_experiment_id IS NULL))))
fish_result_composite fish_result_composite_chromo_arm_check ((((chromo_arm)::text = 'P'::text) OR ((chromo_arm)::text = 'Q'::text)))
fish_result_composite fish_result_composite_het_or_eu_check ((((het_or_eu)::text = 'H'::text) OR ((het_or_eu)::text = 'E'::text)))
fish_result fish_result_chromo_arm_check ((((chromo_arm)::text = 'P'::text) OR ((chromo_arm)::text = 'Q'::text)))
fish_chromatin_density_constants fish_chromatin_density_constants_arm_check ((((arm)::text = 'E'::text) OR ((arm)::text = 'H'::text)))
pcr_product band_size_or_multiple_check ((((band_size IS NOT NULL) OR (multiple_flag IS NOT NULL)) AND (NOT ((band_size IS NOT NULL) AND (multiple_flag IS NOT NULL)))))
pcr_product multiple_flag_null_or_1 (((multiple_flag = 1) OR (multiple_flag IS NULL)))
marker_location marker_location_subscript_check (((subscript = 'A'::bpchar) OR (subscript = 'B'::bpchar) OR (subscript = 'C'::bpchar) OR (subscript IS NULL)))
rflp_markers clone_name_not_null_check ((clone_name IS NOT NULL))
rflp_markers cutting_site_not_null_check ((cutting_site IS NOT NULL))
rflp_markers drug_resistance_not_null_check ((drug_resistance IS NOT NULL))
rflp_markers insert_size_not_null_check ((insert_size IS NOT NULL))
rflp_markers marker_prefix_not_null_check ((marker_prefix IS NOT NULL))
rflp_markers marker_suffix_not_null_check ((marker_suffix IS NOT NULL))
rflp_markers vector_not_null_check ((vector IS NOT NULL))
deprecated_maps maps_map_type_check ((((map_type)::text = 'genetic'::text) OR ((map_type)::text = 'fish'::text)))