Spaces:
Sleeping
Sleeping
Commit History
-
Rebuild Supabase schema and ingest; paginate app queries
- schema.sql: replace anonymized client_* tables with the lobels_stores and lobels_materials tables the app queries (adds unit_cost_usd, supplier, notes; description unique since stock codes are reused); RLS on, no policies - scripts/ingest.py: load DATA EXPORT and Materials Master from the register workbook, with --dry-run and post-load count check - scripts/verify.py: compare app query results against the workbook - app.py: page through lobels_stores queries (_fetch_all) so totals are not truncated at the API's 1000-row cap; q_variances uses each material's latest day per month; drop orphaned duplicate function body Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>d77ccd1