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 +1,2 @@
from .user import * # noqa
from .notification_type import * # noqa

View File

@@ -0,0 +1,11 @@
from django.db import models
from django.utils.translation import gettext_lazy as _
class NotificationType(models.TextChoices):
"""
Notification Types
"""
SYSTEM = "System", _("System")
ANOTHER = "Another", _("Another")

View File

@@ -10,3 +10,10 @@ class RoleChoice(models.TextChoices):
SUPERUSER = "superuser", _("Superuser")
ADMIN = "admin", _("Admin")
USER = "user", _("User")
class AccountType(models.TextChoices):
"""
User Account Type
"""
PERSONAL = "personal", _("Personal")
BUSINESS = "business", _("Business")