title: October CMS plugin models relations
body: <p>I am using a messages plugin by Autumn. <a href="https://github.com/gpasztor87/oc-messages-plugin" rel="nofollow noreferrer">https://github.com/gpasztor87/oc-messages-plugin</a> It has 3 models in it (message, thread and participant) and now I want to create a separate section for this plugin in backend. I created a plugin using builder, I made a new model called "message", now the thing is that when I delete a message entry, I need it to delete other table entries associated to this message. Database is related like: thread has many messages and many participants.</p>
  
  <p>The question is: should I create all 3 separate models in my new backend plugin or I should use the already created ones from the original plugin? Also, is it better to make a relation using October CMS or I could create some function onDelete() and just delete all related entries? If so, how could I make this function? Is there some thing like onDelete hook or something?</p>
  
  <p>Thank you.</p>