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.ca/private_html/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.ca/private_html/scripts/demo-data-summary.md
# Demo Data Summary - Liberté Même En Prison

## 🎯 Overview
This document summarizes all the demo data that has been populated in the database for comprehensive testing of the legal platform.

## 👥 Demo Users

### Super Admin
- **Danny PEREZ** (dannywperez@msn.com) - SUPERADMIN
  - Password: demo123
  - Access: Full admin dashboard and all features

### Lawyers & Legal Team
- **Marie Dubois** (lead.attorney@lmep.ca) - LAWYER
  - Password: demo123
  - Role: Lead Attorney
- **Jean-Pierre Martin** (assistant.lawyer@lmep.ca) - LAWYER
  - Password: demo123
  - Role: Assistant Attorney
- **Sophie Tremblay** (law.clerk@lmep.ca) - LAWYER
  - Password: demo123
  - Role: Law Clerk
- **Isabelle Gagnon** (legal.secretary@lmep.ca) - LAWYER
  - Password: demo123
  - Role: Legal Secretary

### Clients
- **Jane Doe** (client@example.com) - CLIENT
  - Password: demo123
  - Occupation: Accountant
- **Marie Tremblay** (marie.tremblay@example.com) - CLIENT
  - Password: demo123
  - Occupation: Teacher
- **Jean Bouchard** (jean.bouchard@example.com) - CLIENT
  - Password: demo123
  - Occupation: Construction Worker
- **Sophie Lévesque** (sophie.levesque@example.com) - CLIENT
  - Password: demo123
  - Occupation: Nurse
- **Marc Dubois** (marc.dubois@example.com) - CLIENT
  - Password: demo123
  - Occupation: Student
- **Lucie Morin** (lucie.morin@example.com) - CLIENT
  - Password: demo123
  - Occupation: Social Worker

## 📋 Demo Cases

### 1. Bordeaux Prison Conditions Class Action
- **Case Number**: 2024QCCS4540
- **Type**: Class Action
- **Status**: Active
- **Priority**: High
- **Description**: Class action lawsuit challenging prison conditions
- **Clients**: Jane Doe, Marie Tremblay, Marc Dubois

### 2. Environmental Justice Class Action
- **Case Number**: ENV2024001
- **Type**: Class Action
- **Status**: Active
- **Priority**: Medium
- **Description**: Class action against industrial pollution affecting indigenous communities
- **Clients**: Jane Doe, Marie Tremblay, Lucie Morin

### 3. Digital Privacy Rights Challenge
- **Case Number**: PRIV2024002
- **Type**: Class Action
- **Status**: Active
- **Priority**: Medium
- **Description**: Constitutional challenge to government surveillance programs
- **Clients**: Jane Doe, Marie Tremblay, Jean Bouchard, Marc Dubois, Lucie Morin

### 4. Wrongful Conviction Appeal - Michael Thompson
- **Case Number**: N/A
- **Type**: Appeal
- **Status**: Active
- **Priority**: Urgent
- **Description**: Appeal for wrongful conviction case
- **Clients**: Sophie Lévesque, Marc Dubois, Lucie Morin

## 🔗 Client-Case Relationships

### Total Statistics
- **Total Cases**: 4
- **Total Clients**: 6
- **Total Registrations**: 24
- **Total Case Assignments**: 33

### Client Case Distribution
- **Jane Doe**: 3 cases (all class actions)
- **Marie Tremblay**: 3 cases (all class actions)
- **Jean Bouchard**: 1 case (privacy rights)
- **Sophie Lévesque**: 1 case (wrongful conviction appeal)
- **Marc Dubois**: 3 cases (mixed types)
- **Lucie Morin**: 3 cases (mixed types)

## 🧪 Testing Scenarios

### 1. Case Selection Page (/hire/case-selection)
- **Status**: ✅ Fully populated
- **Test**: Log in as any client and navigate to case selection
- **Expected**: See relevant cases for that client

### 2. Role-Based Dashboards
- **SUPERADMIN**: Full admin dashboard with analytics
- **LAWYER**: Lawyer dashboard with cases and team management
- **CLIENT**: Client dashboard with case overview

### 3. Navigation & Access Control
- **Status**: ✅ All role-based redirects working
- **Test**: Each role should be redirected to appropriate dashboard

## 🚀 Quick Start Guide

### For Testing Case Selection:
1. **Start the development server**:
   ```bash
   npm run dev
   ```

2. **Access the application**:
   - HTTPS: https://localhost:3443
   - HTTP: http://localhost:3000

3. **Test as a Client**:
   - Login: client@example.com / demo123
   - Navigate to: /hire/case-selection
   - Verify cases are displayed

4. **Test as Super Admin**:
   - Login: dannywperez@msn.com / demo123
   - Should redirect to: /admin/dashboard

5. **Test as Lawyer**:
   - Login: lead.attorney@lmep.ca / demo123
   - Should redirect to: /lawyer/dashboard

## 📊 Database Statistics

### Users by Role
- SUPERADMIN: 1
- LAWYER: 4
- CLIENT: 6
- **Total**: 11 users

### Case Types
- Class Actions: 3
- Appeals: 1
- **Total**: 4 cases

### Relationships
- Client-Case Links: 33 total assignments
- Average cases per client: 5.5
- Cases accepting applications: 4/4 (100%)

## 🔧 Maintenance

### Adding More Demo Data
- Use `scripts/create-additional-clients.js` to add more clients
- Use `scripts/link-clients-to-cases.js` to link clients to cases
- Use `npm run demo-assignments create` to create more case assignments

### Resetting Demo Data
- Use `npm run demo-assignments cleanup` to remove demo assignments
- Database can be reset with `npx prisma migrate reset`

## 🎉 Success Criteria Met

✅ **Case Selection Page**: Fully populated with client-specific cases  
✅ **Role-Based Access**: All roles have appropriate dashboards and navigation  
✅ **API Endpoints**: `/api/user/cases` working correctly  
✅ **Database Relationships**: Proper client-case connections established  
✅ **Testing Coverage**: Multiple clients with different case types  
✅ **Realistic Data**: Quebec-based legal cases with proper case numbers  

The platform is now ready for comprehensive testing of all features! 

CasperSecurity Mini