TỔNG QUAN KIẾN TRÚC & CẤU TRÚC DIRECTUS CMS - YATA WELLNESS
Tài liệu này tổng hợp toàn bộ kiến trúc cơ sở dữ liệu Directus CMS cho website Yata Wellness (yatawellness.com). Các Collections chi tiết đã được tách thành các file tài liệu riêng biệt trong thư mục docs/collections/.
1. TỔNG QUAN VÀ DANH SÁCH COLLECTIONS
Website hỗ trợ đa ngôn ngữ Tiếng Anh (Mặc định) và Tiếng Việt. Cơ chế đa ngôn ngữ được thiết lập thông qua chuẩn Directus Translation interface.
Below is the list of all Directus collections and their dedicated documentation files:
1.1 Singletons (Cấu hình dùng chung & Nội dung trang cố định)
| Tên Collection | Loại | Mô tả | File Chi Tiết |
|---|---|---|---|
site_settings | Global Singleton | Logo, mạng xã hội, hotline, email, địa chỉ | site_settings.md |
home_page | Page Singleton | Nội dung trang chủ (/), Sứ mệnh, Tầm nhìn | home_page.md |
our_master_page | Page Singleton | Trang Master Trainer Maisie Huỳnh (/our-master) | our_master_page.md |
sanctuary_page | Page Singleton | Trang Studio Sanctuary (/sanctuary) | sanctuary_page.md |
corporate_event_page | Page Singleton | Trang Dịch vụ Doanh nghiệp (/coporate-event) | corporate_event_page.md |
our_training_page | Page Singleton | Trang Khóa Đào Tạo HLV (/our-training) | our_training_page.md |
1.2 Standard Collections (Danh mục tái sử dụng)
| Tên Collection | Loại | Mô tả | File Chi Tiết |
|---|---|---|---|
services | Standard Collection | Các gói liệu trình trị liệu âm thanh (Sound Bath) | services.md |
corporate_services | Standard Collection | Dịch vụ Doanh nghiệp (Event 1 ngày, Retreat) | corporate_services.md |
projects | Standard Collection | Hồ sơ các dự án tiêu biểu (Luxasia SK-II, Kenvue,...) | projects.md |
courses | Standard Collection | Danh mục khóa học (Sound Healing & Yoga TTC) | courses.md |
testimonials | Standard Collection | Lời nhận xét & Review 5 sao từ Google Maps | testimonials.md |
1.3 User Form Submissions (Thu thập dữ liệu khách hàng)
| Tên Collection | Loại | Mô tả | File Chi Tiết |
|---|---|---|---|
bookings | Form Submission | Khách đặt lịch trị liệu tại Sanctuary | bookings.md |
lead_consultations | Form Submission | Đăng ký tư vấn doanh nghiệp & khóa học | lead_consultations.md |
2. SƠ ĐỒ QUAN HỆ DỮ LIỆU (ERD DIAGRAM)
erdiagram
languages ||--o{ services_translations : "translates"
languages ||--o{ courses_translations : "translates"
languages ||--o{ projects_translations : "translates"
languages ||--o{ corporate_services_translations : "translates"
languages ||--o{ testimonials_translations : "translates"
services ||--o{ services_translations : "has"
services ||--o{ directus_files : "has images & videos"
courses ||--o{ courses_translations : "has"
projects ||--o{ projects_translations : "has"
corporate_services ||--o{ corporate_services_translations : "has"
testimonials ||--o{ testimonials_translations : "has"
home_page }|--|| our_master_page : "references"
our_training_page }|--|| our_master_page : "references"
bookings }|--o| services : "selects service"
lead_consultations }|--o| courses : "selects course"
3. MAPPING DỮ LIỆU VỚI CÁC FILE DESIGN LAYOUT
| File CSV Layout Gốc | URL Frontend | Directus Collections Được Sử Dụng |
|---|---|---|
WELLNESS WEBSITE LAYOUT.xlsx - HOME.csv | yatawellness.com | home_page, site_settings, our_master_page, testimonials |
WELLNESS WEBSITE LAYOUT.xlsx - OUR MASTER.csv | yatawellness.com/our-master | our_master_page |
WELLNESS WEBSITE LAYOUT.xlsx - OUR SANCTUARY.csv | yatawellness.com/sanctuary | sanctuary_page, services, bookings, testimonials |
WELLNESS WEBSITE LAYOUT.xlsx - COPORATE EVENT.csv | yatawellness.com/coporate-event | corporate_event_page, corporate_services, projects, testimonials, lead_consultations |
WELLNESS WEBSITE LAYOUT.xlsx - OUR TRAINING.csv | yatawellness.com/our-training | our_training_page, courses, our_master_page, lead_consultations |
4. HƯỚNG DẪN CẤU HÌNH TRÊN DIRECTUS ADMIN
- Kích hoạt Đa Ngôn Ngữ: Vào Settings > Data Model, tạo 2 ngôn ngữ trong
languages:en-US(Default) &vi-VN. - Thiết lập Roles & Permissions:
- Public Role: Được phép
Createbản ghi vàobookingsvàlead_consultations. Chỉ đượcReadcác bản ghi có statuspublished. - Admin / Staff Role: Quyền quản trị và xử lý dữ liệu booking/tư vấn.
- Public Role: Được phép