CounterDroneBackend/data/index.md

18 lines
562 B
Markdown
Raw 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.

# data — 项目数据
本目录存放非代码的项目数据文件,区别于源代码和文档。
## 用途
- 初始化/种子数据
- 数据库导出快照(用于参考或迁移)
- 静态数据文件(如地理信息、字典数据等)
- 其他非代码的静态项目数据
## 原则
1. 不含可执行代码或业务配置文件
2. 文件应可被版本控制追踪(大文件请使用 Git LFS
3. 按数据类型或用途建立子目录
4.`test/fixtures/` 区分:`data/` 放项目级数据,`test/fixtures/` 放测试专用数据