Type Alias: OnDelete
OnDelete:
"cascade"|"restrict"|"set null"|"set default"|"no action"
Action to take when a referenced entity is deleted.
cascade- Delete all dependent entities.restrict- Prevent deletion of the referenced entity.set null- Set the foreign key to null.set default- Set the foreign key to its default value.no action- Do nothing.