Realtime RTDB

📍 Business Infrastructure

grannys_deli_main
Location 1 — Main Counter
Asia/Kolkata (IST — UTC+5:30)
https://grannys-deli-default-rtdb.firebaseio.com/

🔒 Hardened Zero-Trust Rules

Client Writes to Financial PathsBLOCKED (.write: false)
User Privilege Self-PromotionBLOCKED (.write: false)
System Expense Item IntegrityIMMUTABLE (isSystemItem)
Financial Operations GatewayCloud Functions Admin SDK
Currency Calculation UnitInteger Paise Math

📅 Data Retention Engine

Automated pruning scheduled Cloud Function (cleanupExpiredFinancialData) runs on the 1st of every month at 03:00 IST.

Policy Standard
12 Full Calendar Months Retention
Calculates strict first day of current month minus 12 months in Asia/Kolkata timezone.
Audit log entries (auditLogs) are strictly preserved for permanent historical traceability.

📜 Automated Data Pruning Execution Logs

Source: /retentionLogs
Executed At (IST)Cutoff Date UsedDeleted ClosingsDeleted Line EntriesStatus
Loading retention execution logs...