How to insert entity relationship table links

I have table 1: cars , 2: cars_histories
Strapi auto create cars_histories_links when i set relation,

    "car": {
      "type": "relation",
      "relation": "manyToOne",
      "target": "api::car.car",
      "inversedBy": "car_histories"
    },

I want using lifecycles afterCreate for insert to FK to cars_histories_links using entityService

pls help me or share your code examp, i’m beginer strapi