kop narsalar qoshildi

This commit is contained in:
behruz-dev
2025-11-21 19:17:04 +05:00
parent cb0cdfde26
commit 6d8f5e3fec
42 changed files with 595 additions and 16 deletions

View File

@@ -0,0 +1,2 @@
from .base import *
from .region import Region

View File

@@ -0,0 +1,9 @@
from django.db import models
class BaseModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
abstract = True

View File

@@ -0,0 +1,11 @@
from django.db import models
from core.apps.shared.models.base import BaseModel
class Region(BaseModel):
name = models.CharField(max_length=200, unique=True)
users_count = models.PositiveIntegerField(default=0)
def __str__(self):
return self.name