general category trip

This commit is contained in:
2026-05-07 18:47:45 +07:00
parent 12f13f2049
commit 49aa64c522
25 changed files with 904 additions and 386 deletions
+19 -1
View File
@@ -97,7 +97,10 @@ model Trip {
id String @id @default(cuid())
title String
description String?
mountain String
/// Kategori aktivitas.
category ActivityCategory @default(HIKING)
/// Destinasi/subjek aktivitas — interpretasinya tergantung kategori (gunung untuk HIKING, spot untuk DIVING, venue untuk CONCERT, tema untuk WORKSHOP, dst).
destination String
location String
/// Titik kumpul / meeting point (teks bebas)
meetingPoint String?
@@ -121,6 +124,8 @@ model Trip {
participants TripParticipant[]
images TripImage[]
reviews TripReview[]
@@index([category, status, date])
}
model TripReview {
@@ -174,6 +179,19 @@ enum TripStatus {
COMPLETED
}
enum ActivityCategory {
HIKING
CAMPING
SNORKELING
DIVING
ISLAND_HOPPING
CITY_TRIP
CULINARY
CONCERT
WORKSHOP
RETREAT
}
enum ParticipantStatus {
PENDING
CONFIRMED