Initial scaffold: FastAPI backend + Vue 3 frontend + Docker setup

Backend: config/db/security/logging core, SQLAlchemy models (Server,
Credential, UpdateJob, UpdateLog, AuditLog, User), services (winrm, ssh,
cau, audit, job_runner), REST API (auth, servers, updates, audit),
Socket.io WebSocket layer.
Frontend: Vue 3 + TS + Pinia + Tailwind, Views (Dashboard, Servers,
Updates, Audit, Login), axios + socket.io-client, nginx prod config.
This commit is contained in:
B0rbor4d
2026-07-31 23:45:31 +00:00
commit cf7c29639c
72 changed files with 10610 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
"""Server schemas."""
from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field
from app.models.server import ServerType
class ServerCreate(BaseModel):
name: str = Field(min_length=1, max_length=255)
hostname: str = Field(min_length=1, max_length=255)
port: int = 5985
type: ServerType = ServerType.WINDOWS
description: str | None = None
tags: str | None = None
credential_id: int | None = None
class ServerUpdate(BaseModel):
name: str | None = None
hostname: str | None = None
port: int | None = None
type: ServerType | None = None
description: str | None = None
tags: str | None = None
credential_id: int | None = None
class ServerRead(BaseModel):
model_config = ConfigDict(from_attributes=True)
id: int
name: str
hostname: str
port: int
type: ServerType
description: str | None
tags: str | None
credential_id: int | None
last_health_at: datetime | None
last_health_ok: bool | None
created_at: datetime
updated_at: datetime
class HealthCheckResult(BaseModel):
server_id: int
ok: bool
latency_ms: float | None = None
message: str
checked_at: datetime