Modellar tayyor

This commit is contained in:
2025-11-24 11:46:23 +05:00
parent 3da10c2a7f
commit 5632e0c484
48 changed files with 877 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
from django.contrib.auth import models as auth_models
from django.db import models
from ..choices import RoleChoice
from ..choices import RoleChoice, AccountType
from ..managers import UserManager
@@ -11,6 +11,8 @@ class User(auth_models.AbstractUser):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
validated_at = models.DateTimeField(null=True, blank=True)
is_verify = models.BooleanField(default=False)
account_type = models.CharField(choices=AccountType, max_length=255, default=AccountType.PERSONAL)
role = models.CharField(
max_length=255,
choices=RoleChoice,