klg-asutk-app/backend/app/schemas/risk_alert.py
Yuriy 0150aba4f5 Consolidation: KLG ASUTK + PAPA integration
- Unify API: lib/api.ts uses /api/v1, inbox uses /api/inbox (rewrites)
- Remove localhost refs: openapi, inbox page
- Add rewrites: /api/inbox|tmc -> inbox-server, /api/v1 -> FastAPI
- Add stub routes: knowledge/insights, recommendations, search, log-error
- Transfer from PAPA: prompts (inspection, tmc), scripts, supabase, data/tmc-requests
- Fix inbox-server: ORDER BY created_at, package.json
- Remove redundant app/api/inbox/files route (rewrites handle it)
- knowledge/ in gitignore (large PDFs)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-08 17:18:31 +03:00

23 lines
537 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Pydantic-схемы для предупреждений о рисках."""
from datetime import datetime
from typing import Optional
from pydantic import BaseModel
class RiskAlertOut(BaseModel):
id: str
entity_type: str
entity_id: str
aircraft_id: Optional[str] = None
severity: str
title: str
message: Optional[str] = None
due_at: Optional[datetime] = None
is_resolved: bool
resolved_at: Optional[datetime] = None
created_at: datetime
class Config:
from_attributes = True