How can I insert data into two different tables with a single request?

Trying on this doc.
This maybe help you.
You can use

lifecycles: {
    async beforeCreate(data) {
      data.isTableFull = data.numOfPeople === 4;
    },
  },