camper/pkg
jordi fita mas 7eb718dfd9 Allow many campsites for each reservation
This is actually only used for plots, but, of course, it means that
every booking now can potentially have many booked campsites, and have
to create a relation for it.

I now have a conundrum regarding stay dates: i need them to be in the
same table as the campsite_id, because constraints only work on a single
relation and without the dates i can not make sure that i am not
overbooking a given campsite; but, on the other hand, all campsites
under the same booking must be for the same dates.

Where does stay belong, then? In booking or booking_campsite? If in
booking then i can not have a constraint that most assuredly will bite
me in the back, but if in booking_campsite then each campsite could
potentially have different dates.

As far as i can see, i can not use a exclude constraint with <> for
dates in booking_campsite to ensure that all rows with the same
booking_id have the same stay (i.e., exclude those that have a different
stay for the same booking_id).

For now, the say is in **both** relations: in booking, because i need it
when it is a prebooking, at least, and in booking_campsite for the
aforementioned constraint requirements.

Will this come back and bite me? Yes, it will. But what can i do?
2024-04-21 21:28:41 +02:00
..
amenity Add amenities section and public page 2024-01-27 22:51:41 +01:00
app Add the admin page to see payments 2024-02-14 04:54:42 +01:00
auth Send a notification email to the company too on successful payment 2024-02-29 16:59:30 +01:00
booking Fix booking list to use stay instead of arrival_date and departure_date 2024-04-19 21:29:36 +02:00
build Tag database with version 7 2024-04-03 09:34:36 +02:00
campsite Allow many campsites for each reservation 2024-04-21 21:28:41 +02:00
carousel Fix translation of carousel slides when changing media ID 2024-01-22 21:03:00 +01:00
company Add the number of maximum nights that tourist tax applies 2024-02-27 20:06:28 +01:00
database Compute ACSI discount 2024-03-14 22:08:01 +01:00
form Replace admin’s campsite map with a booking grid 2024-04-19 11:29:52 +02:00
hex Add cover media to campsite types 2023-09-10 03:04:18 +02:00
home Do not freak out just because the is no blooding slogan 2024-01-30 12:24:49 +01:00
http Actually log request to stdout to be captured by systemd 2024-02-29 16:12:08 +01:00
legal Do not translate legal to the default language 2024-01-12 19:57:11 +01:00
locale Replace L10nInput with I18nInput in service 2024-01-12 21:06:12 +01:00
location Add missing MethodPut to location/admin.gohtml’s MethodNotAllowed 2024-01-23 11:31:34 +01:00
mail Send an email on notification of success payment 2024-02-13 05:20:35 +01:00
media Allow updating images in CKEditor-“powered” textarea 2024-01-16 01:26:35 +01:00
payment Use pre-authorization to accept payment, rather than charge 2024-03-24 22:06:59 +01:00
redsys Handle payment notifications from Redsys 2024-02-13 02:38:38 +01:00
season Replace admin’s campsite map with a booking grid 2024-04-19 11:29:52 +02:00
services Add a Go function for delete_service SQL function 2024-01-16 18:12:38 +01:00
surroundings Add ad management for surroundings 2024-01-23 14:53:15 +01:00
template Add the admin page to see payments 2024-02-14 04:54:42 +01:00
user User and login attempt pages only accept GET 2024-01-18 19:34:58 +01:00
uuid Change draft_payment return type to row of payment 2024-02-13 19:51:39 +01:00