For Camp Directors & Site Administrators. This guide covers camp configuration, season rollovers, role-based access control, passkeys and quick-switch cashier PINs, camper entitlements, immutable transaction auditing, and batch
.xlsx/.csvoperations.
1. Authentication, Roles & Cashier PINs
Camp Store v2.0 uses Better Auth backed by PostgreSQL 17 and JWKS/JWT tokens synced cleanly into PowerSync so every camp keeps strict per-camp isolation.
Staff Roles (camp_members)
Each staff member invited to a camp holds one of three scoped roles:
| Role | Capabilities |
|---|---|
camp_admin |
Full control over camp settings, inviting/removing staff, managing cashier PINs, editing products and categories, importing .xlsx sheets, adjusting balances, approving overdrafts, and exporting settlement reports. |
operator |
Runs POS checkouts, scans wristbands and items, processes refunds/reversals, logs restocks and physical shelf counts, and switches active cashier via Quick-Switch PIN. |
viewer |
Read-only access to dashboards, transaction logs, and inventory levels without mutating balances or catalog data. |
Passkeys & Quick-Switch Cashier PINs
- WebAuthn Passkeys: Camp administrators and leads can register hardware keys or device biometrics (Face ID, Touch ID, Windows Hello) via Better Auth Passkeys for fast, phishing-resistant sign-in at
https://campstore.app. - Email Invites (
camp_invites): Inviting a staff member by email creates a pending invite code. As soon as that user signs up or logs in with a matching email (case-insensitive), a PostgreSQL trigger automatically claims the invite and provisions theircamp_membersrow. - 4–6 Digit Cashier Quick-Switch PINs: Shared POS tablets stay signed into the camp’s main PowerSync session while individual teen cashiers or counselors swap shifts in seconds. PINs are hashed using PBKDF2-SHA256 (
globalThis.crypto.subtle), allowing instant offline PIN verification against the syncedcamp_memberstable so every checkout stamps the exactoperator_idandoperator_name_snapshot.
2. Managing Camps & Terminal Codes
Inside the Camps workspace, administrators can create isolated camp weeks or seasons (season_year, slug) so camper rosters and inventory counts never bleed across sessions.
Camp Configuration Fields
- Camp Name & Slug: Human-readable label (e.g., Summer 2026 - Week 1) and URL-safe slug.
- Default Entitlement: Default spending rule applied to newly registered campers (
strict,none,approval, orunlimited). - Allow Cash (
allow_cash): Enables or disables cash tender at the register alongside camper wallet balances. - Cart Checkout Code (
cart_checkout_code): Optional barcode value (e.g.,CHECKOUTor1234) that triggers instant cart submission when scanned at the terminal. - Cart Reset Code (
cart_reset_code): Optional barcode value (e.g.,CANCELor9999) that clears the active cart immediately when scanned.
Tip: Both
cart_checkout_codeandcart_reset_codematch case-insensitively and trim accidental whitespace so laminated counter barcode cards scan reliably across any USB or Bluetooth scanner.

3. Camper Account Administration
Campers are indexed in local SQLite (LOWER(code) / COLLATE NOCASE) for <2ms lookup during busy snack lines and sorted across cabin views using alphanumeric natural sorting (Cabin 2 precedes Cabin 10).
Camper Fields
- Identity:
first_name,last_name,cabin,tags, andis_staffflag (for counselors or CITs with store accounts). - Wristband Barcode (
code): Preserves exact leading-zero strings (such as0042or0) without numeric truncation. - Integer Cents Balance (
v_camper_balances): Camp Store v2.0 stores every dollar amount as an integer number of cents ($5.25=525). Balances are computed dynamically from the append-onlyledger_entriesstream—never as a mutable balance integer that can drift. - Entitlements:
- Strict: Blocks checkout if the cart total exceeds the camper’s current balance (no negative balance).
- None: Standard balance tracking without hard overdraft blocking.
- Approval: Flags the checkout when funds run short so an authorized lead can grant an explicit
entitlement_overrideor request parent approval. - Unlimited: Allows open tab spending settled at camp closeout via the final settlement report.

4. Auditing Transaction Logs & Reversals
Every purchase, top-up, cash sale, adjustment, and reversal writes an immutable record in ledger_entries along with itemized line snapshots in ledger_items and stock deltas in inventory_movements.
- Select a camper and open their History tab.
- Inspect timestamps, cashier snapshot (
operator_name_snapshot), payment method (wallet,cash,card,check, oradjustment), itemized quantities, and unit prices at the time of purchase. - To undo an erroneous transaction or process a return, select the entry and click Refund / Reverse Entry.
- The system appends a new counter-balancing
ledger_entriesrow referencingreverses_entry_id(enforcedUNIQUEin PostgreSQL to prevent double refunds), restores the exact cents to the camper’s wallet, and records a positiveinventory_movements(refund) delta.

5. .xlsx & .csv Diff Preview Imports, Backups & Season Rollover
Multi-Format Import with Diff Preview
Rather than blindly overwriting database documents, Camp Store parses uploaded .xlsx workbooks and .csv files across Campers, Catalog & Stock, and Settings, displaying a live Preview before writing a single row:
- Campers Columns:
id,first_name,last_name(orfull_name),code(wristband),cabin(bunk),balance(deposit),tags,is_staff,entitlement - Products Columns:
id,name(description/item_name),category(department),price,codes(sku/barcode),sold,stock(qty),track_stock,low_stock_threshold
Key safeguards during import:
- Match vs. Add Modes: Toggle Match File Amount vs. Add as Deposit (+) for camper top-ups, and Match Shelf Count vs. Add as Restock (+) for vendor deliveries.
- Blank Cells Safe: Empty balance, price, or stock cells on existing records keep their current values intact.
- Conflict & Duplicate Checks: Flags duplicate wristband codes, colliding product barcodes, and invalid currency values before commit, and automatically unarchives re-imported records.
Complete Archives, Starter Catalogs & Next-Season Rollover
- Reports (
Export .xlsx,.csv,.pdf): Download full settlement, shrinkage, and cashier shift reports in Excel, CSV, or print-ready PDF. - Campers & Catalog Exports (
.xlsx,.csv): Export filtered rosters or product catalogs directly from their workspace toolbars. - Settings → Data Backup, Import & Season Rollover: Download a Complete Camp Archive (
.xlsx) covering all 6 workbook sheets (Campers, Products, Categories, Invoices, Invoice Items, and Inventory Movements), export a clean Starter Catalog (.xlsx), or click Create Next Season Camp to clone active categories, menu items, pricing, and optional remaining stock into a brand-new camp session with zero carry-over camper balances.