Add optional Django sync backend skeleton with token-based API

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-14 22:24:39 +02:00
parent dfae68db87
commit f70ea5d497
21 changed files with 329 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
from django.db import models
class SyncProfile(models.Model):
"""Progression synchronisée d'un apprenant, identifiée par un jeton secret (jamais stocké en clair)."""
token_hash = models.CharField(max_length=64, unique=True)
payload = models.JSONField()
updated_at = models.DateTimeField(auto_now=True)
def __str__(self) -> str:
return f"SyncProfile({self.token_hash[:8]}…)"