post_categories table
The post_categories table in the Blog Database Schema schema has 3 columns, with 2 foreign keys to posts and categories.
is_primary picks the one category used in breadcrumbs and the canonical URL when a post sits in several.
Columns (3)
| Column | Type | Constraints | Description |
|---|---|---|---|
| post_id | uuid | not null, references posts.id | |
| category_id | uuid | not null, references categories.id | |
| is_primary | boolean | not null |
Indexes (1)
(category_id)
Relationships
post_categories.post_idreferencesposts.idpost_categories.category_idreferencescategories.id