Added Health Ednpoint for Devices
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 31s
Build and Push Docker Images / build-frontend (push) Successful in 17s

Added Offline Sync for times
This commit is contained in:
2026-01-21 12:38:36 +01:00
parent d6f257bcc6
commit 7f4f232c32
4 changed files with 109 additions and 41 deletions

View File

@@ -3,7 +3,7 @@ import {
uuid,
timestamp,
text,
bigint,
bigint, jsonb,
} from "drizzle-orm/pg-core"
import { tenants } from "./tenants"
@@ -23,6 +23,11 @@ export const devices = pgTable("devices", {
password: text("password"),
externalId: text("externalId"),
lastSeen: timestamp("last_seen", { withTimezone: true }),
// Hier speichern wir den ganzen Payload (RSSI, Heap, IP, etc.)
lastDebugInfo: jsonb("last_debug_info"),
})
export type Device = typeof devices.$inferSelect