Automated Action 3d6b44a6e6 Implement SkillSync AI-Powered Resume & Job Match Hub backend
- Complete FastAPI backend with SQLite database
- AI-powered resume parsing and job matching using OpenAI
- JWT authentication with role-based access control
- Resume upload, job management, and matching endpoints
- Recruiter dashboard with candidate ranking
- Analytics and skill gap analysis features
- Comprehensive API documentation with OpenAPI
- Alembic database migrations
- File upload support for PDF, DOCX, and TXT resumes
- CORS enabled for frontend integration

🤖 Generated with BackendIM

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 14:58:12 +00:00

54 lines
1.1 KiB
Python

from typing import Optional, List, Dict, Any
from pydantic import BaseModel
from datetime import datetime
class SkillGapBase(BaseModel):
missing_skill: str
importance: Optional[str] = None
suggestion: Optional[str] = None
class SkillGapResponse(SkillGapBase):
id: int
match_id: int
created_at: datetime
class Config:
from_attributes = True
class SkillGap(SkillGapResponse):
pass
class MatchBase(BaseModel):
match_score: float
skill_match_score: Optional[float] = None
experience_match_score: Optional[float] = None
education_match_score: Optional[float] = None
overall_feedback: Optional[str] = None
resume_suggestions: Optional[List[Dict[str, Any]]] = None
cover_letter: Optional[str] = None
class MatchResponse(MatchBase):
id: int
user_id: int
resume_id: int
job_id: int
skill_gaps: Optional[List[SkillGapResponse]] = None
created_at: datetime
updated_at: Optional[datetime] = None
class Config:
from_attributes = True
class Match(MatchResponse):
pass
class MatchRequest(BaseModel):
resume_id: int
job_id: int