update chicken weight to have chicken_area data as well
This commit is contained in:
1 parent
a6d4ddac65
commit
6bad900cf0
13 files changed
+132
-21
No files matched your search
@@ -175,12 +175,7 @@ erDiagram
|
||||
int chicken_count "NOT NULL (n_weight_samples)"
|
||||
float uniformity "NOT NULL (Flock weight uniformity %)"
|
||||
float average_daily_gain "NOT NULL (ADG in grams/day)"
|
||||
float area_cm2_median "Median body area in cm^2"
|
||||
float minor_axis_cm_median "Median minor axis / width in cm"
|
||||
float major_axis_cm_median "Median major axis / length in cm"
|
||||
float gompertz_baseline_g "Theoretical Gompertz curve baseline"
|
||||
float vision_gain_g "Allometric vision gain residual"
|
||||
float rejection_rate "MAD outlier filter rejection percentage"
|
||||
float chicken_area "NOT NULL DEFAULT 0.0 (Median chicken area in cm^2)"
|
||||
timestamp created_at "NOT NULL"
|
||||
timestamp updated_at "NOT NULL"
|
||||
}
|
||||
@@ -308,8 +303,7 @@ Our edge pipeline aggregates floor camera runs and pushes clean daily rollups di
|
||||
- `chicken_count` $\leftarrow \sum \text{n\_weight\_samples}$ (valid non-outlier tracks).
|
||||
- `uniformity` $\leftarrow \text{flock size uniformity percentage}$.
|
||||
- `average_daily_gain` $\leftarrow \text{daily weight gain in grams/day}$.
|
||||
- `area_cm2_median`, `minor_axis_cm_median`, `major_axis_cm_median` $\leftarrow \text{calibrated physical dimensions}$.
|
||||
- `gompertz_baseline_g`, `vision_gain_g` $\leftarrow \text{audited growth model residual breakdown}$.
|
||||
- `chicken_area` $\leftarrow \text{calibrated median chicken body area in cm²}$.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1290,6 +1290,22 @@
|
||||
"parent": "PF_pHT-a65sNfpEKlwq7-159",
|
||||
"label": "average_daily_gain float NOT NULL"
|
||||
},
|
||||
{
|
||||
"id": "PF_pHT-a65sNfpEKlwq7-cw-area",
|
||||
"type": "node",
|
||||
"parent": "PF_pHT-a65sNfpEKlwq7-66"
|
||||
},
|
||||
{
|
||||
"id": "PF_pHT-a65sNfpEKlwq7-cw-area-col1",
|
||||
"type": "node",
|
||||
"parent": "PF_pHT-a65sNfpEKlwq7-cw-area"
|
||||
},
|
||||
{
|
||||
"id": "PF_pHT-a65sNfpEKlwq7-cw-area-col2",
|
||||
"type": "node",
|
||||
"parent": "PF_pHT-a65sNfpEKlwq7-cw-area",
|
||||
"label": "chicken_area float NOT NULL"
|
||||
},
|
||||
{
|
||||
"id": "PF_pHT-a65sNfpEKlwq7-321",
|
||||
"type": "node",
|
||||
@@ -2537,4 +2553,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 336 KiB After Width: | Height: | Size: 337 KiB |
@@ -147,8 +147,9 @@ CREATE INDEX IF NOT EXISTS idx_cycles_close_requested_by_id ON cycles (close_req
|
||||
-- -----------------------------------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS flock (
|
||||
flock_id SERIAL PRIMARY KEY,
|
||||
flock_name VARCHAR(30) NOT NULL,
|
||||
kandang_id INTEGER NOT NULL REFERENCES kandang (kandang_id) ON DELETE CASCADE,
|
||||
flock_name VARCHAR(30) NOT NULL,
|
||||
iot_api_url VARCHAR(500) NOT NULL DEFAULT '',
|
||||
kandang_id INTEGER NOT NULL REFERENCES kandang (kandang_id) ON DELETE CASCADE,
|
||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
@@ -259,8 +260,9 @@ CREATE TABLE IF NOT EXISTS chicken_weight (
|
||||
doc_weight INTEGER NOT NULL,
|
||||
average_weight FLOAT NOT NULL,
|
||||
chicken_count INTEGER NOT NULL,
|
||||
uniformity FLOAT NOT NULL,
|
||||
average_daily_gain FLOAT NOT NULL,
|
||||
uniformity FLOAT NOT NULL,
|
||||
average_daily_gain FLOAT NOT NULL,
|
||||
chicken_area FLOAT NOT NULL DEFAULT 0.0,
|
||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
cycle_id INTEGER NOT NULL REFERENCES cycles (cycle_id) ON DELETE CASCADE
|
||||
|
||||
Reference in new issue
Block a user