add account types

This commit is contained in:
2025-05-19 12:08:23 +03:00
parent b91bd87555
commit b9178804c8
6 changed files with 65 additions and 4 deletions

View File

@@ -1,9 +1,11 @@
from django.contrib.auth.models import User
from django.db import models
from routes.constants.account_types import account_types
import uuid
class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
account_type = models.CharField(choices=account_types, default='free')
is_active = models.BooleanField(default=True)
phone_number = models.CharField(max_length=13, verbose_name="Номер телефона")
birthday = models.DateField(null=True, blank=True, verbose_name="Дата рождения")