PuranOS Schema Catalog

137 Schemas Across the DBO Lifecycle

26 Pydantic interchange contracts + 111 Postgres storage schemas across 7 databases + OSS system extensions. Organized by ontology layer and lifecycle phase. Machine-readable at /schemas/index.json.

26

Pydantic schemas

interchange contracts

111

Postgres schemas

storage contracts

4

OSS systems

forked / extended

16

Industry standards

ISA, IEC, ISO, EPA

Interchange Contracts

Pydantic models are the source of truth. JSON Schema files are generated with canonical $id URIs at puranwater.com/schemas/.

Engineering

stream-state
OPC UA AnalogItem, ISO 15926

31-component process stream with flow, temperature, pressure, pH, aggregates

engineering_mcp → stream_snapshot

equipment-item
OPC UA DI, IDTA AAS, ISA-95

Equipment identity (UUID + ISA 5.1 tag), nameplate, sizing, costing

equipment_identity → equipment_position, asset_instance

model-credibility
IDTA AAS Simulation Models

Model status, decision grade, validation basis

engineering_mcp → component_metadata

hydraulic-profile
Engineering practice

Node-by-node HGL/EGL with gravity feasibility validation

engineering_mcp → engineering_artifact

Rationalized alarms: tag, setpoint, priority, probable cause, deadbands

engineering_mcp → alarm_definition

cause-effect-matrix
ISA-5.2, IEC 62424

Sparse C&E matrix with standard mark types (X, T, D, A, S)

engineering_mcp → engineering_artifact

instrument-database
ISA-5.1, DEXPI

Instrument index + IO list: loops, instruments, device specs

engineering_mcp → engineering_artifact

control-execution-package
ISA-88, ISA-95, IEC 61131-3

Process segments, PID loops, interlocks, sequences, PLC metadata

engineering_mcp → process_segment_definition, control_loop_definition, interlock_definition, control_sequence_definition, plc_program_unit

hazop-study-package
IEC 61882, IEC 61511

HAZOP nodes/deviations with LOPA scenarios and IPL credit factors

engineering_mcp → hazop_study, hazop_node, hazop_deviation, lopa_scenario

Procurement

EV baselines, cash flow forecasts, cost-to-complete, contingency drawdown

procurement → project_control_baseline, earned_value_snapshot, cash_flow_forecast_period, cost_to_complete_projection, contingency_drawdown

Design intent snapshot for operations comparison: flows, effluent targets, vendor guarantees

engineering_mcp → design_performance_baseline, vendor_guarantee

Commissioning

commissioning-handover-package
IDTA AAS, ISA-95, ISO 14224

One-time handover: equipment registry, loops, alarms, spare parts, baselines

engineering_mcp → engineering_artifact

Operations

water-compliance-package
NPDES, 40 CFR 122, EPA WQX

Permits, monitoring, exceedances, lab results, QA/QC, chain-of-custody

compliance_mcp → compliance_facility, permit_condition, monitoring_result, sample_event, lab_result, qa_qc_observation, custody_transfer

Alarm events, shift logs, operator rounds, chemical dosing, control performance

engineering_mcp → alarm_event, shift_log, operator_round, chemical_dose_run, control_performance_snapshot

reliability-kpi-snapshot
ISO 14224, IEC 61511

MTBF, MTTR, availability, failure events, spare consumption, guarantee comparisons

engineering_mcp → reliability_kpi_snapshot, failure_event, spare_consumption, guarantee_comparison

Monthly operational SCADA/LIMS metrics per equipment

engineering_mcp → stream_snapshot

Completed maintenance work orders from CMMS

Permit compliance status per discharge point

compliance_mcp → monitoring_result, exceedance_event

Capital improvement requests with cost estimates

Storage Contracts

111 Postgres table schemas introspected from live databases across 7 databases. Each table has a JSON Schema at puranwater.com/schemas/postgres/{db}/{table}.schema.json.

engineering_mcp

42 tables Engineering + Operations

Engineering computation, alarms, control, HAZOP, operations runtime, reliability

Browse 42 table schemas →

procurement

30 tables Procurement

Vendor quotes, cost observations, POs, invoices, project controls

Browse 30 table schemas →

compliance_mcp

17 tables Operations

