create initial models and mobile test for mojtaba eshaghi

This commit is contained in:
2025-05-05 15:25:46 +03:30
parent 7e301c14b7
commit ec58d9ef5e
167 changed files with 614 additions and 23 deletions

View File

@@ -7,8 +7,22 @@ from apps.core.models import BaseModel
class User(AbstractUser, BaseModel):
mobile = models.CharField(max_length=18)
phone = models.CharField(max_length=18, null=True)
national_code = models.CharField(max_length=16)
photo = models.CharField(max_length=50)
birthdate = models.DateTimeField(null=True)
nationality = models.CharField(max_length=20, null=True)
ownership_types = (
('N', 'Natural'),
('L', 'Legal')
)
ownership = models.CharField(
max_length=1,
choices=ownership_types,
default='N',
help_text="N is natural & L is legal"
)
address = models.TextField(max_length=1000, null=True)
photo = models.CharField(max_length=50, null=True)
province = models.ForeignKey(
'Province',
on_delete=models.CASCADE,