Skip to content

Glossary: Firebase and Supabase

unique

Also written: unique constraint, 23505

A SQL constraint that stops two rows sharing a value. On `stamps.order_no` it means an order earns one stamp at most, and a second insert fails with Postgres error code `23505`.

Where the book teaches it

Related terms

primary keyforeign key