mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
f70ea5d497
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
13 lines
411 B
Python
13 lines
411 B
Python
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]}…)"
|