Skip to content

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.