Files
Sitzplatzbuchungstool/pages/Sitzplätze/queries/CreateBooking/CreateBooking.txt
T
2026-08-20 08:24:24 +00:00

36 lines
687 B
Plaintext

INSERT INTO `buchungen`
(
`platz_id`,
`titel`,
`startzeit`,
`endzeit`,
`gebucht_von`
)
VALUES
(
{{
appsmith.store.bookingFormData?.seatId ||
appsmith.store.selectedSeatId
}},
{{
appsmith.store.bookingFormData?.title ||
"Platzbuchung"
}},
{{
appsmith.store.bookingFormData?.allDay === true
? appsmith.store.bookingFormData.startDate + " 00:00:00"
: appsmith.store.bookingFormData.startDateTime
}},
{{
appsmith.store.bookingFormData?.allDay === true
? appsmith.store.bookingFormData.endDate + " 23:59:59"
: appsmith.store.bookingFormData.endDateTime
}},
{{
appsmith.store.bookingFormData?.bookedBy
}}
);