清空,重构

This commit is contained in:
2026-04-28 13:15:55 +08:00
parent 381079bbf3
commit 61535a53c2
170 changed files with 0 additions and 1219 deletions

View File

@@ -1 +0,0 @@
from django.contrib import admin

View File

@@ -1,6 +0,0 @@
from django.apps import AppConfig
class TenantConfig(AppConfig):
name = "apps.tenant"
verbose_name = "租户管理"

View File

@@ -1,23 +0,0 @@
from django.db import models
from django_tenants.models import DomainMixin, TenantMixin
class Tenant(TenantMixin):
name = models.CharField(max_length=100)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
auto_create_schema = True
class Meta:
verbose_name = "租户"
verbose_name_plural = "租户"
def __str__(self) -> str:
return self.name
class Domain(DomainMixin):
class Meta:
verbose_name = "租户域名"
verbose_name_plural = "租户域名"

View File

@@ -1,6 +0,0 @@
from celery import shared_task
@shared_task
def sample_task() -> str:
return "tenant task placeholder"

View File

@@ -1,9 +0,0 @@
from django.urls import path
from . import views
app_name = "tenant"
urlpatterns = [
path("", views.index, name="index"),
]

View File

@@ -1,5 +0,0 @@
from django.http import HttpRequest, HttpResponse
def index(request: HttpRequest) -> HttpResponse:
return HttpResponse("tenant app placeholder")