redirects table

The redirects table in the Blog Database Schema schema has 7 columns, keyed by id.

The reason slugs can change safely. status_code is 301 for permanent, 302 for temporary. hit_count shows which old URLs still carry traffic.

Columns (7)

Columns of the redirects table
ColumnTypeConstraintsDescription
iduuidprimary key
from_pathvarchar(500)unique, not null
to_pathvarchar(500)not null
status_codesmallintnot null
hit_countintegernot null
created_attimestamptznot null
last_hit_attimestamptz

Indexes (1)

  • (from_path)