"""Application-wide constants shared across services, routers, and tests.""" from enum import Enum class OrderStatus(str, Enum): """Order status values stored in SQLite `orders.status` column. Inherits from `str` so existing string comparisons (==, in, dict.get) keep working. Always use `.value` when passing to SQL queries or JSON payloads to avoid Python-version-specific str(enum) surprises. """ IMPORTED = "IMPORTED" ALREADY_IMPORTED = "ALREADY_IMPORTED" SKIPPED = "SKIPPED" ERROR = "ERROR" CANCELLED = "CANCELLED" DELETED_IN_ROA = "DELETED_IN_ROA"