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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| slug | varchar(140) | unique, not null | |
| name | varchar(100) | not null | |
| usage_count | integer | not null |
Indexes (1)
(usage_count)
Relationships
post_tags.tag_idreferencestags