feat: add mqtt raw data management with UTC+8 range UI
All checks were successful
Deploy to Production / deploy (push) Successful in 1m19s

This commit is contained in:
魏风
2026-03-20 17:46:37 +08:00
parent e81aadcd99
commit ff971e2cea
15 changed files with 1279 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import uuid
from datetime import datetime, timezone
from datetime import date, datetime, timezone
from typing import Any
from pydantic import EmailStr
@@ -111,6 +111,18 @@ class LocationsPublic(SQLModel):
count: int
class MqttRawDaySummary(SQLModel):
day: date
message_count: int
first_received_at: datetime | None = None
last_received_at: datetime | None = None
class MqttRawDaysPublic(SQLModel):
data: list[MqttRawDaySummary]
count: int
class TerminalMessageRaw(SQLModel, table=True):
__tablename__ = "terminal_message_raw"
@@ -186,6 +198,11 @@ class Message(SQLModel):
message: str
class DeleteResult(SQLModel):
deleted_count: int
message: str
# JSON payload containing access token
class Token(SQLModel):
access_token: str