I have a template table with records. When there is a new record created I want to copy the template table records to another table and add the id of the new record.
New record table1: New record=> field 1=id=1, field 2=info="hello there"
Template table: record1=> field 1=id=1, field 2=info="green" record2=> field 2=id=2, field 2=info="yellow"
Total table:
new record1=> field 1=id=1, field 2=template_id=1, field3=template_info=green, field 4=table1_id=1
new record2=> field 1=id=2, field 2=template_id=2, field3=template_info=yellow, field 4=table1_id=1