![]() 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/private_html/scripts/ |
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
// CLIENT PROGRESSION SYSTEM - "Order of Justice Seekers"
// Parallel track for clients alongside the lawyer "Society of Brothers"
const clientDegrees = [
// CIVIC LODGE DEGREES (1-10) - Foundation of Justice Understanding
{
degreeNumber: 1,
name: "Justice Initiate",
title: "Seeker of Truth",
description: "Begin your journey to understand justice and your rights as a citizen.",
track: "CLIENT",
xpRequired: 0,
casesParticipated: 0,
reviewsWritten: 0,
forumPosts: 0,
ceremonialText: "As a Justice Initiate, you join the eternal quest for fairness and truth in our legal system.",
symbol: "š",
color: "#10B981",
privileges: ["Access to public legal resources", "Basic forum participation", "Case viewing rights"],
lodgeLevel: "CIVIC",
isSecret: false
},
{
degreeNumber: 2,
name: "Rights Guardian",
title: "Defender of Personal Liberty",
description: "Learn about your fundamental rights and how to protect them.",
track: "CLIENT",
xpRequired: 50,
casesParticipated: 1,
reviewsWritten: 1,
forumPosts: 3,
ceremonialText: "You have proven your commitment to understanding your rights. Guard them well.",
symbol: "š”ļø",
color: "#3B82F6",
privileges: ["Rights guidance tools", "Priority support access", "Legal education resources"],
lodgeLevel: "CIVIC",
isSecret: false
},
{
degreeNumber: 3,
name: "Community Advocate",
title: "Voice for the Voiceless",
description: "Use your knowledge to help others understand their rights and navigate the legal system.",
track: "CLIENT",
xpRequired: 150,
casesParticipated: 2,
reviewsWritten: 3,
forumPosts: 10,
helpedOthers: 2,
ceremonialText: "Having learned your rights, you now pledge to help others learn theirs.",
symbol: "š£ļø",
color: "#8B5CF6",
privileges: ["Mentoring new members", "Community forum moderation", "Advocacy tools"],
lodgeLevel: "CIVIC",
isSecret: false
},
// REFORMER LODGE DEGREES (4-7) - System Change and Improvement
{
degreeNumber: 4,
name: "Legal Observer",
title: "Witness to Justice",
description: "Learn to observe and document legal proceedings to ensure transparency.",
track: "CLIENT",
xpRequired: 300,
casesParticipated: 3,
reviewsWritten: 5,
observationHours: 10,
ceremonialText: "Your eyes become the light that illuminates the dark corners of justice.",
symbol: "šļø",
color: "#F59E0B",
privileges: ["Court observation access", "Legal proceeding notifications", "Transparency reports"],
lodgeLevel: "REFORMER",
isSecret: false
},
{
degreeNumber: 5,
name: "System Reformer",
title: "Agent of Change",
description: "Actively work to improve the legal system through feedback and advocacy.",
track: "CLIENT",
xpRequired: 500,
casesParticipated: 5,
reviewsWritten: 10,
reformProposals: 2,
ceremonialText: "You have seen the flaws in our system and pledge to help repair them.",
symbol: "āļø",
color: "#EF4444",
privileges: ["System feedback authority", "Reform proposal submission", "Policy discussion access"],
lodgeLevel: "REFORMER",
isSecret: true
},
// ORACLE LODGE DEGREES (8-10) - Wisdom and Guidance
{
degreeNumber: 8,
name: "Justice Oracle",
title: "Sage of Legal Wisdom",
description: "Achieved deep understanding of justice - guide others on their journey.",
track: "CLIENT",
xpRequired: 1000,
casesParticipated: 10,
reviewsWritten: 25,
helpedOthers: 15,
wisdomScore: 80,
ceremonialText: "Wisdom flows through you like water through stone, shaping the path for others.",
symbol: "š®",
color: "#7C3AED",
privileges: ["Oracle consultation access", "Wisdom sharing platform", "Direct lawyer contact"],
lodgeLevel: "ORACLE",
isSecret: true,
maxMembers: 100
},
{
degreeNumber: 10,
name: "Sovereign Justice Keeper",
title: "Guardian of the Sacred Balance",
description: "Ultimate client degree - perfect understanding of justice from the citizen perspective.",
track: "CLIENT",
xpRequired: 2500,
casesParticipated: 20,
reviewsWritten: 50,
helpedOthers: 50,
wisdomScore: 95,
ceremonialText: "You have achieved perfect understanding of justice from the citizen's heart.",
symbol: "āļøš",
color: "#DC2626",
privileges: ["All client privileges", "Platform advisory board", "Justice keeper authority"],
lodgeLevel: "ORACLE",
isSecret: true,
maxMembers: 25
}
];
// CLIENT-SPECIFIC ADVANCEMENT CRITERIA
const clientAdvancementCriteria = {
// Different from lawyers - focused on civic engagement
xpSources: [
{ action: "writeReview", xp: 15, description: "Write detailed lawyer review" },
{ action: "helpNewMember", xp: 25, description: "Guide new platform member" },
{ action: "attendWebinar", xp: 10, description: "Attend legal education webinar" },
{ action: "shareStory", xp: 20, description: "Share case experience story" },
{ action: "forumPost", xp: 5, description: "Helpful forum post" },
{ action: "courtObservation", xp: 30, description: "Attend court observation session" },
{ action: "reformProposal", xp: 100, description: "Submit system improvement proposal" },
{ action: "mentorSession", xp: 40, description: "Complete mentoring session" }
],
// Track different metrics than lawyers
metrics: [
"casesParticipated", // Cases they've been involved in
"reviewsWritten", // Lawyer reviews written
"forumPosts", // Community engagement
"helpedOthers", // Mentoring other clients
"observationHours", // Court watching hours
"reformProposals", // System improvement ideas
"wisdomScore", // Community-rated wisdom level
"civicEngagement" // Overall civic participation score
]
};
// CLIENT LODGES - Different from Lawyer Lodges
const clientLodges = [
{
name: "Civic Lodge of Justice Seekers",
description: "Where all citizens begin their journey to understand justice and their rights.",
lodgeLevel: "CIVIC",
track: "CLIENT",
minimumDegree: 1,
maximumMembers: null,
isSecret: false,
meetingSchedule: JSON.stringify({
frequency: "weekly",
day: "Wednesday",
time: "18:00",
timezone: "EST"
}),
meetingLocation: "Virtual - Community Forum"
},
{
name: "Reformer Lodge of Change Agents",
description: "Citizens committed to improving our legal system through active engagement.",
lodgeLevel: "REFORMER",
track: "CLIENT",
minimumDegree: 4,
maximumMembers: 200,
isSecret: true,
meetingSchedule: JSON.stringify({
frequency: "bi-weekly",
day: "Second and Fourth Saturday",
time: "14:00",
timezone: "EST"
}),
meetingLocation: "Private - Reform Discussion Room"
},
{
name: "Oracle Lodge of Wisdom Keepers",
description: "The most experienced clients who guide others and advise the platform.",
lodgeLevel: "ORACLE",
track: "CLIENT",
minimumDegree: 8,
maximumMembers: 50,
isSecret: true,
meetingSchedule: JSON.stringify({
frequency: "monthly",
day: "Last Sunday",
time: "19:00",
timezone: "EST"
}),
meetingLocation: "Sacred - Wisdom Circle"
}
];
// CROSS-TRACK INTERACTIONS
const crossTrackFeatures = [
{
feature: "Client-Lawyer Mentorship",
description: "High-degree clients can mentor lower-degree lawyers about real-world impact",
requirements: {
client: "Degree 6+",
lawyer: "Degree 1-3"
}
},
{
feature: "Joint Ceremonies",
description: "Special ceremonies where both clients and lawyers advance together",
frequency: "Quarterly",
participants: "Both tracks"
},
{
feature: "Justice Councils",
description: "Mixed councils of high-degree clients and lawyers to guide platform decisions",
composition: "50% clients (degree 8+), 50% lawyers (degree 10+)"
},
{
feature: "Wisdom Exchange",
description: "Platform where Oracle clients share insights with Master lawyers",
access: "Invitation only"
}
];
async function conceptualImplementation() {
console.log('š CLIENT PROGRESSION SYSTEM CONCEPT\n');
console.log('šÆ VISION: Dual-Track Society System');
console.log(' - Lawyers: "Society of Brothers" (33 degrees)');
console.log(' - Clients: "Order of Justice Seekers" (10 degrees)');
console.log(' - Cross-track mentorship and collaboration\n');
console.log('š„ CLIENT DEGREES OVERVIEW:');
clientDegrees.forEach(degree => {
console.log(` ${degree.degreeNumber}° ${degree.name} ${degree.symbol}`);
console.log(` Title: ${degree.title}`);
console.log(` Lodge: ${degree.lodgeLevel} ${degree.isSecret ? '(SECRET)' : '(PUBLIC)'}`);
console.log(` XP Required: ${degree.xpRequired}`);
console.log('');
});
console.log('šļø CLIENT LODGES:');
clientLodges.forEach(lodge => {
console.log(` ${lodge.name}`);
console.log(` Level: ${lodge.lodgeLevel}`);
console.log(` Access: ${lodge.isSecret ? 'SECRET' : 'PUBLIC'}`);
console.log(` Max Members: ${lodge.maximumMembers || 'Unlimited'}`);
console.log('');
});
console.log('ā” XP EARNING OPPORTUNITIES FOR CLIENTS:');
clientAdvancementCriteria.xpSources.forEach(source => {
console.log(` ${source.action}: +${source.xp} XP - ${source.description}`);
});
console.log('\nš¤ CROSS-TRACK FEATURES:');
crossTrackFeatures.forEach(feature => {
console.log(` ${feature.feature}`);
console.log(` ${feature.description}`);
console.log('');
});
console.log('⨠BENEFITS OF DUAL-TRACK SYSTEM:');
console.log(' š Increased Client Engagement');
console.log(' š Legal Education for Citizens');
console.log(' š¤ Better Client-Lawyer Understanding');
console.log(' šļø Platform Community Building');
console.log(' āļø Improved Justice Outcomes');
console.log(' š” Valuable Client Feedback Loop');
}
// This is a concept - would need database schema updates to implement
async function main() {
await conceptualImplementation();
}
main()
.catch((e) => {
console.error(e);
process.exit(1);
})
.finally(async () => {
await prisma.$disconnect();
});