drizzle-team / drizzle-team/drizzle-orm

[DOCS]: Better docs for foreign key declaration

Open
#3,148 4 comments 2 reactions 0 assignees View on GitHub
docs docs/undocumented priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Describe what you want

In the [documentation for defining a foreign key constraint](https://orm.drizzle.team/docs/indexes-constraints#foreign-key), it shows how to specify a name, source columns and foreign columns but doesn't show to to specify the `on update` and `on delete` actions. Might be worth adding as especially when declaring a composite foreign key, it's not obvious how to do this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.