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

@@ -0,0 +1,2 @@
from .client import *
from .domain import *

View File

@@ -0,0 +1,10 @@
from django.db import models
from django_tenants.models import TenantMixin
class Client(TenantMixin):
name = models.CharField(max_length=100)
created_at = models.DateField(auto_now_add=True)
auto_create_schema = True

View File

@@ -0,0 +1,7 @@
from django.db import models
from django_tenants.models import DomainMixin
class Domain(DomainMixin):
pass