Hello!
Step1: You Can create 4 different repositories:
- Table named as a_products_category,
- a_products_info,
- a_archive_products_category,
4.a_archive_products_info;
Step2:Create service which copy data from tables to archive
Step3: check in controller for product status and call service method
I’ll do that.
Anyway i think pass table name(prefix) as param is a bad way.