Zero-Row GuaranteeStructure-only SQL, Prisma & SQLAlchemy safety · pip install solunex-ssdo · Zero customer rows ever read.

FOREIGN KEYS & BLAST RADIUS   ← All Developer Tools

Foreign-Key ON DELETE CASCADE Blast Radius & Insert Order Simulator

Simulate foreign-key delete cascades, orphan traps, and topological parent-to-child insert order from your SQL, Prisma, or SQLAlchemy schema without reading a single row.

Simulate Cascade Blast Radius →   Run in CLI Sandbox →   Launch Full Console

The Engineering Problem

A single misplaced ON DELETE CASCADE on a parent table like users or tenants can silently wipe out invoices, audit logs, and ledger history across 10 downstream tables.

INPUT · SCHEMA OR ROUTE
CREATE TABLE invoices (
  id UUID PRIMARY KEY,
  user_id UUID REFERENCES users(id) ON DELETE CASCADE
);
SSDO OUTPUT · ZERO ROWS READ
[HIGH] Destructive ON DELETE CASCADE from users -> invoices
  Deleting a user wipes financial history. Suggested fix:
  Change ON DELETE CASCADE to ON DELETE RESTRICT and add deleted_at TIMESTAMPTZ NULL.

Run 100% Offline in Your Terminal or CI

pip install solunex-ssdo
ssdo review ./schema.sql

What SSDO Checks & Generates

Frequently Asked Questions

How does SSDO find relationships if foreign keys are missing?

SSDO separates declared database foreign keys from heuristic inferences (such as user_id -> users.id) and explicitly labels each link with its evidence and confidence.

Does it work on Prisma or SQLAlchemy models?

Yes. Drop your .sql, .prisma, or Python SQLAlchemy files directly into the Schema IDE to simulate insert order and cascade blast radius.

More Zero-Row Developer Tools