django-tenants added, and configurated customers app
This commit is contained in:
2
core/apps/customers/models/__init__.py
Normal file
2
core/apps/customers/models/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .client import *
|
||||
from .domain import *
|
||||
10
core/apps/customers/models/client.py
Normal file
10
core/apps/customers/models/client.py
Normal 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
|
||||
7
core/apps/customers/models/domain.py
Normal file
7
core/apps/customers/models/domain.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.db import models
|
||||
|
||||
from django_tenants.models import DomainMixin
|
||||
|
||||
|
||||
class Domain(DomainMixin):
|
||||
pass
|
||||
Reference in New Issue
Block a user