25 lines
534 B
Python
25 lines
534 B
Python
from pydantic import BaseModel
|
|
|
|
from app.schemas.customer import CustomerResponse
|
|
|
|
|
|
class MetricCard(BaseModel):
|
|
label: str
|
|
value: int
|
|
|
|
|
|
class EmptyWidget(BaseModel):
|
|
title: str
|
|
message: str
|
|
|
|
|
|
class DashboardSummary(BaseModel):
|
|
customers: list[MetricCard] = []
|
|
latest_customers: list[CustomerResponse] = []
|
|
users: list[MetricCard] = []
|
|
roles: list[MetricCard] = []
|
|
repairs: list[MetricCard] = []
|
|
activities: EmptyWidget
|
|
tasks: EmptyWidget
|
|
tickets: EmptyWidget
|
|
projects: EmptyWidget
|