CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Energy & Utilities

⚡ Energy & Utilities · Database ERD

Utility Customer and Billing Schema

The core tables of a utility billing system: customers, premises, meters, meter readings, tariffs and bills.

More Energy & Utilities templates

Drawing diagram…

What this diagram shows

  • A premises can have several meters over its life
  • Readings belong to a meter, bills to an account
  • Tariffs are versioned with effective dates

Prompt used

Database schema for utility billing: customers own accounts; each account is for a premises; a premises has meters (with install and removal dates); meters have readings (actual or estimated); bills are generated per account per billing period using a tariff, with bill lines and payments.

Mermaid code
erDiagram
  CUSTOMER ||--o{ ACCOUNT : holds
  PREMISES ||--o{ ACCOUNT : "billed for"
  PREMISES ||--o{ METER : has
  METER ||--o{ READING : records
  ACCOUNT ||--o{ BILL : receives
  TARIFF ||--o{ BILL : "priced by"
  BILL ||--|{ BILL_LINE : contains
  BILL ||--o{ PAYMENT : "paid by"
  CUSTOMER {
    int id PK
    string name
    string phone
  }
  ACCOUNT {
    int id PK
    int customer_id FK
    int premises_id FK
    string status
  }
  PREMISES {
    int id PK
    string address
    string category
  }
  METER {
    int id PK
    int premises_id FK
    string serial_no
    date installed_on
    date removed_on
  }
  READING {
    int id PK
    int meter_id FK
    datetime read_at
    decimal kwh
    string read_type
  }
  TARIFF {
    int id PK
    string code
    decimal rate_per_kwh
    date effective_from
  }
  BILL {
    int id PK
    int account_id FK
    int tariff_id FK
    date period_end
    decimal amount
  }
  BILL_LINE {
    int id PK
    int bill_id FK
    string description
    decimal amount
  }
  PAYMENT {
    int id PK
    int bill_id FK
    decimal amount
    string channel
  }

Related templates

Data FlowEnergy & Utilities

Smart Meter Data Flow

How readings from millions of smart electricity meters reach billing and customers: head-end system, meter data management and analytics.

FlowchartEnergy & Utilities

Power Outage Management Workflow

What a power utility does from the moment an outage is detected to restoring supply and closing the incident.

C4 ArchitectureProEnergy & Utilities

Smart Grid Architecture

The software behind a modern power grid: SCADA/EMS for transmission, ADMS for distribution, smart meters, DER management and the customer portal.

SequenceEnergy & Utilities

Utility Billing Sequence

How an electricity or water bill is produced and paid: meter reads, validation, tariff calculation, bill delivery and payment posting.

DeploymentProEnergy & Utilities

Solar and Wind Plant Monitoring

Where monitoring runs for a renewable energy portfolio: inverters and turbines at each plant, a plant controller, and the central monitoring cloud.

SankeyEnergy & Utilities

Electricity Generation Mix Sankey

How electricity flows from generation sources to the grid and on to consumer segments, including losses.