Robuta

https://neon.com/postgresql/tutorial/delete-cascade PostgreSQL DELETE CASCADE How to use the PostgreSQL DELETE CASCADE to delete related rows in child tables when a parent row is deleted from the parent table. delete cascadepostgresql