create initial models and mobile test for mojtaba eshaghi
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user