Skip to main content

DIRECTUS COLLECTION: services

  • Type: Standard Collection
  • Trang tương ứng: Hiển thị chính tại Trang Sanctuary (/sanctuary) & tham chiếu ở Trang chủ (/)
  • Mục đích: Quản lý danh mục các gói Liệu trình Trị liệu âm thanh (Sound Bath, Chuông xoay, Trị liệu cá nhân/nhóm).

1. Danh sách Fields (Trường dữ liệu)​

Field NameTypeInterfaceDescriptioni18n
idUUIDPrimary KeyID duy nhấtKhông
statusStringSelect DropdownTrạng thái (published, draft, archived)Không
sortIntegerSortThứ tự ưu tiên hiển thịKhông
cover_imageMany-to-OneImageẢnh đại diện gói trị liệuKhông
galleryMany-to-ManyMedia FilesThư viện ảnh + Video trải nghiệmKhông
duration_minutesIntegerInput (Number)Thời lượng (ví dụ: 60, 90 phút)Không
price_displayStringInputGiá hiển thị (ví dụ: Liên hệ hoặc 1.500.000 VNĐ)Có (nếu cần)
translationsTranslationsDirectus TranslationsBảng chứa thông tin tiêu đề, mô tả đa ngôn ngữCó

2. Bảng Đa Ngôn Ngữ (services_translations)​

Field NameTypeInterfaceDescription
idInteger / UUIDPrimary KeyID
services_idForeign KeyRelationalLiên kết tới services.id
languages_codeForeign KeyRelationalMã ngôn ngữ (en-US, vi-VN)
titleStringInputTên gói trị liệu (Ví dụ: Floating Sound Bath, Singing Bowl Healing)
slugStringInputURL Slug thân thiện SEO
short_descriptionTextText AreaTóm tắt mô tả gói trị liệu
full_descriptionWYSIWYGEditorChi tiết quy trình & trải nghiệm
benefitsJSON / WYSIWYGList / EditorLợi ích về sức khỏe & tinh thần

3. Liên Kết Dữ Liệu (Relations)​

  • Mỗi gói dịch vụ có thể được chọn khi khách đặt lịch tại collection bookings.