Skip to content

D103 · A service type is one of four tiers: regular, comfort, luxe and prestige

Proposed · 2026-11-17 · zuki, in the team session on #458; it binds when this page's pull request is merged · Applies to master data (MD), drivers (DRV) and money (MON) · Partly supersedes D76: its three service types only

Decision: A service type is one of four tiers: regular, comfort, luxe and prestige. The one enum, public.service_type, serves a vehicle model's default service type (R-MD-20) and, later, a driver's platform account (R-DRV-12). Everything else in D76 stands: where a driver's account has none, it is read from his live rental's car model, and overdue thresholds are kept per charge type, service type and transmission.

Why: zuki's list of vehicle types and their tiers, given on #458 on 2026-11-17, uses four tiers, as the platforms do: Reguler, Comfort, Luxe and Prestige. D76's premium would fold Luxe and Prestige into one, so a threshold could not tell them apart. The enum is new in #458, so no loaded row or test holds premium yet.

Consequences:

  • R-MD-20's values become regular, comfort, luxe and prestige; R-MON-66 and any rule that lists D76's three take the four.
  • public.service_type is created with the four values in #458's migration.
  • The thresholds table, when it is built, holds a row per tier that needs one; a tier with no row falls back as D76 says.