first commit

This commit is contained in:
javad committed 2026-06-15 10:57:28 +03:30
commit 3e4574dcdd
163 files changed
+3559

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
from django.contrib.auth import get_user_model
from django.db import models
from utils.base_model import BaseModel
# Create your models here.
CUserModel = get_user_model()
class JwtToken(BaseModel):
refresh = models.CharField(max_length=500, null=False, blank=False)
access = models.CharField(max_length=500, null=True, blank=True)
expire = models.DateTimeField(null=True, blank=True)
cuser = models.ForeignKey(CUserModel, null=False, blank=False, on_delete=models.CASCADE)
is_blocked = models.BooleanField(default=False)
def __str__(self):
return f'{self.cuser}'
class SmsOtp(BaseModel):
mobile = models.BigIntegerField(null=False, blank=False)
otp = models.IntegerField(null=False, blank=False)
expire = models.DateTimeField(null=True, blank=True)
def __str__(self):
return f'{self.mobile} - {self.otp}'