camper/pkg/database
jordi fita mas 92dba96b29 Add campsite_type_pet_cost relation to hold price of dogs in campsites
It is a separate relation, instead of having a field in campsite_type,
because not all campsite types allow dogs.  I could have added a new
field to campsite_type, but then its values it would be meaningless for
campsites that do not allow dogs, and a nullable field is not a valid
solution because NULL means “unknown”, but we **do** know the price —
none.

A separate relation encodes the same information without ambiguities nor
null values, and, in fact, removed the dogs_allowed field from
campsite_type to prevent erroneous status, such as a campsite type that
allows dogs without having a cost — even if the cost is zero, it has to
be added to the new relation.
2024-02-10 06:18:30 +01:00
..
RecordArray.go Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
db.go Refactor ISO date, and datestamp format in constant 2024-01-31 19:58:46 +01:00
funcs.go Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
tx.go Add the campsite type cost per season 2023-10-01 21:14:39 +02:00
types.go Register PostgreSQL types once on start with guest user 2023-12-13 16:47:31 +01:00