Files
ZERO_CODE/meta_all_in_one.csv
2026-01-23 14:48:45 +08:00

15 lines
1.1 KiB
CSV
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 元数据类汇总表
类名,所在层/文件,关键字段,含义
App,BaseApi/models.py,"name, name_cn, module",定义动态模型所属的应用和模块路径
Model,BaseApi/models.py,"app, name, name_cn",定义单个动态模型的元数据(名称及所属应用)
ModelField,BaseApi/models.py,"model, name, type, is_show",定义动态模型中的单个字段及其类型、显示属性
ModelSetting,BaseApi/models.py,"field, name, value",定义字段的具体配置项(例如 max_length、null 等)
# 元数据与原对象映射(概念层面)
元数据实体,标识字段,对应的原对象实体,关系说明
App 记录,name,Django 应用AppConfig,确定动态模型注册的命名空间及表名前缀
Model 记录,app + name,动态 Django 模型类 + 物理数据表,每条 Model 记录对应一个模型类及一张数据表
ModelField 记录,model + name,动态模型上的一个字段,每条记录对应模型上的一个具体字段
ModelSetting 记录,field + name,字段构造器上的一个关键字参数,决定字段的单个具体属性(如 max_length、null 等)