Constraints

84 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
annotation_sessions_transect_id_foreign
annotation_sessions.volume_id
volumes.id
Cascade on delete
transects_media_type_id_foreign
volumes.media_type_id
media_types.id
Restrict delete
transects_creator_id_foreign
volumes.creator_id
users.id
Null on delete
storage_requests_user_id_foreign
storage_requests.user_id
users.id
Cascade on delete
annotation_session_user_annotation_session_id_foreign
annotation_session_user.annotation_session_id
annotation_sessions.id
Cascade on delete
annotation_session_user_user_id_foreign
annotation_session_user.user_id
users.id
Cascade on delete
annotation_assistance_requests_user_id_foreign
annotation_assistance_requests.user_id
users.id
Cascade on delete
annotation_assistance_requests_receiver_id_foreign
annotation_assistance_requests.receiver_id
users.id
Null on delete
annotation_assistance_requests_annotation_id_foreign
annotation_assistance_requests.annotation_id
image_annotations.id
Cascade on delete
label_tree_authorized_project_project_id_foreign
label_tree_authorized_project.project_id
projects.id
Cascade on delete
label_tree_authorized_project_label_tree_id_foreign
label_tree_authorized_project.label_tree_id
label_trees.id
Cascade on delete
images_transect_id_foreign
images.volume_id
volumes.id
Cascade on delete
image_labels_label_id_foreign
image_labels.label_id
labels.id
Restrict delete
image_labels_image_id_foreign
image_labels.image_id
images.id
Cascade on delete
image_labels_user_id_foreign
image_labels.user_id
users.id
Null on delete
maia_annotation_candidates_job_id_foreign
maia_annotation_candidates.job_id
maia_jobs.id
Cascade on delete
maia_annotation_candidates_label_id_foreign
maia_annotation_candidates.label_id
labels.id
Null on delete
maia_annotation_candidates_shape_id_foreign
maia_annotation_candidates.shape_id
shapes.id
Restrict delete
maia_annotation_candidates_image_id_foreign
maia_annotation_candidates.image_id
images.id
Cascade on delete
maia_annotation_candidates_annotation_id_foreign
maia_annotation_candidates.annotation_id
image_annotations.id
Null on delete
reports_user_id_foreign
reports.user_id
users.id
Cascade on delete
reports_type_id_foreign
reports.type_id
report_types.id
Restrict delete
storage_request_files_storage_request_id_foreign
storage_request_files.storage_request_id
storage_requests.id
Cascade on delete
labels_label_source_id_foreign
labels.label_source_id
label_sources.id
Restrict delete
labels_parent_id_foreign
labels.parent_id
labels.id
Cascade on delete
labels_label_tree_id_foreign
labels.label_tree_id
label_trees.id
Cascade on delete
maia_training_proposal_feature_vectors_job_id_foreign
maia_training_proposal_feature_vectors.job_id
maia_jobs.id
Cascade on delete
lslogin_ids_user_id_foreign
lslogin_ids.user_id
users.id
Cascade on delete
user_disks_user_id_foreign
user_disks.user_id
users.id
Cascade on delete
pending_volumes_media_type_id_foreign
pending_volumes.media_type_id
media_types.id
Restrict delete
pending_volumes_volume_id_foreign
pending_volumes.volume_id
volumes.id
Cascade on delete
pending_volumes_project_id_foreign
pending_volumes.project_id
projects.id
Cascade on delete
pending_volumes_user_id_foreign
pending_volumes.user_id
users.id
Cascade on delete
maia_annotation_candidate_feature_vectors_job_id_foreign
maia_annotation_candidate_feature_vectors.job_id
maia_jobs.id
Cascade on delete
label_tree_user_label_tree_id_foreign
label_tree_user.label_tree_id
label_trees.id
Cascade on delete
label_tree_user_role_id_foreign
label_tree_user.role_id
roles.id
Restrict delete
label_tree_user_user_id_foreign
label_tree_user.user_id
users.id
Cascade on delete
annotation_labels_user_id_foreign
image_annotation_labels.user_id
users.id
Null on delete
annotation_labels_annotation_id_foreign
image_annotation_labels.annotation_id
image_annotations.id
Cascade on delete
annotation_labels_label_id_foreign
image_annotation_labels.label_id
labels.id
Restrict delete
project_user_project_id_foreign
project_user.project_id
projects.id
Cascade on delete
project_user_project_role_id_foreign
project_user.project_role_id
roles.id
Restrict delete
project_user_user_id_foreign
project_user.user_id
users.id
Cascade on delete
video_annotations_shape_id_foreign
video_annotations.shape_id
shapes.id
Restrict delete
video_annotations_video_id_foreign
video_annotations.video_id
videos.id
Cascade on delete
label_tree_project_label_tree_id_foreign
label_tree_project.label_tree_id
label_trees.id
Cascade on delete
label_tree_project_project_id_foreign
label_tree_project.project_id
projects.id
Cascade on delete
maia_jobs_state_id_foreign
maia_jobs.state_id
maia_job_states.id
Restrict delete
maia_jobs_user_id_foreign
maia_jobs.user_id
users.id
Null on delete
maia_jobs_volume_id_foreign
maia_jobs.volume_id
volumes.id
Cascade on delete
users_role_id_foreign
users.role_id
roles.id
Restrict delete
videos_volume_id_foreign
videos.volume_id
volumes.id
Cascade on delete
project_invitations_project_id_foreign
project_invitations.project_id
projects.id
Cascade on delete
project_invitations_role_id_foreign
project_invitations.role_id
roles.id
Restrict delete
copria_color_sort_sequence_transect_id_foreign
color_sort_sequences.volume_id
volumes.id
Cascade on delete
annotations_shape_id_foreign
image_annotations.shape_id
shapes.id
Restrict delete
annotations_image_id_foreign
image_annotations.image_id
images.id
Cascade on delete
label_tree_versions_label_tree_id_foreign
label_tree_versions.label_tree_id
label_trees.id
Cascade on delete
video_labels_user_id_foreign
video_labels.user_id
users.id
Null on delete
video_labels_video_id_foreign
video_labels.video_id
videos.id
Cascade on delete
video_labels_label_id_foreign
video_labels.label_id
labels.id
Restrict delete
video_annotation_label_feature_vectors_label_tree_id_foreign
video_annotation_label_feature_vectors.label_tree_id
label_trees.id
Restrict delete
video_annotation_label_feature_vectors_annotation_id_foreign
video_annotation_label_feature_vectors.annotation_id
video_annotations.id
Cascade on delete
video_annotation_label_feature_vectors_id_foreign
video_annotation_label_feature_vectors.id
video_annotation_labels.id
Cascade on delete
video_annotation_label_feature_vectors_label_id_foreign
video_annotation_label_feature_vectors.label_id
labels.id
Restrict delete
image_annotation_label_feature_vectors_label_tree_id_foreign
image_annotation_label_feature_vectors.label_tree_id
label_trees.id
Restrict delete
image_annotation_label_feature_vectors_label_id_foreign
image_annotation_label_feature_vectors.label_id
labels.id
Restrict delete
image_annotation_label_feature_vectors_annotation_id_foreign
image_annotation_label_feature_vectors.annotation_id
image_annotations.id
Cascade on delete
image_annotation_label_feature_vectors_id_foreign
image_annotation_label_feature_vectors.id
image_annotation_labels.id
Cascade on delete
label_trees_visibility_id_foreign
label_trees.visibility_id
visibilities.id
Restrict delete
label_trees_version_id_foreign
label_trees.version_id
label_tree_versions.id
Cascade on delete
project_transect_project_id_foreign
project_volume.project_id
projects.id
Restrict delete
project_transect_transect_id_foreign
project_volume.volume_id
volumes.id
Cascade on delete
federated_search_models_federated_search_instance_id_foreign
federated_search_models.federated_search_instance_id
federated_search_instances.id
Cascade on delete
projects_creator_id_foreign
projects.creator_id
users.id
Null on delete
video_annotation_labels_user_id_foreign
video_annotation_labels.user_id
users.id
Null on delete
video_annotation_labels_video_annotation_id_foreign
video_annotation_labels.annotation_id
video_annotations.id
Cascade on delete
video_annotation_labels_label_id_foreign
video_annotation_labels.label_id
labels.id
Restrict delete
maia_training_proposals_image_id_foreign
maia_training_proposals.image_id
images.id
Cascade on delete
maia_training_proposals_shape_id_foreign
maia_training_proposals.shape_id
shapes.id
Restrict delete
maia_training_proposals_job_id_foreign
maia_training_proposals.job_id
maia_jobs.id
Cascade on delete
federated_search_model_user_federated_search_model_id_foreign
federated_search_model_user.federated_search_model_id
federated_search_models.id
Cascade on delete
federated_search_model_user_user_id_foreign
federated_search_model_user.user_id
users.id
Cascade on delete
api_tokens_owner_id_foreign
api_tokens.owner_id
users.id
Cascade on delete

Check Constraints

Table Constraint Name Constraint
project_invitations check_max_uses (((max_uses IS NULL) OR (current_uses <= max_uses)))
federated_search_models federated_search_models_type_check (((type)::text = ANY ((ARRAY['Biigle\LabelTree'::character varying, 'Biigle\Project'::character varying, 'Biigle\Volume'::character varying])::text[])))