# User Consents 📖 Consentements RGPD avec historique et versioning ## Diagramme ```mermaid erDiagram USERS ||--o{ USER_CONSENTS : "donne" USER_CONSENTS { uuid id PK uuid user_id FK string consent_type string consent_version boolean accepted timestamp given_at inet ip_address string user_agent } ``` ## Légende **Types de consentement** : - `geolocation_precise` : Géolocalisation GPS précise (obligatoire pour contenu hyperlocal) - `analytics` : Analytics Matomo (optionnel) - `push_notifications` : Notifications push (optionnel) - `cookies_analytics` : Cookies analytiques (optionnel) **Versioning** : - Chaque changement de CGU/politique = nouvelle version - Historique complet conservé (preuve légale) - Format version : `v1.0`, `v2.0`, etc. **Conformité RGPD** : - Granularité : fonctionnel / analytique / marketing - Consentement libre et éclairé - Révocable à tout moment - Historique = preuve en cas de contrôle CNIL