CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/IoT

📡 IoT · Database ERD

IoT Device Registry Schema

A database schema for managing an IoT fleet: devices, models, firmware versions, certificates, customers and sites.

More IoT templates

Drawing diagram…

What this diagram shows

  • Each device has one model and a current firmware version
  • Certificates are tracked with expiry for rotation
  • Devices belong to customer sites

Prompt used

ERD for an IoT device registry: Customer has Sites; Device belongs to a Site, is a DeviceModel and runs a FirmwareVersion; Device has Certificates with expiry; DeviceModel has many FirmwareVersions; DeviceEvent records status changes for each device.

Mermaid code
erDiagram
  CUSTOMER ||--o{ SITE : owns
  SITE ||--o{ DEVICE : hosts
  DEVICE_MODEL ||--o{ DEVICE : "type of"
  DEVICE_MODEL ||--o{ FIRMWARE_VERSION : releases
  FIRMWARE_VERSION ||--o{ DEVICE : "running on"
  DEVICE ||--o{ CERTIFICATE : "identified by"
  DEVICE ||--o{ DEVICE_EVENT : logs
  DEVICE {
    string serial PK
    int site_id FK
    int model_id FK
    int firmware_id FK
    string status
  }
  FIRMWARE_VERSION {
    int id PK
    int model_id FK
    string version
    date released_on
  }
  CERTIFICATE {
    string thumbprint PK
    string device_serial FK
    date expires_on
  }
  DEVICE_EVENT {
    int id PK
    string device_serial FK
    string type
    datetime at
  }

Related templates

Data FlowIoT

IoT Telemetry Data Pipeline

How sensor readings travel from devices to dashboards and alerts: MQTT ingestion, stream processing, time-series storage and anomaly detection.

SequenceIoT

IoT Device Provisioning Sequence

How a new device joins the platform securely: claiming by the owner, certificate issue and its first connection to the MQTT broker.

C4 ArchitectureProIoT

IoT Platform Reference Architecture

A general-purpose IoT platform: device connectivity, device management, data processing, rules and the apps built on top.

DeploymentProIoT

IoT Edge Computing Deployment

Where processing happens in an edge IoT setup: devices, an on-site edge server running containers, and the cloud for fleet management and long-term storage.

FlowchartIoT

Smart Home Automation Flow

How a smart home reacts to events: motion, door and temperature triggers run rules for lights, locks, AC and alerts.

SequenceIoT

MQTT Publish/Subscribe Messaging

How MQTT messaging works between devices, a broker and applications: connect, subscribe, publish with QoS, retained messages and last will.