INSERT INTO product (id) VALUES (nextval('product_id_seq')); INSERT INTO _product_data (canonical_name, _start_t, _table, product_classification, country) VALUES ( '%s', now(), currval('product_id_seq'), 5, 78); INSERT INTO price (id) VALUES (nextval('price_id_seq')); INSERT INTO _price_data (_start_t, unit_price, _table, product, price_type) VALUES ( now(), %d, currval('price_id_seq'), currval('product_id_seq'), 1); INSERT INTO product_code (id) VALUES (nextval('product_code_id_seq')); INSERT INTO _product_code_data (code, _start_t, _table, product_code_type, product) VALUES ( %d, now(), currval('product_code_id_seq'), 1, currval('product_id_seq')); INSERT INTO product_tax (id) VALUES (nextval('product_tax_id_seq')); INSERT INTO _product_tax_data (_start_t, amount, _table, tax, product) VALUES ( now(), 21, currval('product_tax_id_seq'), 1, currval('product_id_seq')); INSERT INTO product_store (id) VALUES (nextval('product_store_id_seq')); INSERT INTO _product_store_data (level, _start_t, _table, product) VALUES ( %d, now(), currval('product_store_id_seq'), currval('product_id_seq'));