piccolo-orm / piccolo

A fast, user friendly ORM and query builder which supports asyncio.
https://piccolo-orm.com/
MIT License
1.45k stars 91 forks source link

Composite uniqueness constraints #172

Open adriangb opened 3 years ago

adriangb commented 3 years ago

It looks like there's no way to do composite uniqueness constraints, i.e. UNIQUE (col1, col2).

dantownsend commented 3 years ago

Yep, this needs adding.

A link to a discussion about it: https://github.com/piccolo-orm/piccolo/discussions/175