T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/lavocat.quebec/public_html/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.quebec/public_html/scripts/create-sample-clients.ts
import { PrismaClient } from '@prisma/client';
import bcrypt from 'bcryptjs';

const prisma = new PrismaClient();

async function createSampleClients() {
  console.log('šŸ‘„ Creating sample client users...');

  const clients = [
    {
      email: 'maria.gonzalez@email.com',
      name: 'Maria Gonzalez',
      password: await bcrypt.hash('password123', 10),
      role: 'USER',
      bio: 'Single mother seeking justice for my family',
      isProfilePublic: true,
      phone: '+1-416-555-0101',
      address: 'Toronto, ON',
      occupation: 'Nurse'
    },
    {
      email: 'james.wilson@email.com',
      name: 'James Wilson',
      password: await bcrypt.hash('password123', 10),
      role: 'USER',
      bio: 'Construction worker injured on the job',
      isProfilePublic: true,
      phone: '+1-416-555-0102',
      address: 'Mississauga, ON',
      occupation: 'Construction Worker'
    },
    {
      email: 'aisha.patel@email.com',
      name: 'Aisha Patel',
      password: await bcrypt.hash('password123', 10),
      role: 'USER',
      bio: 'Small business owner fighting discrimination',
      isProfilePublic: true,
      phone: '+1-416-555-0103',
      address: 'Brampton, ON',
      occupation: 'Business Owner'
    },
    {
      email: 'robert.chen@email.com',
      name: 'Robert Chen',
      password: await bcrypt.hash('password123', 10),
      role: 'USER',
      bio: 'Software developer wrongfully terminated',
      isProfilePublic: true,
      phone: '+1-416-555-0104',
      address: 'Markham, ON',
      occupation: 'Software Developer'
    },
    {
      email: 'sofia.rodriguez@email.com',
      name: 'Sofia Rodriguez',
      password: await bcrypt.hash('password123', 10),
      role: 'USER',
      bio: 'Teacher seeking help with landlord dispute',
      isProfilePublic: true,
      phone: '+1-416-555-0105',
      address: 'Etobicoke, ON',
      occupation: 'Teacher'
    }
  ];

  console.log(`Creating ${clients.length} sample clients...`);

  for (const client of clients) {
    try {
      const created = await prisma.user.create({
        data: client
      });
      console.log(`āœ… Created client: ${created.name} (${created.email})`);
    } catch (error) {
      console.log(`āš ļø Skipping existing client: ${client.email}`);
    }
  }

  console.log('\nšŸŽ‰ Sample clients created successfully!');
}

async function main() {
  try {
    console.log('šŸš€ Starting script...');
    await createSampleClients();
    await prisma.$disconnect();
    console.log('āœ… Script completed successfully!');
  } catch (error) {
    console.error('āŒ Script failed:', error);
    throw error;
  }
}

main().catch((e) => {
  console.error('āŒ Fatal error:', e);
  process.exit(1);
}); 

CasperSecurity Mini