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.
This commit is contained in:
39
_archive/DELETED_TABLES.md
Normal file
39
_archive/DELETED_TABLES.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# 삭제된 테이블 목록
|
||||
|
||||
**삭제 날짜**: 2025-11-03
|
||||
**사유**: 사용하지 않는 테이블들 정리
|
||||
|
||||
## 삭제된 테이블들
|
||||
|
||||
1. `activity_logs` - 활동 로그
|
||||
2. `CuttingPlan` - 커팅 계획 (대문자)
|
||||
3. `DailyIssueReports` - 일일 이슈 보고서 (대문자)
|
||||
4. `daily_worker_summary` - 일일 작업자 요약
|
||||
5. `EquipmentList` - 장비 목록 (대문자)
|
||||
6. `FactoryInfo` - 공장 정보 (대문자)
|
||||
7. `PipeSpecs` - 파이프 사양 (대문자)
|
||||
8. `Processes` - 프로세스 (대문자)
|
||||
9. `uploaded_documents` - 업로드된 문서
|
||||
10. `worker_groups` - 작업자 그룹
|
||||
11. `WorkReports` - 작업 보고서 (별도, 새로 만들 예정)
|
||||
12. `work_report_audit_log` - 작업 보고서 감사 로그
|
||||
|
||||
## 현재 사용 중인 테이블들
|
||||
|
||||
- `daily_work_reports` - 일일 작업 보고서 ✅
|
||||
- `workers` - 작업자 정보 ✅
|
||||
- `projects` - 프로젝트 정보 ✅
|
||||
- `tasks` - 작업 정보 ✅
|
||||
- `users` - 사용자 정보 ✅
|
||||
- `work_types` - 작업 유형 ✅
|
||||
- `work_status_types` - 작업 상태 유형 ✅
|
||||
- `error_types` - 에러 유형 ✅
|
||||
- `IssueTypes` - 이슈 유형
|
||||
- `login_logs` - 로그인 로그
|
||||
- `password_change_logs` - 비밀번호 변경 로그
|
||||
|
||||
## 주의사항
|
||||
|
||||
- 삭제된 테이블들을 참조하는 코드가 있다면 제거해야 함
|
||||
- 향후 필요시 백업에서 복구 가능
|
||||
- 데이터베이스 구조가 단순해져서 성능 향상 기대
|
||||
Reference in New Issue
Block a user