implement file module and add files relation to booking entity and populate on fetch

This commit is contained in:
marshal
2026-05-25 10:19:08 +03:00
parent ae317540c1
commit 9432814e3b
12 changed files with 245 additions and 44 deletions

View File

@@ -39,7 +39,7 @@ export class BookingsController {
@ApiBody({
description:
"Booking form data. Attach files with any field name (e.g. passport, tin_certificate). " +
"File metadata is stored in the documents JSONB column.",
"Each uploaded file is saved as a row in the files table (resource=bookings).",
type: CreateBookingDto,
})
create(
@@ -156,4 +156,5 @@ export class BookingsController {
getConsolidationDetails(@Param("id", ParseUUIDPipe) id: string) {
return this.bookingsService.getConsolidationDetails(id);
}
}