drizzle-team / drizzle-team/drizzle-orm
[DOCS]: Better docs for foreign key declaration
Open
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
Assessment
This issue has not been assessed yet.