docs: synchronize API.md and RUN.md with ERD.md master integration

This commit is contained in:
andrew committed 2026-08-24 11:12:59 +07:00
1 parent ae459b9319
commit ff7a679207
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -155,6 +155,8 @@ Summary and history for a specific location.
## Database Schema
Full enterprise ERD and integration architecture is documented in [`ERD.md`](ERD.md).
```sql
CREATE TABLE batch_runs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -180,7 +182,7 @@ CREATE TABLE batch_runs (
);
```
> **Note**: Weight counting and growth curves start at **Cycle Day 1** (Day 0 = DOC arrival baseline 42.0g).
> **Note**: Weight counting and growth curves start at **Cycle Day 1** (Day 0 = DOC arrival baseline 42.0g). Daily aggregations feed into the central Audrix `CHICKEN_COUNTING` (`cc_id`) and `CHICKEN_WEIGHT` (`cw_id`) tables.
Data is inserted automatically by the batch runner when `location` and `db_path` are configured in the batch YAML, or manually via:
+1 -1
View File
@@ -345,7 +345,7 @@ All SQLite database rows and JSON outputs will automatically be stamped with `"s
## 9. Weight Estimation, Curation & Storage System
The edge chicken counting pipeline aggregates physical metric measurements and predicts chicken weights during daily counting runs.
The edge chicken counting pipeline aggregates physical metric measurements and predicts chicken weights during daily counting runs. Full architecture and schema mapping are documented in [`ERD.md`](ERD.md).
### Day 0 vs. Day 1+ Lifecycle Rule
- **Day 0 (`cycle_start_date`)**: Day-Old Chicks (DOC) arrival date (standard baseline $42.0\text{ g}$). **Counting ONLY** to establish starting inventory headcount.