category Table
Overview
| Item | Details |
|---|---|
| Table name | category |
| Description | Broad categories for classifying blogs. Referenced by blog.category_id. blog_builder also selects the article template from the category name, so the name affects rendering |
| Primary use | Creating/updating/deleting categories and determining the article template |
Column Definitions
| Column | Type | PK | FK | Unique | Nullable | Default | Notes |
|---|---|---|---|---|---|---|---|
| _id | ObjectId | โฏ | โฏ | Auto-generated by DocumentDB | |||
| name | string | Category name; the key blog_builder uses to pick a template | |||||
| created_at | number | ||||||
| updated_at | number | Lists are sorted by update date/time by default | |||||
| deleted_at | number | โฏ |
article has no category
Only blog (category_id) and old_blog (category, a string) reference categories.
Names that drive template selection
blog_builder switches article templates on the category name. Any other (or missing) name falls back to the generic template.
| Category name | Template |
|---|---|
| ไบๆณ / ใฌใผในไบๆณใปๆค่จผ | Prediction article |
| ใฌใผในๅ้กง / ไบๆณ็ตๆ / ใฌใผใน็ตๆใปๅ้กง | Race result article (with finishing-order table) |
| Anything else / unset | Generic template article |
For originally written blogs, blog_generation automatically links the category "ใฌใผใน็ตๆใปๅ้กง" for recaps and "ใฌใผในไบๆณใปๆค่จผ" for predictions, when such a category record exists.