Constraints

84 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
deliverable_project_due_dates_project_id_fkey
deliverable_project_due_dates.project_id
projects.id
Cascade on delete
deliverable_project_due_dates_deliverable_id_fkey
deliverable_project_due_dates.deliverable_id
deliverables.id
Cascade on delete
events_created_by_fkey
events.created_by
users.id
Restrict delete
events_modified_by_fkey
events.modified_by
users.id
Restrict delete
events_event_type_id_fkey
events.event_type_id
event_types.id
Restrict delete
events_event_status_id_fkey
events.event_status_id
event_statuses.id
Restrict delete
events_module_id_fkey
events.module_id
modules.id
Cascade on delete
deliverable_variables_deliverable_id_fkey
deliverable_variables.deliverable_id
deliverables.id
Cascade on delete
deliverable_variables_variable_id_fkey
deliverable_variables.variable_id
variables.id
Cascade on delete
cohorts_phase_id_fkey
cohorts.phase_id
cohort_phases.id
Restrict delete
cohorts_created_by_fkey
cohorts.created_by
users.id
Restrict delete
cohorts_modified_by_fkey
cohorts.modified_by
users.id
Restrict delete
deliverable_cohort_due_dates_deliverable_id_fkey
deliverable_cohort_due_dates.deliverable_id
deliverables.id
Cascade on delete
deliverable_cohort_due_dates_cohort_id_fkey
deliverable_cohort_due_dates.cohort_id
cohorts.id
Cascade on delete
modules_created_by_fkey
modules.created_by
users.id
Restrict delete
modules_modified_by_fkey
modules.modified_by
users.id
Restrict delete
modules_phase_id_fkey
modules.phase_id
cohort_phases.id
Restrict delete
project_scores_project_id_fkey
project_scores.project_id
projects.id
Cascade on delete
project_scores_phase_id_fkey
project_scores.phase_id
cohort_phases.id
Restrict delete
project_scores_created_by_fkey
project_scores.created_by
users.id
Restrict delete
project_scores_score_category_id_fkey
project_scores.score_category_id
score_categories.id
Restrict delete
project_scores_modified_by_fkey
project_scores.modified_by
users.id
Restrict delete
applications_country_code_fkey
applications.country_code
countries.code
Restrict delete
applications_project_id_fkey
applications.project_id
projects.id
Cascade on delete
applications_created_by_fkey
applications.created_by
users.id
Restrict delete
applications_modified_by_fkey
applications.modified_by
users.id
Restrict delete
applications_application_status_id_fkey
applications.application_status_id
application_statuses.id
Restrict delete
project_accelerator_details_pipeline_id_fkey
project_accelerator_details.pipeline_id
pipelines.id
Restrict delete
project_accelerator_details_deal_stage_id_fkey
project_accelerator_details.deal_stage_id
deal_stages.id
Restrict delete
project_accelerator_details_project_id_fkey
project_accelerator_details.project_id
projects.id
Restrict delete
application_histories_modified_by_fkey
application_histories.modified_by
users.id
Restrict delete
application_histories_application_id_fkey
application_histories.application_id
applications.id
Cascade on delete
application_histories_application_status_id_fkey
application_histories.application_status_id
application_statuses.id
Restrict delete
deliverable_categories_internal_interest_id_fkey
deliverable_categories.internal_interest_id
internal_interests.id
Restrict delete
cohort_modules_cohort_id_fkey
cohort_modules.cohort_id
cohorts.id
Restrict delete
cohort_modules_module_id_fkey
cohort_modules.module_id
modules.id
Restrict delete
deliverable_documents_deliverable_type_id_fkey
deliverable_documents.deliverable_type_id
deliverable_types.id
Restrict delete
deliverable_documents_deliverable_id_deliverable_type_id_fkey
deliverable_documents.deliverable_id
deliverable_documents.deliverable_type_id
deliverables.id
deliverables.deliverable_type_id
Restrict delete
deliverable_documents_deliverable_id_fkey
deliverable_documents.deliverable_id
deliverables.id
Restrict delete
submissions_created_by_fkey
submissions.created_by
users.id
Restrict delete
submissions_deliverable_id_fkey
submissions.deliverable_id
deliverables.id
Restrict delete
submissions_submission_status_id_fkey
submissions.submission_status_id
submission_statuses.id
Restrict delete
submissions_modified_by_fkey
submissions.modified_by
users.id
Restrict delete
submissions_project_id_fkey
submissions.project_id
projects.id
Cascade on delete
submission_snapshots_submission_id_fkey
submission_snapshots.submission_id
submissions.id
Restrict delete
submission_snapshots_file_id_fkey
submission_snapshots.file_id
files.id
Cascade on delete
user_internal_interests_user_id_fkey
user_internal_interests.user_id
users.id
Restrict delete
user_internal_interests_internal_interest_id_fkey
user_internal_interests.internal_interest_id
internal_interests.id
Cascade on delete
user_internal_interests_created_by_fkey
user_internal_interests.created_by
users.id
Restrict delete
event_projects_event_id_fkey
event_projects.event_id
events.id
Cascade on delete
event_projects_project_id_fkey
event_projects.project_id
projects.id
Cascade on delete
participant_project_species_submission_status_id_fkey
participant_project_species.submission_status_id
submission_statuses.id
Restrict delete
participant_project_species_created_by_fkey
participant_project_species.created_by
users.id
Restrict delete
participant_project_species_modified_by_fkey
participant_project_species.modified_by
users.id
Restrict delete
participant_project_species_project_id_fkey
participant_project_species.project_id
projects.id
Cascade on delete
participant_project_species_species_native_category_id_fkey
participant_project_species.species_native_category_id
species_native_categories.id
Restrict delete
participant_project_species_species_id_fkey
participant_project_species.species_id
species.id
Cascade on delete
deliverables_created_by_fkey
deliverables.created_by
users.id
Restrict delete
deliverables_deliverable_category_id_fkey
deliverables.deliverable_category_id
deliverable_categories.id
Restrict delete
deliverables_deliverable_type_id_fkey
deliverables.deliverable_type_id
deliverable_types.id
Restrict delete
deliverables_module_id_fkey
deliverables.module_id
modules.id
Restrict delete
deliverables_modified_by_fkey
deliverables.modified_by
users.id
Restrict delete
default_voters_user_id_fkey
default_voters.user_id
users.id
Cascade on delete
default_project_leads_region_id_fkey
default_project_leads.region_id
regions.id
Restrict delete
project_votes_project_id_fkey
project_votes.project_id
projects.id
Cascade on delete
project_votes_user_id_fkey
project_votes.user_id
users.id
Cascade on delete
project_votes_modified_by_fkey
project_votes.modified_by
users.id
Restrict delete
project_votes_created_by_fkey
project_votes.created_by
users.id
Restrict delete
project_votes_vote_option_id_fkey
project_votes.vote_option_id
vote_options.id
Restrict delete
project_votes_phase_id_fkey
project_votes.phase_id
cohort_phases.id
Restrict delete
submission_documents_submission_id_fkey
submission_documents.submission_id
submissions.id
Restrict delete
submission_documents_project_id_fkey
submission_documents.project_id
projects.id
Restrict delete
submission_documents_document_store_id_fkey
submission_documents.document_store_id
document_stores.id
Restrict delete
submission_documents_created_by_fkey
submission_documents.created_by
users.id
Restrict delete
project_vote_decisions_project_id_fkey
project_vote_decisions.project_id
projects.id
Cascade on delete
project_vote_decisions_vote_option_id_fkey
project_vote_decisions.vote_option_id
vote_options.id
Restrict delete
project_vote_decisions_phase_id_fkey
project_vote_decisions.phase_id
cohort_phases.id
Restrict delete
deal_stages_pipeline_id_fkey
deal_stages.pipeline_id
pipelines.id
Restrict delete
participants_created_by_fkey
participants.created_by
users.id
Restrict delete
participants_cohort_id_fkey
participants.cohort_id
cohorts.id
Restrict delete
participants_modified_by_fkey
participants.modified_by
users.id
Restrict delete
application_modules_application_module_status_id_fkey
application_modules.application_module_status_id
application_module_statuses.id
Restrict delete
application_modules_module_id_fkey
application_modules.module_id
modules.id
Restrict delete
application_modules_application_id_fkey
application_modules.application_id
applications.id
Cascade on delete

Check Constraints

Table Constraint Name Constraint
events times_start_before_end ((start_time <= end_time))
project_scores project_scores_score_check (((score >= '-2'::integer) AND (score <= 2)))
cohort_modules dates_start_before_end ((start_date < end_date))
deliverable_documents deliverable_is_document ((deliverable_type_id = 1))