refactor: worker_id → user_id 전체 마이그레이션 (Phase 1-4)

sso_users.user_id를 단일 식별자로 통합. JWT에서 worker_id 제거,
department_id/is_production 추가. 백엔드 15개 모델, 11개 컨트롤러,
4개 서비스, 7개 라우트, 프론트엔드 32+ JS/11+ HTML 변환.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-05 13:13:10 +09:00
parent 2197cdb3d5
commit abd7564e6b
90 changed files with 1790 additions and 925 deletions

View File

@@ -110,11 +110,11 @@ function renderWorkerList(workers) {
}
container.innerHTML = workers.map(worker => `
<div class="worker-card ${selectedWorkers.has(worker.worker_id) ? 'selected' : ''}"
onclick="toggleWorkerSelection(${worker.worker_id})">
<div class="worker-card ${selectedWorkers.has(worker.user_id) ? 'selected' : ''}"
onclick="toggleWorkerSelection(${worker.user_id})">
<div class="worker-info-row">
<input type="checkbox" ${selectedWorkers.has(worker.worker_id) ? 'checked' : ''}
onclick="event.stopPropagation(); toggleWorkerSelection(${worker.worker_id})">
<input type="checkbox" ${selectedWorkers.has(worker.user_id) ? 'checked' : ''}
onclick="event.stopPropagation(); toggleWorkerSelection(${worker.user_id})">
<div class="worker-avatar">${worker.worker_name.charAt(0)}</div>
<div class="worker-details">
<span class="worker-name">${worker.worker_name}</span>