Files
TK-FB-Project/CHECKLIST.md
Hyungi Ahn 05843da1c4 refactor(db,frontend): Improve queries and modularize frontend
- Replaced SELECT* queries in 8 models with explicit columns.
- Began modularizing work-report-calendar.js by creating CalendarAPI.js, CalendarState.js, and CalendarView.js.
- Refactored manage-project.js to use global API helpers.
- Fixed API container crash by adding missing volume mounts to docker-compose.yml.
- Added new migration for missing columns in the projects table.
- Documented current DB schema and deployment notes.
2025-12-19 12:42:24 +09:00

44 lines
1.6 KiB
Markdown

# 프로젝트 체크리스트 및 컨텍스트
이 문서는 개발 시 확인해야 할 스키마 정보, 남은 작업, 삭제된 리소스 목록을 포함합니다.
---
## ✅ 현재 작업 (To-Do)
- [x] **WorkAnalysis 리팩토링** (Controller -> Service 분리)
- [ ] **테스트 코드 작성** (`tests/unit/services/workAnalysis.test.js` 추가 필요)
- [ ] **기타 컨트롤러 리팩토링** (Phase 3 진행 중)
- `monthlyStatusController.js` 확인 필요
---
## 🗄 데이터베이스 스키마 요약
*(상세 내용은 원본 스키마 파일 참조, 여기는 자주 찾는 정보 요약)*
### 주요 테이블
- `daily_work_reports`: 작업 보고서 메인 (Date, Worker, Project, WorkType, Status, Hours)
- `workers`: 작업자 마스터
- `projects`: 프로젝트 마스터
- `work_types`: 작업 유형 (1:Base, 2:Vessel, 3:Piping, 4:Wait)
- `work_status_types`: 상태 (1:정규, 2:에러)
- `error_types`: 에러 유형 (WorkStatus=2일 때 필수)
### 주의사항
- **스키마 버전**: v1 (JSON 호환)
- **Timezone**: 모든 시간은 KST 기준 처리 확인 필요
- **Soft Delete**: `deleted_at` 컬럼 사용 여부 확인
---
## 🗑 삭제/정리된 리소스 (참조용)
### 삭제된 페이지 (2025-11-03)
- **대시보드 통일**: `group-leader.html` 하나로 모든 권한 통합됨.
- **삭제 대상**:
- `dashboard/admin.html`, `dashboard/system.html` (미사용)
- `admin/factory-upload.html` 등 미사용 관리페이지
- `issue-reports/` 폴더 전체
### 삭제된 테이블 (히스토리)
*(필요 시 `DELETED_TABLES.md` 참고)*