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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| from_path | varchar(500) | unique, not null | |
| to_path | varchar(500) | not null | |
| status_code | smallint | not null | |
| hit_count | integer | not null | |
| created_at | timestamptz | not null | |
| last_hit_at | timestamptz |
Indexes (1)
(from_path)