Petru Paler
c08fa476e0
feat: add 30-day egg stats computation service
Implement compute-on-read egg statistics per spec section 9:
- Create egg_stats_30d_by_location table (migration 0007)
- Add get_egg_stats service with bird-days calculation
- Calculate layer-eligible days (adult female + matching species)
- Implement feed proration formula with INTEGER truncation
- Cache computed stats with window bounds
Verifies E2E test #1 baseline values:
- eggs_total_pcs = 12
- feed_total_g = 6000, feed_layers_g = 4615
- cost_per_egg_all = 0.600, cost_per_egg_layers = 0.462
- layer_eligible_bird_days = 10
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 09:25:39 +00:00
..
2025-12-27 17:37:16 +00:00
2025-12-29 06:52:23 +00:00
2025-12-27 18:25:28 +00:00
2025-12-27 17:54:21 +00:00
2025-12-27 17:58:29 +00:00
2025-12-27 17:58:29 +00:00
2025-12-28 18:34:41 +00:00
2025-12-28 07:35:05 +00:00
2025-12-28 07:35:05 +00:00
2025-12-27 19:40:55 +00:00
2025-12-28 18:59:24 +00:00
2025-12-28 07:25:18 +00:00
2025-12-28 19:51:28 +00:00
2025-12-28 07:25:18 +00:00
2025-12-27 18:25:28 +00:00
2025-12-28 18:59:24 +00:00
2025-12-27 21:37:19 +00:00
2025-12-28 19:51:28 +00:00
2025-12-27 19:18:08 +00:00
2025-12-29 07:02:19 +00:00
2025-12-29 06:52:23 +00:00
2025-12-29 07:02:19 +00:00
2025-12-28 18:47:11 +00:00
2025-12-28 07:25:18 +00:00
2025-12-28 07:25:18 +00:00
2025-12-29 09:08:13 +00:00
2025-12-29 07:51:20 +00:00
2025-12-29 07:18:17 +00:00
2025-12-29 08:11:36 +00:00
2025-12-29 09:08:13 +00:00
2025-12-29 09:25:39 +00:00