add trip image

This commit is contained in:
2026-04-16 16:26:29 +07:00
parent 237caad488
commit d0480df31a
43 changed files with 2334 additions and 214 deletions
+11 -1
View File
@@ -29,7 +29,6 @@ model Trip {
date DateTime
maxParticipants Int
price Int
image String?
status TripStatus @default(OPEN)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -38,6 +37,17 @@ model Trip {
organizer User @relation(fields: [organizerId], references: [id])
participants TripParticipant[]
images TripImage[]
}
model TripImage {
id String @id @default(cuid())
url String
caption String?
order Int @default(0)
tripId String
trip Trip @relation(fields: [tripId], references: [id], onDelete: Cascade)
}
model TripParticipant {