django-tenants added, and configurated customers app

This commit is contained in:
behruz-dev
2025-11-19 16:03:31 +05:00
parent ccdf6fe2ac
commit 849e5bd6c4
21 changed files with 186 additions and 9 deletions

View File

6
core/apps/shared/apps.py Normal file
View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class SharedConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'core.apps.shared'

View File

View File

@@ -0,0 +1 @@
from .base import *

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

0
core/apps/shared/urls.py Normal file
View File