ai-business-write/技术文档/数据库设计说明.md
2025-12-30 10:41:35 +08:00

15 lines
951 B
Markdown
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.

f_polic_field 表是字段表存储有哪些数据字段其中field_type值为2的是输出字段值为1的是输入字段
f_polic_file_config 表是文件配置表,用于存储模板信息,已经做过初始化,保存了模板文件的地址以及父级关系
f_polic_file_field 表是文件配置字段关联表用于存储f_polic_field表和f_polic_file_config 表的关联关系
关联关系如下:
f_polic_file_field的 filed_id字段id对应 f_polic_field的id
f_polic_file_field的 file_id(文件id)对应 f_polic_file_config的id
通过这样的关联关系其他研发人员开发的功能模块可以通过查询f_polic_file_config 表获得不同模板关联了哪些输入和输出字段,然后前端对应展示
之前虽然已经创建了关联关系但是大都是通过“input_data”和“template_code”实现的这个并不符合整体设计这两个字段现在抛弃不使用。