feat: add mqtt raw data management with UTC+8 range UI
All checks were successful
Deploy to Production / deploy (push) Successful in 1m19s
All checks were successful
Deploy to Production / deploy (push) Successful in 1m19s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user