Backend Draft

This commit is contained in:
__init__
2026-02-23 20:31:53 +05:30
commit eec700af51
127 changed files with 2356 additions and 0 deletions

10
backend/tenants/models.py Normal file
View File

@@ -0,0 +1,10 @@
from django.db import models
class Tenant(models.Model):
name = models.CharField(max_length=255)
subdomain = models.CharField(max_length=100, unique=True, db_index=True)
created_at = models.DateTimeField(auto_now_add=True)
is_active = models.BooleanField(default=True)
def __str__(self):
return self.name