مسودة: تحتاج مراجعة محامٍ — Draft: requires legal review
العربيةسياسة الاحتفاظ بالبيانات وحذفها
آخر تحديث: 29 أكتوبر 2026. تصف هذه الصفحة ما يفعله النظام فعلاً اليوم؛ المدد المعلّمة «مقترح» قرار لم يُنفَّذ بعد.
1. حذف الساكن حسابه (من التطبيق أو البوت أو بطلب لإدارة المبنى)
- يُحذف فوراً: صور الهوية والمستندات (ومن تخزين الكائنات خلال دقائق)، والسيارات، والوحدات الإضافية، والحصص، وتصاريح الزوار، وطلبات فتح البوابة، ورسائل الإدارة والمخالفات، وإشعارات التطبيق، وأرقام المواقف.
- يُجرَّد من الهوية: صفّ الحساب يبقى برقم الهاتف وحده (لمنع التكرار ولإعادة التسجيل لاحقاً) بحالة «محذوف»، ويُستبدل الاسم ورقم الوحدة. سجل حركة البوابة يبقى لأمن المبنى مفصولاً عن الحساب (بأرقام اللوحات فقط).
- يبقى: أرشيف محادثات واتساب مع البوت، وسجل التدقيق لإجراءات الإدارة، وطلب الحذف نفسه كسجل إداري - حتى حذف بيانات المبنى (البند 2). مقترح: حذف أرشيف محادثات الحساب المحذوف بعد 90 يوماً.
2. انتهاء الخدمة في مبنى (أو تدقيق مجاني بلا اشتراك)
- حذف كامل بطلب إدارة المبنى: كل سكان المبنى بحساباتهم ومستنداتهم وسياراتهم ومحادثاتهم ورموز الدخول وإشعاراتهم، وكل حركات المبنى وطلباته ودعواته وأوامر بواباته، ثم المبنى نفسه. الكاميرات تُفكّ ولا تُحذف. تصدر شهادة حذف بالأعداد. (معاينة قبل التنفيذ؛ لا يُنفَّذ إن كان لساكن وحدة في مبنى آخر حتى تُنقل.)
- حذف بيانات التدقيق وحدها: حركات وضع التدقيق وقراءات اللوحات الفاشلة ولقطاتها، ويبقى المبنى وسكانه.
- تسليم البيانات قبل الحذف: تصدير السكان والسيارات والمشاريع CSV/Excel من لوحة التحكم.
3. مدد الاحتفاظ حسب نوع البيانات
| البيانات | المدة اليوم | مقترح [قرار] |
|---|---|---|
| الحساب والسيارات والمستندات | طوال الاستخدام؛ حتى حذف الحساب أو المبنى | — |
| سجل حركة البوابة | حتى حذف بيانات المبنى | 24 شهراً |
| قراءات اللوحات الفاشلة | حتى حذف بيانات التدقيق أو المبنى | 90 يوماً |
| لقطات كاميرا البوابة | 8 أيام في تخزين Cloudflare المشفّر، ثم تُحذف تلقائياً (ومع حذف بيانات المبنى) | — |
| عيّنات تدريب قراءة اللوحات (نسخة من بعض لقطات البوابة) | حتى سنة مشفّرة، ثم تُحذف تلقائياً، وفوراً مع حذف الحساب أو بيانات المبنى | — |
| محادثات واتساب مع البوت | حتى حذف بيانات المبنى | 12 شهراً |
| رموز الدخول (OTP) | صالحة 5 دقائق | — |
| جلسات الدخول | التطبيق 90 يوماً تتجدد مع الاستخدام؛ لوحة التحكم 7 أيام؛ تبطل فوراً بتغيير كلمة المرور | — |
| روابط عرض المستندات | 5 دقائق | — |
| سجل التدقيق الإداري | دائم | 5 سنوات |
| النسخ الاحتياطية للقاعدة | 60 يوماً (Railway وBackblaze وCloudflare)؛ 30 يوماً (نسخة Goobab المحلية وGoogle Drive مشفّرة) | — |
| نسخة حاوية المستندات الاحتياطية | مرآة يومية: المحذوف يختفي منها خلال 24 ساعة | — |
| أعطال Sentry | حسب خطة Sentry، بلا بيانات الطلبات | — |
تنبيه: البيانات المحذوفة تبقى في النسخ الاحتياطية حتى انتهاء مدتها (60 يوماً كحد أقصى) ثم تزول، ولا تُستعاد منها إلا لاسترجاع النظام بعد كارثة.
Draft: requires legal review
EnglishData retention & deletion policy
Last updated: October 29, 2026. This page describes what the system actually does today; periods marked "proposed" are decisions not yet implemented.
1. A resident deletes their account (in the app, the bot, or by asking building management)
- Deleted immediately: ID photos and documents (and from object storage within minutes), vehicles, additional units, quotas, visitor passes, gate-open requests, management messages and violation notices, app notifications, and parking-spot numbers.
- De-identified: the account row remains with the phone number only (to prevent duplicates and allow re-registration), marked "deleted", with the name and unit number replaced. Gate history is kept for building security, detached from the account (plate numbers only).
- Kept: the WhatsApp bot conversation archive, the admin audit log and the deletion request itself as an administrative record — until the building's data is deleted (section 2). Proposed: delete the chat archive of deleted accounts after 90 days.
2. Service ends in a building (or a free audit without subscription)
- Full deletion at the building management's request: all of the building's residents with their accounts, documents, vehicles, conversations, login codes and notifications; all of the building's movements, requests, invitations and gate commands; then the building itself. Cameras are unassigned, not deleted. A deletion certificate with counts is issued. (Previewed before execution; blocked while a resident still holds a unit in another building until it is moved.)
- Audit-data-only deletion: audit-mode movements and failed plate reads with their snapshots; the building and residents remain.
- Data hand-over before deletion: residents, vehicles and projects export to CSV/Excel from the dashboard.
3. Retention by data type
| Data | Today | Proposed [decision] |
|---|---|---|
| Account, vehicles, documents | While in use; until account or building deletion | — |
| Gate movement history | Until the building's data is deleted | 24 months |
| Failed plate reads | Until audit or building deletion | 90 days |
| Gate camera snapshots | 8 days in encrypted Cloudflare storage, then deleted automatically (and with the building's data deletion) | — |
| Plate-reading training samples (a copy of some gate snapshots) | Up to one year, encrypted, then deleted automatically; immediately on account or building-data deletion | — |
| WhatsApp bot conversations | Until the building's data is deleted | 12 months |
| Login codes (OTP) | Valid 5 minutes | — |
| Sign-in sessions | App 90 days, renewed on use; dashboard 7 days; revoked immediately on password change | — |
| Document view links | 5 minutes | — |
| Admin audit log | Indefinite | 5 years |
| Database backups | 60 days (Railway, Backblaze, Cloudflare); 30 days (Goobab's local copy and encrypted Google Drive copy) | — |
| Document bucket backup | Daily mirror: deleted objects disappear within 24 hours | — |
| Sentry error events | Per Sentry plan, without request data | — |
Note: deleted data remains in backups until they expire (60 days at most), and is restored from them only to recover the system after a disaster.