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
  }}
);