<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/announcing-foreign-key-constraints-support-pws0o0hpj" -->

---
title: Announcing foreign key constraints support | daily.dev
description: PlanetScale announces support for foreign key constraints, allowing users to use them in their databases without making any changes to their existing...
canonical: https://daily.dev/posts/announcing-foreign-key-constraints-support-pws0o0hpj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Announcing foreign key constraints support | daily.dev
og:description: PlanetScale announces support for foreign key constraints, allowing users to use them in their databases without making any changes to their existing...
og:url: https://daily.dev/posts/announcing-foreign-key-constraints-support-pws0o0hpj
og:image: https://api.daily.dev/og/posts/PWs0O0HpJ.png
og:image:alt: Announcing foreign key constraints support
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Announcing foreign key constraints support

**[PlanetScale](https://daily.dev/sources/planetscale)** · 2 min read · 4 upvotes · 0 comments

## Summary

PlanetScale announces support for foreign key constraints, allowing users to use them in their databases without making any changes to their existing applications or data models. The support is currently available in beta on a per-database level for all unsharded databases, with support for sharded databases coming next year. Users can enable foreign key constraints by opting in to the beta on their database settings page. The beta has been tested with popular ORMs and frameworks, but users are encouraged to report any issues they encounter.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://planetscale.com/blog/announcing-foreign-key-constraints-support>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#planetscale](https://daily.dev/tags/planetscale)

[View this post on daily.dev](https://daily.dev/posts/announcing-foreign-key-constraints-support-pws0o0hpj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Announcing foreign key constraints support","url":"https://daily.dev/posts/announcing-foreign-key-constraints-support-pws0o0hpj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/announcing-foreign-key-constraints-support-pws0o0hpj"},"datePublished":"2023-12-05T16:05:27.211Z","dateModified":"2023-12-05T16:05:26.696Z","description":"PlanetScale announces support for foreign key constraints, allowing users to use them in their databases without making any changes to their existing...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/69f0ac2948c53f46339adee59e2091d2?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/69f0ac2948c53f46339adee59e2091d2?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"PlanetScale","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"PlanetScale","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/09515c29cafc45618b3f117eab4fccf8","url":"https://daily.dev/squads/planetscale"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/announcing-foreign-key-constraints-support-pws0o0hpj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"backend,planetscale","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PlanetScale","item":"https://daily.dev/squads/planetscale"},{"@type":"ListItem","position":3,"name":"Announcing foreign key constraints support"}]}
```

