PostgreSQL-backed, type-safe, tenant-aware.
Every collection has a tenant column, a versioned schema, and an additive-only migration policy. Schema changes use ADD COLUMN IF NOT EXISTS; never DROP.
- Migration policy
- Additive only
- Database
- PostgreSQL 17
Schema browser.
Inspect any table — columns, types, relations — directly in the workspace.
Schema browser
PostgreSQL · 14 tablesTables
bookings
142 columns · 8.4M rows| Column | Type | Nullable |
|---|---|---|
| id | uuid | no |
| tenant_id | uuid | no |
| customer_id | uuid | no |
| reference | text | no |
| status | booking_status | no |
| total_cents | bigint | no |
| currency | char(3) | no |
| created_at | timestamptz | no |
| metadata | jsonb | yes |
Relations
Collections.
Collections
TenantsDestinations, operators, regions. Root multi-tenant boundary.
UsersAdmin accounts (owner / admin / editor / provider roles).
CustomersGuest accounts with locale, Stripe customer ID, SwissID / SwissPass binding.
PagesCMS pages with block layout, drafts, versioning, SEO.
MediaImages and video with 7 size presets, alt text, EXIF stripped.
ProductsTickets, ancillaries, packages, memberships, vouchers, gift cards, merchandise.
OrdersShop orders with payment status.
BookingsBooking records with passenger arrays, route snapshots, fare breakdown, ancillaries snapshot, integration audit trail, PDF URL.
StationsStations with UIC codes, coordinates, region.
LinesBranded train and cable car products.
RoutesDirectional segments between stations on a line.
FaresPrice table: route × class × reduction.
SchedulesWeekly timetables with bookable toggle, day-of-week pattern.
ProvidersHotels, schools, shops, restaurants in the region.
ProviderServicesSpecific services a provider offers.
MembershipsMembership records bound to customers.
EntitlementsGranular entitlements granted by memberships and passes.
PromotionsPromotion definitions with eligibility.
BundlesBundle definitions with constraints and pricing.
IntegrationEventsAudit log of every external call.
ConnectorConfigsPer-tenant connector configuration (credentials encrypted).
WorkflowsWorkflow definitions (triggers + conditions + actions).
PricingRulesPricing rules with evaluation order.
AISessionsAI Concierge and Ops Copilot conversations.
AIDocumentsDocuments ingested for RAG, with chunks and pgvector embeddings.
MCPServersPer-tenant external MCP server registrations.
Globals.
Globals
HeaderNavigation items (up to 6 with dropdowns), CTA button.
FooterNavigation, tagline, social links.
HomeHero, route cards, themed experiences, scenic, timetable.
SiteSettingsSite name, logo, favicon, contact info, address.
ThemeColor tokens, fonts, hero imagery for both seasons.
TenantConfigLocales, currencies, payment methods, identity providers, data residency.
Keep reading
