camper/demo
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
..
ad.avif Add ad management for surroundings 2024-01-23 14:53:15 +01:00
bungalows.avif Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
bungalows_carousel2.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
bungalows_carousel3.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
bungalows_carousel4.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
bungalows_carousel5.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
bungalows_carousel6.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
bungalows_premium.avif Add “bungalows premium” campsite type to demo 2023-10-06 18:53:44 +02:00
demo.sql Allow many campsites for each reservation 2024-04-21 21:28:41 +02:00
home_carousel0.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel1.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel2.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel3.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel4.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel5.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel6.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel7.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
home_carousel8.jpg Make home page’s carousel manageable via the database 2023-09-15 01:05:38 +02:00
plots.avif Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
safari_tents.avif Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
safari_tents_carousel1.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
safari_tents_carousel2.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
safari_tents_carousel3.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
safari_tents_carousel4.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
safari_tents_carousel5.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
safari_tents_carousel6.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
services_carousel0.avif Add the services page 2023-09-17 03:42:16 +02:00
services_carousel1.avif Add the services page 2023-09-17 03:42:16 +02:00
services_carousel2.avif Add the services page 2023-09-17 03:42:16 +02:00
services_carousel3.avif Add the services page 2023-09-17 03:42:16 +02:00
wooden_lodges.avif Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
wooden_lodges_carousel0.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel1.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel2.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel3.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel4.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel5.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel6.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel7.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel8.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carousel9.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carouselA.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carouselB.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00
wooden_lodges_carouselC.avif Add the carousel for campsite types 2023-10-12 17:43:23 +02:00