text: const { ObjectId } = require('mongodb');
  const { v4: uuidv4 } = require('uuid');
  const { WEBAPP } = require('../../../src/helpers/constants');
  const User = require('../../../src/models/User');
  const UserCompany = require('../../../src/models/UserCompany');
  const { clientAdminRoleId } = require('../../seed/authRolesSeed');
  const { authCompany } = require('../../seed/authCompaniesSeed');
  const { deleteNonAuthenticationSeeds } = require('../helpers/authentication');
  
  const auxiliary = {
    _id: new ObjectId(),
    identity: { firstname: 'Harry', lastname: 'Potter' },
    local: { email: 'h@p.com' },
    administrative: {
      driveFolder: { driveId: '1234567890' },
      passport: { driveId: '1234567890', link: 'https://test.com/1234567890' },
    },
    refreshToken: uuidv4(),
    role: { client: clientAdminRoleId },
    origin: WEBAPP,
  };
  
  const userCompany = { _id: new ObjectId(), user: auxiliary._id, company: authCompany._id };
  
  const populateDB = async () => {
    await deleteNonAuthenticationSeeds();
  
    await Promise.all([User.create(auxiliary), UserCompany.create(userCompany)]);
  };
  
  module.exports = { populateDB, auxiliary };
  