Skip to content

Glossary: Building APIs with FastAPI

Foreign key

Also written: foreign keys

A column holding the ID of a row in another table, such as `OrderLine.order_id`. The database refuses a value that doesn't match an existing row.

Where the book teaches it

Related terms

Primary keyRelationship