klg-asutk-app/backend/app/schemas/cert_application.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

35 lines
774 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.

from datetime import datetime
from pydantic import BaseModel, Field
from app.schemas.common import TimestampOut
class CertApplicationCreate(BaseModel):
subject: str = "Сертификация организации по ТО"
description: str | None = None
class CertApplicationOut(TimestampOut):
id: str
number: str
status: str
applicant_org_id: str
applicant_org_name: str | None = None
created_by_user_id: str
submitted_at: datetime | None
remarks_deadline_at: datetime | None
subject: str
description: str | None
class RemarkCreate(BaseModel):
text: str = Field(..., min_length=1)
class RemarkOut(TimestampOut):
id: str
application_id: str
author_user_id: str
text: str
is_resolved: bool