shahrukh ahmed
03/29/2022, 2:20 PMNurul
03/30/2022, 8:16 AMshahrukh ahmed
03/30/2022, 8:50 AMNurul
03/30/2022, 9:02 AMimport { v4 as uuidv4 } from 'uuid';
uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
And while creating the User record as well as the User Setting record you can pass this same id in both the create queries.