Entity/khái niệm chính: definition (1 dòng, canonical ở 04-GLOSSARY) · owner · source of truth (SoT) · implementation status · docs. Chỉ index — không định nghĩa lại dài. Status: ✅ LIVE · 🟡 một phần · ⏳ design.
| Entity | Definition (1 dòng) | Owner (eng/09) | Source of Truth | Status | Docs |
|---|---|---|---|---|---|
| Reservation ★ | Đơn giữ chỗ (aggregate root) của một Unit theo kỳ | Booking | Booking context · bảng reservations | ✅ LIVE | backend/BOOKING-API, travel-os/03 |
| Tenant | Vùng dữ liệu/cấu hình SaaS của một Account | Platform | Identity/Tenant · bảng tenants | ✅ core | travel-os/07, backend/AUTH-TENANT-CONTEXT |
| Account | Khách hàng doanh nghiệp dùng nền tảng (1 Account ↔ 1 Tenant) | Platform/Growth | Tenant&Provisioning · bảng customers* | 🟡 (customers/provisioning) | business-os/03, backend/CUSTOMER-PROVISIONING-DESIGN |
| Customer | Khách du lịch/end-user đặt qua tenant | Growth | Customer context (customer_profiles*) | ⏳ design | travel-os/03, business-os/00 |
| Partner | Đơn vị lưu trú/nhà cung cấp đưa inventory | Supply | Partner context (partners*) | ⏳ design | travel-os/03, travel-os/08 |
| Listing | Chỗ bán được (Reservable) của tenant | Supply | Catalog · bảng listings | ✅ LIVE | backend/BOOKING-API, travel-os/03 |
| Unit | Đơn vị đặt được thuộc Listing (phòng/bàn/ghế/gói) | Supply | Catalog · bảng units | ✅ LIVE | backend/BOOKING-API |
| Availability | Tồn kho tổng theo Unit (điểm khoá chống overbook) | Supply | Catalog · bảng availability | ✅ LIVE | backend/BOOKING-API, travel-os/03 |
| Pricing | Giá mỗi Unit/kỳ (MVP: phẳng) | Supply | Pricing · bảng prices | ✅ LIVE (phẳng) | travel-os/03, business-os/05 |
| Payment | Thu/hoàn/payout + ledger | Payments | Payment context (payments*) | ⏳ design | travel-os/05, travel-os/04 |
| Affiliate | Referral + commission cho Customer | Growth | Affiliate context (affiliates*) | ⏳ design | travel-os/03, business-os/04 |
| User | Tài khoản đăng nhập (staff/partner-admin), thuộc nhiều tenant | Platform | Identity · bảng users, tenant_memberships | ✅ LIVE (2U) | backend/AUTH-GATEWAY |
| Session | Phiên đăng nhập (nguồn revocation), JWT tham chiếu | Platform | Identity · bảng user_sessions | ✅ LIVE (2U) | backend/AUTH-GATEWAY |
| API Key | Bí mật server-to-server → tenant context | Platform | Identity · bảng api_keys | ✅ LIVE | backend/AUTH-TENANT-CONTEXT, OPS-CLI |
| Outbox Event | Domain event lưu cùng transaction (at-least-once) | Platform | Event Bus · bảng outbox_events | ✅ LIVE | backend/OUTBOX-HANDLERS, travel-os/04 |
| Notification | Yêu cầu + gửi đa kênh (console→provider thật) | Platform | Notification context | 🟡 interface+console | backend/NOTIFICATION-PROVIDERS |
| Travel Intelligence | Search/rank/recommend/trust (consume-only) | AI/Trust | Intelligence (feature store/index) | ⏳ design | travel-os/09, product-management/AI-READINESS |
| Medical Tourism | Vertical y tế: case/package/compliance (PHI cô lập) | Medical | Medical context (medical_**) | ⏳ design | platform/MEDICAL-TOURISM-INTEGRATION, travel-os/07 tiers |
* = bảng dự kiến (chưa tạo). Danh sách bảng đã tạo thực tế: tenants, listings, units, availability, prices, reservations, idempotency_keys, api_keys, customers, provisioning, outbox_events, users, tenant_memberships, user_sessions.