Delete rules can block or remove child rows in this tiny model.
highlighted = computed this step
Restrict versus cascade
Deleting a parent row can be blocked, or it can remove matching child rows in this tiny model.
delete rule is explicit
Show both outcomes
Restrict is blocked. Cascade is deleted and affects 2 child rows.
cascade child rows=2
Key examples are tiny finite table checks; SQL dialects, indexing, query planning, deferrable constraints, enforcement timing, performance, and product behavior are out of scope.
Read after tables
The after-delete tables show exactly what stayed or disappeared.
after tables visible
Summary
Only restrict and cascade are modeled; timing and product-specific behavior stay out of scope.