{
  "version": "1.0.0",
  "reason": "pre_update",
  "createdAt": "2026-09-11T11:10:41.435Z",
  "database": "astro2",
  "tableCount": 13,
  "totalRecords": 22,
  "data": {
    "bookings": [],
    "users": [
      {
        "id": "admin_1",
        "name": "Operations Admin",
        "email": "admin@astroapp.com",
        "role": "admin",
        "avatar_url": null,
        "wallet_balance": "0.00",
        "fcm_token": null,
        "online_status": true,
        "last_seen": "2026-09-11T11:08:05.172Z",
        "created_at": "2026-09-11T11:08:05.172Z",
        "updated_at": "2026-09-11T11:08:05.172Z",
        "password_hash": "$2b$10$dMMr88zxc4qdaZvNa8Wl0ufbDQ4KCoV7/O1eOjmGgixwin1NKe006",
        "status": "active"
      },
      {
        "id": "staff_1",
        "name": "Support & Ops Staff",
        "email": "staff@astroapp.com",
        "role": "staff",
        "avatar_url": null,
        "wallet_balance": "0.00",
        "fcm_token": null,
        "online_status": true,
        "last_seen": "2026-09-11T11:08:05.172Z",
        "created_at": "2026-09-11T11:08:05.172Z",
        "updated_at": "2026-09-11T11:08:05.172Z",
        "password_hash": "$2b$10$I43VS/TfKPpMRaptYETypeMLqHwxPI3VOsQYwVa7VBIMkV8R95fB2",
        "status": "active"
      },
      {
        "id": "astro_502",
        "name": "Pandit Rajesh Shastri",
        "email": "rajesh.astro@example.com",
        "role": "astrologer",
        "avatar_url": null,
        "wallet_balance": "0.00",
        "fcm_token": null,
        "online_status": true,
        "last_seen": "2026-09-11T11:08:05.172Z",
        "created_at": "2026-09-11T11:08:05.172Z",
        "updated_at": "2026-09-11T11:08:05.172Z",
        "password_hash": "$2b$10$Jt8zfbyjvwqApRJ1kYtOEuJkUAuVecJbiBVNx6G06hpm2/whYSVfC",
        "status": "active"
      },
      {
        "id": "client_102",
        "name": "Priya Verma",
        "email": "priya@example.com",
        "role": "client",
        "avatar_url": null,
        "wallet_balance": "800.00",
        "fcm_token": null,
        "online_status": true,
        "last_seen": "2026-09-11T11:08:05.172Z",
        "created_at": "2026-09-11T11:08:05.172Z",
        "updated_at": "2026-09-11T11:08:05.172Z",
        "password_hash": "$2b$10$9tqgqsHRsg4u/R9LtT2n.e0vtpCWqEndCcYM881Cd4dEG5weYNWna",
        "status": "active"
      },
      {
        "id": "client_101",
        "name": "Rahul Sharma",
        "email": "rahul@example.com",
        "role": "client",
        "avatar_url": null,
        "wallet_balance": "1500.00",
        "fcm_token": null,
        "online_status": true,
        "last_seen": "2026-09-11T11:10:15.218Z",
        "created_at": "2026-09-11T11:08:05.172Z",
        "updated_at": "2026-09-11T11:08:05.172Z",
        "password_hash": "$2b$10$9tqgqsHRsg4u/R9LtT2n.e0vtpCWqEndCcYM881Cd4dEG5weYNWna",
        "status": "active"
      },
      {
        "id": "superadmin_1",
        "name": "System Superadmin",
        "email": "superadmin@astroapp.com",
        "role": "superadmin",
        "avatar_url": null,
        "wallet_balance": "0.00",
        "fcm_token": null,
        "online_status": true,
        "last_seen": "2026-09-11T11:10:15.221Z",
        "created_at": "2026-09-11T11:08:05.172Z",
        "updated_at": "2026-09-11T11:08:05.172Z",
        "password_hash": "$2b$10$BUcPmGhz8LTZIn6R6B33Y.8KYI3L3.eI5UBUUYMbSklt4KYjSJ1f2",
        "status": "active"
      },
      {
        "id": "astro_501",
        "name": "Acharya Amit Sharma",
        "email": "amit.astro@example.com",
        "role": "astrologer",
        "avatar_url": null,
        "wallet_balance": "0.00",
        "fcm_token": null,
        "online_status": true,
        "last_seen": "2026-09-11T11:10:16.223Z",
        "created_at": "2026-09-11T11:08:05.172Z",
        "updated_at": "2026-09-11T11:08:05.172Z",
        "password_hash": "$2b$10$Jt8zfbyjvwqApRJ1kYtOEuJkUAuVecJbiBVNx6G06hpm2/whYSVfC",
        "status": "active"
      }
    ],
    "astrologer_profiles": [
      {
        "user_id": "astro_501",
        "audio_rate_per_min": "15.00",
        "video_rate_per_min": "25.00",
        "is_busy": false,
        "is_available": true,
        "rating": "4.95",
        "specialization": "Vedic Astrology & Kundali Expert"
      },
      {
        "user_id": "astro_502",
        "audio_rate_per_min": "20.00",
        "video_rate_per_min": "35.00",
        "is_busy": false,
        "is_available": true,
        "rating": "4.88",
        "specialization": "Tarot & Numerology"
      }
    ],
    "calls": [],
    "notification_logs": [],
    "setting_audit_logs": [
      {
        "id": 1,
        "user_id": "superadmin_1",
        "role": "superadmin",
        "setting_section": "database",
        "action": "reset_database",
        "old_value_summary": "N/A",
        "new_value_summary": "Full database reset performed. Backup created: db_backup_pre_reset_v1.0.0_2026-09-11T11-08-04-735Z.json",
        "ip_address": "::1",
        "created_at": "2026-09-11T11:08:05.226Z"
      }
    ],
    "encrypted_settings": [],
    "call_recordings": [],
    "call_quality_logs": [],
    "wallet_transactions": [],
    "device_tokens": [],
    "staff_permissions": [
      {
        "id": 1,
        "user_id": "staff_1",
        "permission_key": "view_clients",
        "created_at": "2026-09-11T11:08:05.176Z"
      },
      {
        "id": 2,
        "user_id": "staff_1",
        "permission_key": "view_astrologers",
        "created_at": "2026-09-11T11:08:05.178Z"
      },
      {
        "id": 3,
        "user_id": "staff_1",
        "permission_key": "view_bookings",
        "created_at": "2026-09-11T11:08:05.178Z"
      },
      {
        "id": 4,
        "user_id": "staff_1",
        "permission_key": "view_active_calls",
        "created_at": "2026-09-11T11:08:05.178Z"
      },
      {
        "id": 5,
        "user_id": "staff_1",
        "permission_key": "view_call_history",
        "created_at": "2026-09-11T11:08:05.179Z"
      },
      {
        "id": 6,
        "user_id": "staff_1",
        "permission_key": "view_recordings",
        "created_at": "2026-09-11T11:08:05.179Z"
      },
      {
        "id": 7,
        "user_id": "staff_1",
        "permission_key": "view_reports",
        "created_at": "2026-09-11T11:08:05.179Z"
      }
    ],
    "system_settings": [
      {
        "key": "mediasoup_port_range",
        "value": "40000-49999",
        "category": "webrtc",
        "description": "RTC UDP/TCP Media Port Range",
        "updated_at": "2026-09-11T11:08:05.181Z"
      },
      {
        "key": "coturn_enabled",
        "value": "true",
        "category": "coturn",
        "description": "Dynamic HMAC-SHA1 STUN/TURN Authentication",
        "updated_at": "2026-09-11T11:08:05.181Z"
      },
      {
        "key": "recording_retention_days",
        "value": "45",
        "category": "recording",
        "description": "Days to preserve server MP4 recordings before auto-cleanup",
        "updated_at": "2026-09-11T11:08:05.181Z"
      },
      {
        "key": "ringing_timeout_seconds",
        "value": "30",
        "category": "calling",
        "description": "Timeout before unanswered call transitions to missed",
        "updated_at": "2026-09-11T11:08:05.181Z"
      },
      {
        "key": "reconnect_grace_seconds",
        "value": "15",
        "category": "calling",
        "description": "Network reconnection grace duration",
        "updated_at": "2026-09-11T11:08:05.181Z"
      }
    ]
  }
}