{"id":2997,"date":"2026-11-10T08:04:09","date_gmt":"2026-11-10T08:04:09","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=referential-integrity"},"modified":"2026-11-10T08:04:09","modified_gmt":"2026-11-10T08:04:09","slug":"referential-integrity","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=referential-integrity","title":{"rendered":"Referential Integrity"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If an order refers to a customer, the customer must exist. The database blocks deletions or entries that would break such links.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It prevents orphaned and inconsistent data in business systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A system refuses to delete a customer who still has unpaid invoices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ask developers to enforce relationships in the database, not only in the app.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>A database rule that ensures records pointing to other records always point to ones that exist.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[23],"dc_topic":[60,34],"class_list":["post-2997","dc_term","type-dc_term","status-publish","hentry","dc_letter-r","dc_topic-data-and-databases","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":0,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2997\/revisions"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2997"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=2997"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=2997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}