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>
14 lines
312 B
Python
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
|