Constraints

145 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
appointments_customer_id_foreign
appointments.customer_id
customers.id
Restrict delete
appointments_service_operator_id_foreign
appointments.service_operator_id
staffs.id
Restrict delete
customers_company_id_foreign
customers.company_id
companies.id
Restrict delete
visit_reservation_setting_id_foreign
visit_reservation_limit_people_settings.visit_reservation_setting_id
visit_reservation_settings.id
Restrict delete
analysis_summary_records_analysis_summary_id_foreign
analysis_summary_records.analysis_summary_id
analysis_summaries.id
Restrict delete
company_feature_permission_company_id_foreign
company_feature_permission.company_id
companies.id
Cascade on delete
company_feature_permission_feature_permission_id_foreign
company_feature_permission.feature_permission_id
feature_permissions.id
Cascade on delete
search_favorites_staff_id_foreign
search_favorites.staff_id
staffs.id
Restrict delete
message_template_folders_store_id_foreign
message_template_folders.store_id
stores.id
Restrict delete
export_analysis_csv_files_login_staff_id_foreign
export_analysis_csv_files.login_staff_id
staffs.id
Restrict delete
export_analysis_csv_files_staff_id_foreign
export_analysis_csv_files.staff_id
staffs.id
Restrict delete
estimation_jsb_details_estimation_id_foreign
estimation_jsb_details.estimation_id
estimations.id
Restrict delete
message_destinations_message_id_foreign
message_destinations.message_id
messages.id
Restrict delete
customer_statuses_company_id_foreign
customer_statuses.company_id
companies.id
Restrict delete
auto_suggestion_settings_store_customer_id_foreign
auto_suggestion_settings.store_customer_id
store_customers.id
Restrict delete
customer_interaction_histories_message_id_foreign
customer_interaction_histories.message_id
messages.id
Restrict delete
customer_interaction_histories_customer_id_foreign
customer_interaction_histories.customer_id
customers.id
Restrict delete
customer_interaction_histories_store_customer_id_foreign
customer_interaction_histories.store_customer_id
store_customers.id
Restrict delete
customer_interaction_histories_staff_id_foreign
customer_interaction_histories.staff_id
staffs.id
Restrict delete
customer_interaction_histories_inquiry_id_foreign
customer_interaction_histories.inquiry_id
inquiries.id
Restrict delete
visit_reservations_store_id_foreign
visit_reservations.store_id
stores.id
Restrict delete
visit_reservations_customer_id_foreign
visit_reservations.customer_id
customers.id
Restrict delete
contact_rentals_store_customer_id_foreign
contact_rentals.store_customer_id
store_customers.id
Restrict delete
company_task_templates_company_id_foreign
company_task_templates.company_id
companies.id
Cascade on delete
aggregation_candidates_customer_id2_foreign
aggregation_candidates.customer_id2
customers.id
Restrict delete
aggregation_candidates_customer_id1_foreign
aggregation_candidates.customer_id1
customers.id
Restrict delete
customer_addition_item_values_company_addition_item_id_foreign
customer_addition_item_values.company_addition_item_id
company_addition_items.id
Cascade on delete
customer_addition_item_values_customer_id_foreign
customer_addition_item_values.customer_id
customers.id
Cascade on delete
roles_company_id_foreign
roles.company_id
companies.id
Restrict delete
line_users_customer_id_foreign
line_users.customer_id
customers.id
Restrict delete
line_users_store_id_foreign
line_users.store_id
stores.id
Restrict delete
line_users_store_customer_id_foreign
line_users.store_customer_id
store_customers.id
Restrict delete
analysis_summary_fields_analysis_summary_record_id_foreign
analysis_summary_fields.analysis_summary_record_id
analysis_summary_records.id
Restrict delete
analysis_summary_fields_company_addition_item_option_id_foreign
analysis_summary_fields.company_addition_item_option_id
company_addition_item_options.id
Restrict delete
read_messages_staff_id_foreign
read_messages.staff_id
staffs.id
Restrict delete
read_messages_message_id_foreign
read_messages.message_id
messages.id
Restrict delete
visit_reservation_settings_store_id_foreign
visit_reservation_settings.store_id
stores.id
Restrict delete
message_read_times_store_id_foreign
message_read_times.store_id
stores.id
Restrict delete
message_read_times_customer_id_foreign
message_read_times.customer_id
customers.id
Restrict delete
message_read_times_staff_id_foreign
message_read_times.staff_id
staffs.id
Restrict delete
company_analysis_configs_company_id_foreign
company_analysis_configs.company_id
companies.id
Restrict delete
store_customer_event_dates_store_customer_id_foreign
store_customer_event_dates.store_customer_id
store_customers.id
Restrict delete
analysis_log_per_customers_store_customer_id_foreign
analysis_log_per_customers.store_customer_id
store_customers.id
Restrict delete
visit_reservation_inquiry_rentals_inquiry_rental_id_foreign
visit_reservation_inquiry_rentals.inquiry_rental_id
inquiry_rentals.id
Restrict delete
visit_reservation_inquiry_rentals_visit_reservation_id_foreign
visit_reservation_inquiry_rentals.visit_reservation_id
visit_reservations.id
Restrict delete
company_estimation_templates_company_id_foreign
company_estimation_templates.company_id
companies.id
Restrict delete
inquiry_definition_sorting_rules_inquiry_definition_id_foreign
inquiry_definition_sorting_rules.inquiry_definition_id
inquiry_definitions.id
Restrict delete
auto_suggestions_store_customer_id_foreign
auto_suggestions.store_customer_id
store_customers.id
Restrict delete
aggregation_releases_released_customer_id_foreign
aggregation_releases.released_customer_id
customers.id
Restrict delete
aggregation_releases_customer_id_foreign
aggregation_releases.customer_id
customers.id
Restrict delete
web_meeting_durations_web_meeting_id_foreign
web_meeting_durations.web_meeting_id
web_meetings.id
Restrict delete
messages_staff_id_foreign
messages.staff_id
staffs.id
Restrict delete
messages_bulk_message_id_foreign
messages.bulk_message_id
bulk_messages.id
Null on delete
messages_store_customer_id_foreign
messages.store_customer_id
store_customers.id
Restrict delete
temporary_obic_customer_supplement_code_foreign
temporary_obic_customer_supplement.code
temporary_obic_customer_basic.code
Restrict delete
company_addition_item_options_company_addition_item_id_foreign
company_addition_item_options.company_addition_item_id
company_addition_items.id
Cascade on delete
estimation_action_logs_staff_id_foreign
estimation_action_logs.staff_id
staffs.id
Restrict delete
estimation_action_logs_estimation_id_foreign
estimation_action_logs.estimation_id
estimations.id
Restrict delete
temporary_obic_customer_choice_school_code_foreign
temporary_obic_customer_choice_school.code
temporary_obic_customer_basic.code
Restrict delete
activity_logs_store_id_foreign
activity_logs.store_id
stores.id
Restrict delete
relationship_candidates_customer_id2_foreign
relationship_candidates.customer_id2
customers.id
Restrict delete
relationship_candidates_customer_id1_foreign
relationship_candidates.customer_id1
customers.id
Restrict delete
role_permissions_access_control_target_code_foreign
role_permissions.access_control_target_code
access_control_targets.code
Restrict delete
role_permissions_role_id_foreign
role_permissions.role_id
roles.id
Restrict delete
telescope_entries_tags_entry_uuid_foreign
telescope_entries_tags.entry_uuid
telescope_entries.uuid
Cascade on delete
virtual_bank_account_counters_virtual_bank_account_id_foreign
virtual_bank_account_counters.virtual_bank_account_id
virtual_bank_accounts.id
Restrict delete
bulk_messages_store_id_foreign
bulk_messages.store_id
stores.id
Restrict delete
bulk_messages_staff_id_foreign
bulk_messages.staff_id
staffs.id
Restrict delete
arrow_ip_addresses_company_id_foreign
arrow_ip_addresses.company_id
companies.id
Cascade on delete
store_customers_customer_id_foreign
store_customers.customer_id
customers.id
Restrict delete
store_customers_application_staff_id_foreign
store_customers.application_staff_id
staffs.id
Restrict delete
store_customers_viewing_staff_id_foreign
store_customers.viewing_staff_id
staffs.id
Restrict delete
store_customers_main_staff_id_foreign
store_customers.main_staff_id
staffs.id
Restrict delete
store_customers_store_id_foreign
store_customers.store_id
stores.id
Restrict delete
store_customers_contract_staff_id_foreign
store_customers.contract_staff_id
staffs.id
Restrict delete
store_customers_customer_status_id_foreign
store_customers.customer_status_id
customer_statuses.id
Restrict delete
store_customers_inquiry_staff_id_foreign
store_customers.inquiry_staff_id
staffs.id
Restrict delete
store_customers_visit_staff_id_foreign
store_customers.visit_staff_id
staffs.id
Restrict delete
access_count_urls_customer_id_foreign
access_count_urls.customer_id
customers.id
Restrict delete
search_histories_staff_id_foreign
search_histories.staff_id
staffs.id
Restrict delete
bulk_operation_customer_lists_staff_id_foreign
bulk_operation_customer_lists.staff_id
staffs.id
Restrict delete
bulk_operation_customer_lists_customer_id_foreign
bulk_operation_customer_lists.customer_id
customers.id
Restrict delete
inquiry_rentals_inquiry_id_foreign
inquiry_rentals.inquiry_id
inquiries.id
Cascade on delete
store_suggestion_settings_store_id_foreign
store_suggestion_settings.store_id
stores.id
Restrict delete
analysis_recounts_store_id_foreign
analysis_recounts.store_id
stores.id
Restrict delete
reserve_messages_message_id_foreign
reserve_messages.message_id
messages.id
Restrict delete
nested_groups_company_id_foreign
nested_groups.company_id
companies.id
Restrict delete
nested_groups_parent_nested_group_id_foreign
nested_groups.parent_nested_group_id
nested_groups.id
Restrict delete
suggestion_rental_details_suggestion_id_foreign
suggestion_rental_details.suggestion_id
suggestions.id
Restrict delete
estimations_approver_id_foreign
estimations.approver_id
staffs.id
Restrict delete
estimations_store_id_foreign
estimations.store_id
stores.id
Restrict delete
estimations_template_code_foreign
estimations.template_code
company_estimation_templates.template_code
Restrict delete
estimations_author_id_foreign
estimations.author_id
staffs.id
Restrict delete
estimations_contractor_id_foreign
estimations.contractor_id
customers.id
Restrict delete
company_addition_items_company_id_foreign
company_addition_items.company_id
companies.id
Cascade on delete
suggestions_message_id_foreign
suggestions.message_id
messages.id
Restrict delete
suggestions_access_count_url_id_foreign
suggestions.access_count_url_id
access_count_urls.id
Restrict delete
suggestions_store_customer_id_foreign
suggestions.store_customer_id
store_customers.id
Restrict delete
suggestions_staff_id_foreign
suggestions.staff_id
staffs.id
Restrict delete
inquiry_definition_items_inquiry_definition_id_foreign
inquiry_definition_items.inquiry_definition_id
inquiry_definitions.id
Restrict delete
inquiries_store_customer_id_foreign
inquiries.store_customer_id
store_customers.id
Restrict delete
inquiries_advertising_media_id_foreign
inquiries.advertising_media_id
advertising_media.id
Restrict delete
virtual_bank_accounts_company_id_foreign
virtual_bank_accounts.company_id
companies.id
Restrict delete
company_settings_company_id_foreign
company_settings.company_id
companies.id
Restrict delete
store_settings_store_id_foreign
store_settings.store_id
stores.id
Restrict delete
favorite_rentals_store_customer_id_foreign
favorite_rentals.store_customer_id
store_customers.id
Restrict delete
inquiry_forwarding_emails_store_id_foreign
inquiry_forwarding_emails.store_id
stores.id
Restrict delete
company_questionnaire_configs_company_id_foreign
company_questionnaire_configs.company_id
companies.id
Restrict delete
bulk_operation_histories_staff_id_foreign
bulk_operation_histories.staff_id
staffs.id
Restrict delete
line_channels_store_id_foreign
line_channels.store_id
stores.id
Cascade on delete
task_settings_store_customer_id_foreign
task_settings.store_customer_id
store_customers.id
Restrict delete
staff_notification_settings_staff_id_foreign
staff_notification_settings.staff_id
staffs.id
Restrict delete
advertising_media_company_id_foreign
advertising_media.company_id
companies.id
Restrict delete
tasks_store_customer_id_foreign
tasks.store_customer_id
store_customers.id
Restrict delete
tasks_staff_id_foreign
tasks.staff_id
staffs.id
Restrict delete
access_count_logs_staff_id_foreign
access_count_logs.staff_id
staffs.id
Restrict delete
access_count_logs_customer_id_foreign
access_count_logs.customer_id
customers.id
Restrict delete
access_count_logs_store_id_foreign
access_count_logs.store_id
stores.id
Restrict delete
access_count_logs_access_count_url_id_foreign
access_count_logs.access_count_url_id
access_count_urls.id
Restrict delete
stores_company_id_foreign
stores.company_id
companies.id
Restrict delete
stores_nested_group_id_foreign
stores.nested_group_id
nested_groups.id
Restrict delete
message_templates_store_id_foreign
message_templates.store_id
stores.id
Restrict delete
message_templates_message_template_folder_id_foreign
message_templates.message_template_folder_id
message_template_folders.id
Restrict delete
aggregations_customer_id_foreign
aggregations.customer_id
customers.id
Restrict delete
aggregations_delete_customer_id_foreign
aggregations.delete_customer_id
customers.id
Restrict delete
staff_operable_nested_groups_nested_group_id_foreign
staff_operable_nested_groups.nested_group_id
nested_groups.id
Restrict delete
staff_operable_nested_groups_staff_id_foreign
staff_operable_nested_groups.staff_id
staffs.id
Restrict delete
analysis_log_per_rentals_store_customer_id_foreign
analysis_log_per_rentals.store_customer_id
store_customers.id
Restrict delete
staff_device_tokens_staff_id_foreign
staff_device_tokens.staff_id
staffs.id
Restrict delete
web_meetings_store_customer_id_foreign
web_meetings.store_customer_id
store_customers.id
Restrict delete
web_meetings_staff_id_foreign
web_meetings.staff_id
staffs.id
Restrict delete
staff_settings_staff_id_foreign
staff_settings.staff_id
staffs.id
Restrict delete
analysis_summaries_company_analysis_config_id_foreign
analysis_summaries.company_analysis_config_id
company_analysis_configs.id
Restrict delete
analysis_summaries_store_id_foreign
analysis_summaries.store_id
stores.id
Restrict delete
bulk_operation_history_customer_customer_id_foreign
bulk_operation_history_customer.customer_id
customers.id
Restrict delete
bh_bhc_foreign
bulk_operation_history_customer.bulk_operation_history_id
bulk_operation_histories.id
Restrict delete
relationships_customer_id_foreign
relationships.customer_id
customers.id
Restrict delete
relationships_related_customer_id_foreign
relationships.related_customer_id
customers.id
Restrict delete
staffs_role_id_foreign
staffs.role_id
roles.id
Restrict delete
staffs_store_id_foreign
staffs.store_id
stores.id
Restrict delete
inquiry_definitions_advertising_medium_id_foreign
inquiry_definitions.advertising_medium_id
advertising_media.id
Restrict delete
inquiry_definitions_company_id_foreign
inquiry_definitions.company_id
companies.id
Restrict delete
estimation_jsb_costs_estimation_id_foreign
estimation_jsb_costs.estimation_id
estimations.id
Restrict delete
estimation_approvals_estimation_id_foreign
estimation_approvals.estimation_id
estimations.id
Restrict delete
estimation_approvals_staff_id_foreign
estimation_approvals.staff_id
staffs.id
Restrict delete

Check Constraints

Table Constraint Name Constraint