await subitem.addProduct(product, {
through: { edit: true, min, max, mandatory },
});
but the log of the sql is showing this...
INSERT INTO products_items (created_at,updated_at,product_id,sub_item_id) VALUES ('2020-04-10 20:00:08.385 +00:00','2020-04-10 20:00:08.385 +00:00',2,2);