ifixkart-admin/Backend/app/schemas/TechnicianSchema.py
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

56 lines
1.2 KiB
Python

from pydantic import BaseModel
from typing import Optional
from datetime import datetime
class TechnicianProfileCreate(BaseModel):
user_id: str
class TechnicianProfileResponse(BaseModel):
technician_id: str
user_id: str
active: bool
class Config:
from_attributes = True
class TechnicianSkillCreate(BaseModel):
service_id: str
skill_level: int = 1
class TechnicianSkillResponse(BaseModel):
technician_id: str
service_id: str
skill_level: int
class Config:
from_attributes = True
class TechnicianWorkingHoursCreate(BaseModel):
day_of_week: int
start_time: str # "HH:MM"
end_time: str # "HH:MM"
class TechnicianWorkingHoursResponse(BaseModel):
working_hour_id: str
technician_id: str
day_of_week: int
start_time: str
end_time: str
class Config:
from_attributes = True
class TechnicianLeaveCreate(BaseModel):
start_datetime: datetime
end_datetime: datetime
reason: Optional[str] = None
class TechnicianLeaveResponse(BaseModel):
leave_id: str
technician_id: str
start_datetime: datetime
end_datetime: datetime
reason: Optional[str]
class Config:
from_attributes = True