Files
NexaPG/backend/app/schemas/service_info.py
nessi 0445a72764
All checks were successful
PostgreSQL Compatibility Matrix / PG14 smoke (push) Successful in 8s
PostgreSQL Compatibility Matrix / PG15 smoke (push) Successful in 8s
PostgreSQL Compatibility Matrix / PG16 smoke (push) Successful in 8s
PostgreSQL Compatibility Matrix / PG17 smoke (push) Successful in 8s
PostgreSQL Compatibility Matrix / PG18 smoke (push) Successful in 8s
Add service information feature with version checks
This commit introduces a new "Service Information" section displaying runtime details, installed version, and update status for the NexaPG application. It includes backend API endpoints, database schema changes, and a corresponding frontend page that allows users to check for updates against the official repository. The `.env` example now includes an `APP_VERSION` variable, and related documentation has been updated.
2026-02-13 08:54:13 +01:00

30 lines
663 B
Python

from datetime import datetime
from pydantic import BaseModel
class ServiceInfoOut(BaseModel):
app_name: str
environment: str
api_prefix: str
app_version: str
hostname: str
python_version: str
platform: str
service_started_at: datetime
uptime_seconds: int
update_source: str
latest_version: str | None
latest_ref: str | None
update_available: bool
last_checked_at: datetime | None
last_check_error: str | None
class ServiceInfoCheckResult(BaseModel):
latest_version: str | None
latest_ref: str | None
update_available: bool
last_checked_at: datetime
last_check_error: str | None