F
PlatformCập nhật 2026-06-30 · platform/PLATFORM-DEPENDENCIES.md

Platform Dependencies — Đồ thị phụ thuộc

Mũi tên = "phụ thuộc vào". Mọi thứ phụ thuộc xuống spine; spine không phụ thuộc lên module.

Đồ thị phụ thuộc

Adapters (Web/Mobile/API/MCP)
        │ depends on
        ▼
Verticals/Modules ──────────────┐
  OTA/Booking                   │
  Affiliate ──► Booking         │ all depend on
  CRM ──► Identity, Booking     │
  F&B ──► Payment, Search       ▼
  Tour/Experience ──► Booking(Reservable), Intelligence
  AI Concierge ──► Travel Intelligence
  Medical Tourism ──► Booking + Tour + Intelligence
        │
        ▼
Travel Intelligence  ◄── (gọi qua port/API)
        │
        ▼
SHARED SPINE: Identity · Tenant · Payment · Notification · Search · CMS · Media · API · Audit
        │
        ▼
DATA & INFRA: PostgreSQL (RLS) · Object storage · Queue · Cache

Bảng phụ thuộc module → spine/engine

ModuleIdentityTenantPaymentNotifSearchCMSMediaAPIIntelligenceBooking
OTA/Booking(opt)
Affiliate
CRM(opt)
F&B
Tour/Experience
AI Concierge(opt)
Medical Tourism
API Platform(opt)(opt)

Quy tắc

  • Không phụ thuộc vòng: module có thể phụ thuộc Booking; Booking KHÔNG phụ thuộc module khác.
  • Spine là lá phụ thuộc: mọi module phụ thuộc spine; spine độc lập.
  • Intelligence là tuỳ chọn cho module thương mại, bắt buộc cho AI Concierge / Medical Tourism.
  • Thêm phụ thuộc mới phải cập nhật bảng này + DOMAIN-MODEL.md.