Permits, monitoring results, lab results, QA/QC, chain-of-custody

Browse 17 table schemas →

equipment_identity

6 tables Engineering + Commissioning

Equipment positions, physical assets, tag history, spare applicability

Browse 6 table schemas →

contractor_management

6 tables Procurement + Construction

Contractor qualifications, certifications, insurance, safety records

Browse 6 table schemas →

project_controls

5 tables All phases

Earned value, cash flow forecasts, cost-to-complete, contingency

Browse 5 table schemas →

Enterprise OSS Extensions

Self-hosted open-source systems with PuranOS-specific extensions. Each system brings a Postgres-backed domain model; extensions add cross-system identity and interoperability fields.

Atlas CMMS

forked Operations

Maintenance management — work orders, assets, meters, preventive maintenance, spare parts

equipment_uid (UUID)project_reffailure taxonomy (ISO 14224)spare criticalitymeter severity escalation

OpenProject

All phases

Project workflow — 18 work package types, 61 custom fields

Types 8-9 (RFI, Submittal)Types 17-18 (Transmittal, Warranty)Fields 1-19 (CPM, RFI, submittal, discipline)Fields 20-31 (agent state, equipment_tag)Fields 32-43 (NCR, commissioning, MOC)Fields 44-61 (interop: equipment_uid, failure taxonomy, CMMS/alarm links, warranty, transmittal)

InvenTree

Procurement + Operations

Parts, BOMs, stock, purchase orders, test results

Linked via part_applicability junction table

Paperless-ngx

All phases

Document management — vendor submittals, permits, lab certificates

Document types: lab_certificate, chain_of_custody, calibration_cert

Standards Adopted

Practical subsets for interoperability with industry practice, not exhaustive compliance.

ISA 5.1

Instrument identification and tagging

ISA-5.2 / IEC 62424

Cause-and-effect diagrams

ISA-18.2

Alarm management lifecycle

ISA-88 / IEC 61512

Batch control, recipe hierarchy

ISA-95 / IEC 62264

Equipment hierarchy and operations

IEC 61131-3

PLC programming languages

IEC 61882

HAZOP study procedure

IEC 61511

Functional safety (SIS/LOPA)

ISO 14224

Equipment reliability and maintenance

DEXPI (ISO 15926)

P&ID data exchange

OPC UA DI

Device identity and automation models

IDTA AAS

Asset Administration Shell (digital nameplate)

QUDT / UN-CEFACT Rec 20

57 constrained engineering units with UCUM codes

EPA WQX / NPDES

Water quality exchange, discharge permits, DMR

ANSI/EIA-748

Earned value management

BCF-XML

Issue/defect exchange (buildingSMART)

Reference Data

Shared vocabularies and taxonomies used across all schema layers.

engineering-unit

QUDT / UN-CEFACT Rec 20 / UCUM

57 constrained engineering unit codes with UCUM code mapping. Used by all units fields across Pydantic models and Postgres tables.

Defined in enums.py as EngineeringUnit(str, Enum) + ucum_code() helper

process-unit-taxonomy ISA-95 hierarchy

109 wastewater process unit types with ISA area codes (tag_area: 100-800), subarea numbers, default equipment type codes, subtypes, and synonyms. Each entry maps a process unit type to the 3-digit tag prefix used in ISA 5.1 equipment/instrument tags. Runtime-validated via @field_validator with lookup functions: get_tag_area(), get_equipment_type_code().

View JSON Schema →

Failure mode, cause, and mechanism reference data per ISO 14224 Tables A.5-A.7. Used by Atlas CMMS work orders and PuranOS FailureEvent models. Equipment classes for wastewater: rotating, static, electrical, instrument, safety.

View JSON Schema →

Generation Pipeline

Two generators, one output format. Pydantic models produce interchange schemas; SQL DDL produces storage schemas. Both emit JSON Schema 2020-12 with canonical $id URIs.

Pydantic models (23)          SQL DDL init scripts (6 DBs)

          ↓                                     ↓

generate_schemas.py          generate_postgres_schemas.py

          ↓                                     ↓

schemas/*.schema.json         schemas/postgres/{db}/*.schema.json

                          ↓

                schemas/index.json

Full Documentation

For the complete ontology layer architecture, standards alignment details, and schema governance model.