This commit is contained in:
2026-11-10 16:34:01 +03:00
commit 3005cf6249
39 changed files with 50454 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# 2026-08-12 Project Memory
> Auto-generated by AI Agent. Entries are append-only within a day.
---
## [09:48] fields_history CSV file export
**Type**: solution
**Tags**: `refactor`, `export`
В конце `fields_history.js` вместо `console.table` / CSV в консоль — запись в `fields_history_${SEASON_YEAR}.csv` (UTF-8 с BOM для Excel). Паттерн как в `get_weather.js` (`fs` + `path`).
**Status**: ✅ verified
---
## [12:15] fields_history_pg.js Cropwise → Postgres sync
**Type**: solution
**Tags**: `architecture`, `dependency`, `performance`
Добавлен `fields_history_pg.js`: создаёт БД `ak_fields`, таблицы `crops` / `group_folders` / `field_groups` / `fields`, синкает API. Фильтр ветки `GROUP_FOLDER_ROOT_ID=27`. В `fields`: `zone_hierarchy` + `history_items` JSONB (без фильтра по годам). `.env` + `pg`/`dotenv`. Параллелизм `CONCURRENCY=20` + resume по уже залитым `history_items`.
**Status**: ✅ verified