Services: per-service get-ready time (items.bufferMinutes)

Migration adds the field to existing databases; pb_schema.json mirrors it
in the 0.23 top-level format (min/onlyInt under "options" is ignored).
Edited next to Duration in Services & products.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VaXE9U7AmW3dfD2w6cbLfk
This commit is contained in:
agent 2026-10-24 07:41:17 +00:00
parent 13b5f2bbcb
commit 1a71c9db73
6 changed files with 50 additions and 6 deletions

View file

@ -31,6 +31,7 @@ export async function loadShopData(pb: PocketBase): Promise<{ items: ItemRecord[
type: record.type,
stock: record.stock ?? null,
duration: record.duration ?? null,
bufferMinutes: record.bufferMinutes ?? null,
active: record.active
};
});

View file

@ -110,6 +110,7 @@ export type ItemRecord = {
type: ItemType;
stock: number | null;
duration: number | null; // minutes, for item_with_time
bufferMinutes: number | null; // get-ready time after each appointment; default gap when generating slots
active: boolean;
};