Files
opsxsql/backend/app/schemas/dashboard.py
T
loganandClaude Opus 4.7 439155c92e Initial commit: SQL audit platform v0.1.0
FastAPI backend with auth, user, instance, ticket, query, dashboard APIs.
React + TypeScript frontend with mock data UI (10 pages).
SQLite + async SQLAlchemy, JWT auth, role-based access control.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 11:11:57 +08:00

14 lines
312 B
Python

from pydantic import BaseModel
from typing import Optional
class DashboardStats(BaseModel):
ticket_total: int = 0
ticket_pending: int = 0
ticket_month: int = 0
ticket_executing: int = 0
instance_total: int = 0
instance_online: int = 0
user_total: int = 0
queries_today: int = 0