waste 스키마 (폐기물 품목 마스터)
현장별 폐기물 품목 마스터. 각 작업(
tasks/{tid})의waste_amount서브컬렉션이 이 문서의waste_id를 참조하여 일일 배출량을 기록합니다.
저장 위치
waste_id: Firestore 자동 생성 ID
문서 필드
| 필드 | 타입 | 설명 |
|---|---|---|
item_name |
string | 품목명 (예: "건설폐기물 혼합", "폐콘크리트") |
specification |
string | 규격 (예: "혼합", "분리") |
unit |
string | 단위 (예: "t", "kg", "m³") |
created_at |
timestamp | 생성 시각 (SERVER_TIMESTAMP) |
created_by |
string | 생성자 UID |
엔드포인트
| 엔드포인트 | 동작 |
|---|---|
add_task_waste |
폐기물 마스터 생성 → 반환값 task_waste_id |
edit_task_waste |
폐기물 마스터 수정 (item_name, specification, unit) |
폐기물 배출량 등록/수정/삭제는 작업(tasks/{tid}) 하위 waste_amount/{daily_amount_id}에서 이루어집니다. 자세한 내용은 tasks.md 참조.