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)

Columns of the post_categories table
ColumnTypeConstraintsDescription
post_iduuidnot null, references posts.id
category_iduuidnot null, references categories.id
is_primarybooleannot null

Indexes (1)

  • (category_id)

Relationships