mirror of
https://github.com/Dadechin/Dashboard-XRoom.git
synced 2025-07-03 08:44:34 +00:00
23 lines
945 B
Python
23 lines
945 B
Python
|
|
|
|
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
class Customer(models.Model):
|
|
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
|
|
|
|
|
mobile_number = models.CharField(max_length=15) # Adjust max length as per your needs
|
|
profile_img = models.CharField(max_length=255,blank=True) # Adjust max length as per your needs
|
|
profile_glb = models.CharField(max_length=255,blank=True) # Adjust max length as per your needs
|
|
|
|
verification_sms_code = models.CharField(blank=True,max_length=6) # Adjust max length as per your needs
|
|
verification_email_code = models.CharField(blank=True,max_length=6) # Adjust max length as per your needs
|
|
|
|
is_sms_verified = models.BooleanField(default=False)
|
|
is_email_verified = models.BooleanField(default=False)
|
|
sms_time_for_valid = models.DateTimeField(blank=True, null=True)
|
|
|
|
def __str__(self):
|
|
return self.user.username |