Private
Public Access
1
0

building idoklad

This commit is contained in:
2024-11-16 15:40:12 +01:00
parent 2c60352069
commit 1204d7dc15
2 changed files with 35 additions and 0 deletions

View File

@@ -5365,3 +5365,14 @@ class ForceCurveAnalysis(models.Model):
date = self.date)
return s
class iDokladToken(models.Model):
access_token = models.CharField(max_length=512)
refresh_token = models.CharField(max_length=512)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
expires_in = models.IntegerField() # Store token expiry duration in seconds
def __str__(self):
return f"iDoklad Token updated at {self.updated_at}"