haskell-beam/beam

Composite PK support

Open

#792 opened on Apr 9, 2026

 (2 comments) (0 reactions) (0 assignees)Haskell (191 forks)auto 404
docsgood first issuehelp wanted

Repository metrics

Stars
 (631 stars)
PR merge metrics
 (PR metrics pending)

Description

From the docs, it's unclear if Beam supports composite PKs -- i.e. primary keys which reference two or more columns. I imagine there are different ways of doing this (perhaps a product type, perhaps a tuple), but without being too familiar with type families and Beam internals, I'm not able to figure out how to do this

Contributor guide