Files
conai/backend/app/schemas/settings.py
sinmb79 2a4950d8a0 feat: CONAI Phase 1 MVP 초기 구현
소형 건설업체(100억 미만)를 위한 AI 기반 토목공사 통합관리 플랫폼

Backend (FastAPI):
- SQLAlchemy 모델 13개 (users, projects, wbs, tasks, daily_reports, reports, inspections, quality, weather, permits, rag, settings)
- API 라우터 11개 (auth, projects, tasks, daily_reports, reports, inspections, weather, rag, kakao, permits, settings)
- Services: Claude AI 래퍼, CPM Gantt 계산, 기상청 API, RAG(pgvector), 카카오 Skill API
- Alembic 마이그레이션 (pgvector 포함)
- pytest 테스트 (CPM, 날씨 경보)

Frontend (Next.js 15):
- 11개 페이지 (대시보드, 프로젝트, Gantt, 일보, 검측, 품질, 날씨, 인허가, RAG, 설정)
- TanStack Query + Zustand + Tailwind CSS

인프라:
- Docker Compose (PostgreSQL pgvector + backend + frontend)
- 한국어 README 및 설치 가이드

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 20:06:36 +09:00

74 lines
1.6 KiB
Python

import uuid
from datetime import datetime
from pydantic import BaseModel
class ClientProfileCreate(BaseModel):
name: str
report_frequency: str = "weekly"
template_config: dict | None = None
contact_info: dict | None = None
is_default: bool = False
class ClientProfileResponse(BaseModel):
id: uuid.UUID
name: str
report_frequency: str
template_config: dict | None
contact_info: dict | None
is_default: bool
created_at: datetime
model_config = {"from_attributes": True}
class WorkTypeCreate(BaseModel):
code: str
name: str
category: str
weather_constraints: dict | None = None
default_checklist: list | None = None
class WorkTypeResponse(BaseModel):
id: uuid.UUID
code: str
name: str
category: str
weather_constraints: dict | None
default_checklist: list | None
is_system: bool
model_config = {"from_attributes": True}
class AlertRuleCreate(BaseModel):
project_id: uuid.UUID | None = None
rule_name: str
condition: dict | None = None
channels: list | None = None
recipients: list | None = None
is_active: bool = True
class AlertRuleResponse(BaseModel):
id: uuid.UUID
project_id: uuid.UUID | None
rule_name: str
condition: dict | None
channels: list | None
recipients: list | None
is_active: bool
created_at: datetime
model_config = {"from_attributes": True}
class SettingsExport(BaseModel):
version: str = "1.0"
client_profiles: list[ClientProfileResponse]
work_types: list[WorkTypeResponse]
alert_rules: list[AlertRuleResponse]
exported_at: datetime