feat(p0): prix/nuit + booking form public + /inscription + /reservations/[id]

This commit is contained in:
Claude Integration 2026-06-01 01:34:00 +00:00
parent f09a680059
commit e79b6dd141
15 changed files with 590 additions and 9 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE "Carbet" ADD COLUMN "nightlyPrice" DECIMAL(10,2) NOT NULL DEFAULT 0;
UPDATE "Carbet" SET "nightlyPrice" = 80 WHERE "nightlyPrice" = 0;

View file

@ -124,6 +124,8 @@ model Carbet {
// Détails d'accès route pour ROAD_AND_RIVER (GPS, distance, type de piste).
roadAccessNote String?
capacity Int
// Prix par nuit pour le carbet entier (toute capacité). En euros.
nightlyPrice Decimal @db.Decimal(10, 2) @default(0)
// Contraintes séjour (plugin min-stay). null = pas de contrainte.
minStayNights Int?
maxStayNights Int?