- Convert services from NestJS to Express pattern
- Remove unused ServiceContext interfaces
- Add DocumentController with full CRUD endpoints:
- GET /documents (list with filters)
- GET /documents/:id (get by ID)
- GET /documents/statistics
- GET /documents/generate-code
- GET /documents/project/:projectId
- GET /documents/:id/access-history
- GET /documents/:id/versions
- GET /documents/:id/versions/statistics
- POST /documents (create)
- POST /documents/:id/versions (create version)
- POST /documents/:id/status (change status)
- POST /documents/:id/lock
- POST /documents/:id/unlock
- POST /documents/versions/:versionId/set-current
- POST /documents/versions/:versionId/archive
- PUT /documents/:id (update)
- DELETE /documents/:id (soft delete)
- Add controllers/index.ts export
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Create 11 entities matching DDL:
- DocumentCategory: Hierarchical categories
- Document: Main document registry
- DocumentVersion: Version control with files
- DocumentPermission: Granular permissions
- ApprovalWorkflow: Workflow definitions
- ApprovalInstance: Active workflow instances
- ApprovalStep: Steps per instance
- ApprovalActionEntity: Actions taken
- Annotation: Comments and markups
- AccessLog: Access history
- DocumentShare: External sharing links
- Create DocumentService with full CRUD
- Create DocumentVersionService for version management
- All entities follow ERP-Construction patterns
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>