domaino/pocketbase/pb_migrations
agent b3ecc1722b Shop hooks: several durations per service, slots become time windows
A service now has `durations` ([{ minutes, price }]) instead of one
duration and price. A slot is either a `window` (a stretch of time with the
services that can be booked in it, start times every 30 min or only at the
edges of the free time) or a `session` (one service, fixed time, places —
the old group slot). Basket and order lines carry their own start and
minutes, so availability is computed from bookings alone.

The migration keeps paid bookings blocking their time (order lines get
minutes from their slot), then deletes the old slots — agreed: start fresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
2026-10-25 19:59:00 +00:00
..
1791244800_lock_rules_dates_unique.js PocketBase: close public sign-up, lock commerce writes, add dates/unique keys 2026-10-06 10:55:12 +00:00
1791331200_lock_order_lines.js Lock order_lines writes (they were public) 2026-10-06 12:34:51 +00:00
1792800000_items_buffer_minutes.js Services: per-service get-ready time (items.bufferMinutes) 2026-10-24 07:41:17 +00:00
1792800100_slot_capacity_and_line_holds.js Shop: places per slot, and bookings block overlapping slots 2026-10-24 08:26:37 +00:00
1793000000_orders_anonymise.js Customers page: export, correct and erase personal data; automatic retention 2026-10-24 10:44:45 +00:00
1793100000_durations_and_time_windows.js Shop hooks: several durations per service, slots become time windows 2026-10-25 19:59:00 +00:00