Leanpub Header

Skip to main content

From Schema to System

This book is 100% completeLast updated on 2026-06-29

One database. Seventeen sectors. Fully keyed. From Schema to System maps the complete SQL Server / EF Core data backbone behind the NEXUS-1 digital twin, showing how telemetry, alarms, root-cause analysis, reinforcement learning, compliance, reporting, and audit become one queryable system.

Minimum price

$89.99

$119.99

You pay

Author earns

$

Also available for 4 book credits with a Reader Membership

PDF
About

About

About the Book

About the Book

What does a digital twin look like when you stop describing it in diagrams and actually give it a database?

From Schema to System is the complete data-backbone reference for the NEXUS-1 companion system. It takes the architecture introduced in From Table to Twin and writes it down as a full SQL Server / EF Core friendly schema atlas: one database, seventeen bounded contexts, hundreds of tables, typed lookup tables, primary keys, foreign keys, indexes, audit columns, and verification queries.

This is not a book about database theory in the abstract. It is a concrete schema reference for an industrial digital-twin platform built around the NEXUS-1 demonstration environment. The plant fleet, instrumentation layer, digital twin, alarm management, event management, maintenance records, root-cause engine, reinforcement-learning policy store, robotics fleet, radiation monitoring, emergency preparedness, compliance, reporting, and audit trail are all modelled as connected sectors of one database.

The central idea is simple:

A digital twin is only as trustworthy as the data backbone that holds it together.

If a unit exists in the reactor fleet, the same UnitId should be visible in instrumentation, alarms, root-cause analysis, maintenance, reporting, and audit. If a signal feeds a twin variable, that binding should be explicit. If an alarm becomes an incident, and the incident becomes a root-cause investigation, and the investigation produces corrective actions, the chain should be queryable. If the system claims that something happened, the database should be able to show where that claim came from.

This book is the schema map for that chain.

What This Book Contains

The book contains the complete NEXUS-1 schema atlas:

  • 17 SQL Server schemas / bounded contexts
  • 654 total tables
  • 246 typed lookup or reference tables
  • 408 substantive operational, historical, audit, fact, or relationship tables
  • SQL Server / EF Core friendly DDL
  • Primary-key and foreign-key definitions
  • Lookup-table conventions
  • ER diagrams and foreign-key passport maps
  • Cross-schema dependency mappings
  • Index definitions
  • Seed-data examples
  • Verification queries

The schemas covered are:

  1. CorePlatform
  2. Security
  3. Organization
  4. ReactorFleet
  5. Instrumentation
  6. DigitalTwin
  7. AlarmManagement
  8. EventManagement
  9. Maintenance
  10. RootCause
  11. ReinforcementLearning
  12. Robotics
  13. RadiationMonitoring
  14. EmergencyPreparedness
  15. Compliance
  16. Reporting
  17. Audit

Together, these sectors form the complete data backbone behind the NEXUS-1 digital-twin concept.

Why This Book Exists

The earlier NEXUS-1 books each explained one major part of the platform.

From Grid to Core explained the plant and its physics.
From Flood to Cause explained alarm-flood collapse and root-cause reasoning.
From Trial to Policy explained the interpretable reinforcement-learning agent.
From Table to Twin explained why the data model matters and how a schema becomes a digital twin.

From Schema to System is the technical reference that follows from all of them.

It answers the question:

If all of those systems really lived in one coherent platform, what would the database look like?

The answer is not a single table, not a toy schema, and not a collection of disconnected examples. It is a complete, sector-by-sector architecture where every table has a place, every lookup has a type, and every cross-sector relationship is made explicit by a foreign key.

Who This Book Is For

This book is written for:

  • software architects
  • database designers
  • .NET and EF Core developers
  • SQL Server developers
  • engineers interested in digital-twin platforms
  • readers of the NEXUS-1 series who want the complete data model
  • anyone studying how large operational systems can be organized into bounded contexts

You do not need nuclear-industry experience to read it. The nuclear-plant setting is the reference system, not the assumption. The real subject is enterprise data architecture for complex industrial systems.

If you have ever wondered how to model a system where telemetry, alarms, incidents, maintenance, root-cause analysis, compliance, reporting, and audit all need to speak about the same physical world, this book is for you.

What Makes It Different

Most database examples are too small to teach architecture. They show customers, orders, products, invoices, and perhaps a few lookup tables. That is useful, but it does not show what happens when a platform grows large enough to need real boundaries.

This book starts where small examples stop.

It shows:

  • how to divide a large system into schemas without losing referential integrity
  • how to use lookup tables without falling into hardcoded constants
  • how to make foreign keys act as passports between bounded contexts
  • how to keep operational records, history, evidence, and audit separate but connected
  • how to design for EF Core without giving up SQL Server clarity
  • how to make a digital twin queryable instead of merely visual

The result is not only a schema. It is a way of thinking about system truth.

Honest Boundary

