categories table

The categories table in the Blog Database Schema schema has 6 columns, keyed by id, with 1 foreign key to categories. 2 columns in post_categories and seo_meta reference it.

Self-referencing tree, editorially curated. Categories are few and hierarchical; tags are many and flat.

Columns (6)

Columns of the categories table
ColumnTypeConstraintsDescription
iduuidprimary key
parent_iduuidreferences categories.id
slugvarchar(140)unique, not null
namevarchar(120)not null
descriptionvarchar(500)
positionintegernot null

Relationships