更新图片
This commit is contained in:
@@ -1514,45 +1514,7 @@ class PropertyManager(ActiveManager):
|
||||
|
||||
---
|
||||
|
||||
## 八、Django App 结构建议
|
||||
|
||||
```
|
||||
fonrey/
|
||||
├── apps/
|
||||
│ ├── tenants/ # django-tenants 配置
|
||||
│ ├── org/ # 组织人事(org_units, staff)
|
||||
│ ├── region/ # 区域管理(districts, business_areas, metro)
|
||||
│ ├── complex/ # 楼盘管理(complexes, buildings, schools)
|
||||
│ ├── property/ # 房源核心(properties + 所有子表)
|
||||
│ │ ├── models/
|
||||
│ │ │ ├── property.py # Property 主表
|
||||
│ │ │ ├── contact.py # PropertyContact
|
||||
│ │ │ ├── follow_log.py # FollowLog
|
||||
│ │ │ ├── key.py # PropertyKey
|
||||
│ │ │ ├── commission.py # Commission
|
||||
│ │ │ ├── survey.py # FieldSurvey
|
||||
│ │ │ ├── photo.py # PropertyPhoto
|
||||
│ │ │ ├── attachment.py # PropertyAttachment
|
||||
│ │ │ ├── marketing.py # PropertyMarketing
|
||||
│ │ │ └── completeness.py # PropertyCompleteness
|
||||
│ │ ├── services/
|
||||
│ │ │ ├── completeness.py # 完成度计算服务
|
||||
│ │ │ ├── duplicate.py # 重复房源检测
|
||||
│ │ │ └── search.py # 搜索/筛选服务
|
||||
│ │ └── tasks.py # Celery 异步任务
|
||||
│ ├── client/ # 客源管理
|
||||
│ ├── settings/ # 系统设置(lookup, tags)
|
||||
│ └── permissions/ # 权限管理
|
||||
├── shared/ # 公共 Schema App(django-tenants shared_apps)
|
||||
└── core/
|
||||
├── models/base.py # 抽象基类
|
||||
├── encryption.py # 手机号加密
|
||||
└── cache.py # Redis 缓存工具
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 九、必须在开发启动前明确的数据架构决策
|
||||
## 八、必须在开发启动前明确的数据架构决策
|
||||
|
||||
| 决策项 | 推荐方案 | 风险 |
|
||||
|-------|---------|------|
|
||||
|
||||
Reference in New Issue
Block a user