font, map markers templates

This commit is contained in:
2025-09-11 11:25:10 +10:00
parent 2a0e9df0f3
commit d6a5f13f89
11 changed files with 187 additions and 62 deletions

View File

@@ -6,6 +6,15 @@ model Device {
@@map("devices")
}
model CommandTemplate {
id Int @id @default(autoincrement())
name String // e.g., "Lights On", "Reboot Device"
type String // e.g., "lights", "reboot"
payload Json // The JSON payload, e.g., {"on": true}
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Telemetry {
id String @id @default(uuid())
deviceId String