I have two tables and a array of values to insert: table1 (id, name, createdAt, updatedAt) table2(id, name, table1Id)
Is there any way in postgresql or sequelize to make a bulkCreate, adding records in both tables and using the id generated in the insert of table1 as foreign key of the second table?