Multi-tenant factory inspection system (SpiFox, Enkid, Alpet): - FastAPI backend with JWT auth, PostgreSQL (asyncpg) - Next.js 16 frontend with App Router, SWR data fetching - Machines CRUD with equipment parts management - Part lifecycle tracking (hours/count/date) with counters - Partial unique index for soft-delete support - 24 pytest tests passing, E2E verified Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
338 B
338 B
Findings
기존 코드 참고 사항
- 기존 프로젝트:
/Users/johngreen/Dev/factoryops_backup/ - Auth 패턴: JWT HS256, 24h 만료, bcrypt, role-based (superadmin/tenant_admin/user)
- Frontend 패턴: SWR fetcher, AuthContext/TenantContext/ToastContext, Material Design 3
- DB: PostgreSQL 전용 (asyncpg), SQLAlchemy async