NEXUS-1 is a Phase-0 demonstration and educational companion system. The schema in this book is a serious software-architecture reference, but it is not a licensed nuclear-plant information model, not safety-class software, not certified for operational use, and not connected to any real facility.

The purpose of this book is to show how a complex digital-twin platform can be structured, keyed, audited, and reasoned about at database level.

It is a schema atlas, not an operating manual.

In One Sentence

From Schema to System is the complete SQL Server / EF Core schema atlas for the NEXUS-1 digital-twin platform: one database, seventeen sectors, fully keyed.

Author: Grigorios Kyriakos Agathangelidis
Greek name: Γρηγόριος Κυριάκος Αγαθαγγελίδης
Also searchable as: Αγαθαγγελίδης ΓρηγόριοςΑγαθαγγελιδης ΓρηγοριοςGrigorios Agathangelidis.

Share this book

Categories

Bundle

Bundles that include this book

Author

About the Author

Grigorios Agathangelidis

About the Author

Grigorios Agathangelidis is a software engineer with a professional background in Electrical Engineering and Software Engineering. His work focuses on enterprise software architecture, .NET development, database design, systems modelling, digital-twin concepts, and the use of structured data to make complex systems understandable.

He is the creator of NEXUS-1, a browser-based industrial digital-twin and operator-console demonstrator built as an educational and analytical platform. NEXUS-1 began as an independent engineering project: a way to study complex plant systems, simulation, telemetry, alarms, root-cause reasoning, reinforcement learning, and database-backed operational intelligence through one coherent software environment.

Grigorios is not a nuclear physicist, nuclear engineer, or nuclear power-plant specialist. The NEXUS-1 project is not the result of formal nuclear-industry experience. It is the result of independent study, software engineering discipline, systems thinking, and a deep interest in understanding how complex technical systems can be represented, simulated, visualized, queried, and audited.

His broader interest is not only nuclear technology, but the architecture of complex systems: how physical assets, measurements, events, alarms, evidence, policies, learning agents, compliance records, and audit trails can be joined into a single model of truth. This includes topics such as digital twins, SQL Server, Entity Framework Core, root-cause analysis, explainable AI, retrieval-augmented generation, reinforcement learning, and decision-support systems for industrial environments.

From Schema to System reflects that focus. It is not a theoretical database book and not a nuclear operations manual. It is a schema atlas: a complete data-backbone reference showing how the NEXUS-1 platform can be organized into seventeen bounded contexts, 654 tables, typed lookup structures, explicit primary keys, foreign keys, indexes, verification queries, and audit-ready relationships.

Throughout the NEXUS-1 series, Grigorios approaches the subject with ambition, curiosity, and humility. The models, schemas, simulations, and visualizations are educational and demonstrator-grade. They are not licensed, certified, validated for plant operation, or connected to any real facility.

The purpose of his work is to make complex engineering systems more understandable to software engineers, architects, and technically curious readers — not by simplifying them into slogans, but by building structured models that can be inspected, queried, challenged, and improved.

Author: Grigorios Kyriakos Agathangelidis
Greek name: Γρηγόριος Κυριάκος Αγαθαγγελίδης
Also searchable as: Αγαθαγγελίδης ΓρηγόριοςΑγαθαγγελιδης ΓρηγοριοςGrigorios Agathangelidis.

Contents

Table of Contents

  • Cover
  • Preface
  • How to Read This Book
  • Table of Contents
  • Part I — Foundations
    • Chapter 1 — Schema-Wide Conventions
    • Chapter 2 — The NEXUS-1 Data Backbone
    • Chapter 3 — SQL Server and EF Core Design Principles
  • Part II — Core Platform and Identity
    • Chapter 4 — CorePlatform Schema
    • Chapter 5 — Security Schema
    • Chapter 6 — Organization Schema
  • Part III — Plant, Signals, and Twin
    • Chapter 7 — ReactorFleet Schema
    • Chapter 8 — Instrumentation Schema
    • Chapter 9 — DigitalTwin Schema
  • Part IV — Operations and Events
    • Chapter 10 — AlarmManagement Schema
    • Chapter 11 — EventManagement Schema
    • Chapter 12 — Maintenance Schema
  • Part V — Reasoning, Learning, and Autonomous Support
    • Chapter 13 — RootCause Schema
    • Chapter 14 — ReinforcementLearning Schema
    • Chapter 15 — Robotics Schema
  • Part VI — Safety, Preparedness, and Governance
    • Chapter 16 — RadiationMonitoring Schema
    • Chapter 17 — EmergencyPreparedness Schema
    • Chapter 18 — Compliance Schema
    • Chapter 19 — Reporting Schema
    • Chapter 20 — Audit Schema
  • Epilogue — From Schema to System
  • Back Matter
    • References
    • Index of Schemas
    • Index of Tables
    • Index of Lookup Tables
    • Index of Foreign-Key Passports

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub