bettersight-statement-extra.../pocketbase/pb_migrations
JasonFraser 37ab655494 Add usage tracking foundation: usageEvents + a visible pages-counter
The first piece of a stated future billing model, scoped to exactly
this: a visible "pages this month" counter and the raw data recording
behind it - not plan enforcement, payment processing, or the described
pause/resume billing-cycle logic itself. New append-only/immutable
usageEvents collection (pb_migrations/13); one event recorded per
successfully delivered extraction (result.page_reports.length), not a
Preview click. "This period" is explicitly the calendar month - a
placeholder until a real subscription/plan record exists to anchor a
custom cycle against.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-24 08:16:01 -04:00
..
1_create_collections.js Add PocketBase: accounts (password + Google) + schema for R2-backed docs 2026-10-13 00:26:41 -04:00
2_add_timestamps.js Move document persistence from localStorage to PocketBase (Stage B.2) 2026-10-13 06:41:51 -04:00
3_add_export_file.js Move Excel exports to R2; remove dead per-extraction workbook generation 2026-10-13 07:13:20 -04:00
4_add_layout_mapper_schema.js Add PocketBase schema for the layout mapper (L.3) 2026-10-14 15:34:43 -04:00
5_add_layout_mapping_fields.js Add PocketBase schema for the layout mapper (L.3) 2026-10-14 15:34:43 -04:00
6_fix_layout_mapping_update_rule.js Add PocketBase schema for the layout mapper (L.3) 2026-10-14 15:34:43 -04:00
7_add_layout_mapping_start_page.js Add the Layouts page, drift detection on every recheck, and fix two real persistence bugs (L.7) 2026-10-15 05:03:20 -04:00
8_add_layout_mapping_header_bottom.js Add the Layouts page, drift detection on every recheck, and fix two real persistence bugs (L.7) 2026-10-15 05:03:20 -04:00
9_add_layout_mapping_value_patterns.js Add valuePatterns field; relax columnMap to optional for value-pattern-only mappings 2026-10-30 19:10:01 -04:00
10_relax_layout_mapping_column_map_required.js Add valuePatterns field; relax columnMap to optional for value-pattern-only mappings 2026-10-30 19:10:01 -04:00
11_add_categorization_rules.js Add transaction categorization (project-scoped, client-side rules) 2026-11-24 08:15:20 -04:00
12_add_pending_mapping_fields.js Per-document mapping queue + persisted pending-mapping statements 2026-11-24 08:15:45 -04:00
13_add_usage_events.js Add usage tracking foundation: usageEvents + a visible pages-counter 2026-11-24 08:16:01 -04:00