Backend Draft
This commit is contained in:
10
backend/tenants/models.py
Normal file
10
backend/tenants/models.py
Normal 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
|
||||
Reference in New Issue
Block a user