tags table

The tags table in the Blog Database Schema schema has 4 columns, keyed by id. 1 column in post_tags references it.

Flat and author-created. usage_count is a cache that drives the tag cloud and stops orphan tags accumulating.

Columns (4)

Columns of the tags table
ColumnTypeConstraintsDescription
iduuidprimary key
slugvarchar(140)unique, not null
namevarchar(100)not null
usage_countintegernot null

Indexes (1)

  • (usage_count)

Relationships