Chron

How to cascade delete if using a polymorphic table?

Posted 1 month ago by Chron

I have an accounts table and it is being shared by multiple tables like admin, customers etc. Is there a way to copy the behavior of foreign constraints? Like when I deleted an admin account in accounts table, it will automatically delete the joined data in admins table.

Please sign in or create an account to participate in this conversation.