![]() 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/ |
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
// Order of Justice Seekers - Client Track (10 Degrees)
const clientDegrees = [
// CIVIC LODGE DEGREES (1-3) - Foundation of Justice Understanding
{
degreeNumber: 1,
name: "Justice Initiate",
title: "Seeker of Truth",
description: "The first step into understanding justice and legal systems. Learn the basics of legal processes, rights, and civic duty.",
requirements: JSON.stringify({
actions: ["Complete platform orientation", "Read terms of service", "Set up profile"],
knowledge: ["Basic legal rights", "Platform rules", "How to find help"]
}),
xpRequired: 0,
track: "CLIENT",
lodgeLevel: "CIVIC",
ceremonialText: "Today you begin your journey as a Seeker of Truth. In this sacred digital lodge, you commit to understanding justice, supporting others, and working toward a more equitable society.",
symbol: "⚖️",
color: "#3B82F6",
privileges: JSON.stringify(["Access to basic legal resources", "Participate in public forums", "Connect with lawyers"])
},
{
degreeNumber: 2,
name: "Rights Guardian",
title: "Protector of the Innocent",
description: "Develop deeper understanding of constitutional rights and become an advocate for others seeking justice.",
requirements: JSON.stringify({
actions: ["Write 3 lawyer reviews", "Help 2 new users", "Attend 1 webinar"],
knowledge: ["Constitutional rights", "Legal review process", "Community support"],
xp: 150,
reviews: 3,
helpedOthers: 2
}),
xpRequired: 150,
track: "CLIENT",
lodgeLevel: "CIVIC",
ceremonialText: "As a Rights Guardian, you pledge to protect the innocent and guide those who seek justice. Your voice becomes a beacon for others navigating legal challenges.",
symbol: "🛡️",
color: "#10B981",
privileges: JSON.stringify(["Write detailed case reviews", "Mentor new users", "Access to webinar recordings"])
},
{
degreeNumber: 3,
name: "Community Advocate",
title: "Voice of the People",
description: "Become a recognized voice in the community, helping shape discussions and supporting justice reform initiatives.",
requirements: JSON.stringify({
actions: ["Write 10 reviews", "Help 5 users", "Share case experience", "Active forum participation"],
knowledge: ["Community guidelines", "Advocacy techniques", "Legal system navigation"],
xp: 500,
reviews: 10,
helpedOthers: 5,
forumPosts: 10
}),
xpRequired: 500,
track: "CLIENT",
lodgeLevel: "CIVIC",
ceremonialText: "You are now recognized as a Community Advocate, a trusted voice among your peers. Your wisdom and experience light the path for others seeking justice.",
symbol: "📢",
color: "#8B5CF6",
privileges: JSON.stringify(["Lead community discussions", "Access to advocate resources", "Priority support response"])
},
// REFORMER LODGE DEGREES (4-7) - Active System Participation
{
degreeNumber: 4,
name: "Legal Observer",
title: "Witness of Justice",
description: "Participate in legal system observation and contribute to transparency through documented insights.",
requirements: JSON.stringify({
actions: ["Complete 20 hours court observation", "Submit observation reports", "Write system feedback"],
knowledge: ["Court procedures", "Documentation standards", "Legal observation ethics"],
xp: 1000,
observationHours: 20,
forumPosts: 25
}),
xpRequired: 1000,
track: "CLIENT",
lodgeLevel: "REFORMER",
isSecret: true,
ceremonialText: "As a Legal Observer, you become the eyes and ears of justice transparency. Your documentation serves the greater good of legal accountability.",
symbol: "👁️",
color: "#F59E0B",
privileges: JSON.stringify(["Court observation certification", "Access to legal databases", "Professional observer network"])
},
{
degreeNumber: 5,
name: "System Reformer",
title: "Agent of Change",
description: "Actively contribute to legal system improvements through research, proposals, and reform initiatives.",
requirements: JSON.stringify({
actions: ["Submit 2 reform proposals", "Lead community initiative", "Mentor 10 users"],
knowledge: ["Policy analysis", "Reform processes", "Community organizing"],
xp: 2000,
reformProposals: 2,
helpedOthers: 10,
civicEngagement: 75
}),
xpRequired: 2000,
track: "CLIENT",
lodgeLevel: "REFORMER",
isSecret: true,
ceremonialText: "You are now a System Reformer, entrusted with the sacred duty of improving justice for all. Your proposals and actions create lasting change.",
symbol: "🔧",
color: "#EF4444",
privileges: JSON.stringify(["Submit official proposals", "Access to policy makers", "Reform committee participation"])
},
{
degreeNumber: 6,
name: "Justice Facilitator",
title: "Bridge Builder",
description: "Facilitate connections between clients and legal professionals while mediating community discussions.",
requirements: JSON.stringify({
actions: ["Facilitate 25 connections", "Moderate forums", "Resolve conflicts"],
knowledge: ["Mediation techniques", "Communication skills", "Conflict resolution"],
xp: 3500,
helpedOthers: 25,
forumPosts: 50,
wisdomScore: 4.0
}),
xpRequired: 3500,
track: "CLIENT",
lodgeLevel: "REFORMER",
isSecret: true,
ceremonialText: "As a Justice Facilitator, you build bridges between those seeking justice and those who provide it. Your wisdom guides difficult conversations toward resolution.",
symbol: "🌉",
color: "#6366F1",
privileges: JSON.stringify(["Mediation certification", "Forum moderation rights", "Direct lawyer connections"])
},
{
degreeNumber: 7,
name: "Rights Scholar",
title: "Keeper of Legal Wisdom",
description: "Develop expertise in legal research and education, teaching others about rights and legal processes.",
requirements: JSON.stringify({
actions: ["Create educational content", "Lead training sessions", "Mentor advanced users"],
knowledge: ["Legal research methods", "Educational design", "Adult learning principles"],
xp: 5000,
helpedOthers: 50,
forumPosts: 100,
wisdomScore: 4.5
}),
xpRequired: 5000,
track: "CLIENT",
lodgeLevel: "REFORMER",
isSecret: true,
ceremonialText: "You have become a Rights Scholar, a keeper of legal wisdom. Your knowledge illuminates the path for countless seekers of justice.",
symbol: "📚",
color: "#059669",
privileges: JSON.stringify(["Create educational materials", "Conduct training sessions", "Access to law libraries"])
},
// ORACLE LODGE DEGREES (8-10) - Highest Client Mastery
{
degreeNumber: 8,
name: "Wisdom Keeper",
title: "Guardian of Ancient Justice",
description: "Preserve and share the accumulated wisdom of the justice-seeking community while guiding major initiatives.",
requirements: JSON.stringify({
actions: ["Document community history", "Guide major reforms", "Cross-mentor with lawyers"],
knowledge: ["Historical precedents", "Wisdom preservation", "Cross-professional mentoring"],
xp: 7500,
helpedOthers: 100,
reformProposals: 5,
wisdomScore: 4.8,
civicEngagement: 90
}),
xpRequired: 7500,
track: "CLIENT",
lodgeLevel: "ORACLE",
isSecret: true,
ceremonialText: "You are now a Wisdom Keeper, entrusted with preserving the sacred knowledge of our community. Your guidance shapes the future of justice.",
symbol: "🔮",
color: "#7C3AED",
privileges: JSON.stringify(["Archive access", "Cross-professional mentoring", "Strategic planning participation"])
},
{
degreeNumber: 9,
name: "Justice Oracle",
title: "Seer of Equity",
description: "Provide guidance on complex justice matters and serve as a bridge between the legal professional and client communities.",
requirements: JSON.stringify({
actions: ["Provide expert guidance", "Mediate complex cases", "Strategic consultation"],
knowledge: ["Complex case analysis", "Strategic thinking", "Professional consultation"],
xp: 12000,
helpedOthers: 200,
wisdomScore: 4.9,
observationHours: 100,
civicEngagement: 95
}),
xpRequired: 12000,
track: "CLIENT",
lodgeLevel: "ORACLE",
isSecret: true,
ceremonialText: "As a Justice Oracle, you possess the sight to see beyond immediate circumstances to the deeper truths of equity. Your counsel is sought by all.",
symbol: "🦉",
color: "#BE185D",
privileges: JSON.stringify(["Oracle consultation rights", "Complex case mediation", "Professional advisory role"])
},
{
degreeNumber: 10,
name: "Sovereign Justice Keeper",
title: "Master of the People's Justice",
description: "The highest degree for clients - ultimate mastery of justice advocacy, system reform, and community leadership.",
requirements: JSON.stringify({
actions: ["Lead major reform initiatives", "Establish community standards", "Transcend client-lawyer divide"],
knowledge: ["Master-level justice theory", "Community leadership", "Systemic change"],
xp: 20000,
helpedOthers: 500,
reformProposals: 10,
wisdomScore: 5.0,
observationHours: 200,
civicEngagement: 100
}),
xpRequired: 20000,
track: "CLIENT",
lodgeLevel: "ORACLE",
isSecret: true,
ceremonialText: "You have achieved the highest honor as Sovereign Justice Keeper. You transcend the boundaries between seeker and provider, becoming a master of justice itself.",
symbol: "👑",
color: "#DC2626",
privileges: JSON.stringify(["Supreme advisory role", "Community governance", "Cross-track leadership", "Ultimate wisdom keeper"])
}
];
// Client-specific lodges
const clientLodges = [
{
name: "Civic Lodge of Truth Seekers",
description: "The foundational lodge where all justice seekers begin their journey. Open to all who wish to understand and participate in justice.",
lodgeLevel: "CIVIC",
track: "CLIENT",
minimumDegree: 1,
maximumMembers: null, // Unlimited
isSecret: false,
meetingSchedule: JSON.stringify({
frequency: "Weekly",
day: "Sunday",
time: "19:00",
duration: "90 minutes"
}),
meetingLocation: "Virtual Community Hall"
},
{
name: "Reformer Lodge of Sacred Change",
description: "Secret lodge for advanced justice advocates working on system reform and community leadership.",
lodgeLevel: "REFORMER",
track: "CLIENT",
minimumDegree: 4,
maximumMembers: 200,
isSecret: true,
meetingSchedule: JSON.stringify({
frequency: "Bi-weekly",
day: "Tuesday",
time: "20:00",
duration: "2 hours"
}),
meetingLocation: "Encrypted Virtual Chamber"
},
{
name: "Oracle Lodge of Ultimate Wisdom",
description: "The most exclusive client lodge for master-level justice keepers who bridge all communities.",
lodgeLevel: "ORACLE",
track: "CLIENT",
minimumDegree: 8,
maximumMembers: 50,
isSecret: true,
meetingSchedule: JSON.stringify({
frequency: "Monthly",
day: "First Saturday",
time: "18:00",
duration: "3 hours"
}),
meetingLocation: "Sacred Digital Temple"
},
{
name: "Unity Lodge of Justice Harmony",
description: "Mixed lodge where high-degree clients and lawyers collaborate on major justice initiatives.",
lodgeLevel: "MIXED",
track: "MIXED",
minimumDegree: 5, // Degree 5+ for both tracks
maximumMembers: 100,
isSecret: true,
meetingSchedule: JSON.stringify({
frequency: "Monthly",
day: "Third Thursday",
time: "19:30",
duration: "2.5 hours"
}),
meetingLocation: "Cross-Professional Sanctuary"
}
];
async function seedClientDegrees() {
console.log('🌱 Seeding client degrees and lodges...');
try {
// Create client degrees
console.log('📜 Creating 10 client degrees...');
for (const degree of clientDegrees) {
const created = await prisma.societyDegree.create({
data: degree
});
console.log(`✅ Created ${degree.track} degree ${degree.degreeNumber}: ${degree.name}`);
}
// Create client-specific lodges
console.log('🏛️ Creating client lodges...');
for (const lodge of clientLodges) {
const created = await prisma.lodge.create({
data: lodge
});
console.log(`✅ Created ${lodge.track} lodge: ${lodge.name}`);
}
// Set up degree progression chains for client track
console.log('🔗 Setting up client degree progression...');
for (let i = 1; i < clientDegrees.length; i++) {
const currentDegree = await prisma.societyDegree.findFirst({
where: { degreeNumber: i + 1, track: 'CLIENT' }
});
const previousDegree = await prisma.societyDegree.findFirst({
where: { degreeNumber: i, track: 'CLIENT' }
});
if (currentDegree && previousDegree) {
await prisma.societyDegree.update({
where: { id: currentDegree.id },
data: { previousDegreeId: previousDegree.id }
});
console.log(`🔗 Linked degree ${i + 1} to previous degree ${i}`);
}
}
console.log('✨ Client society system seeded successfully!');
console.log(`📊 Created ${clientDegrees.length} client degrees and ${clientLodges.length} lodges`);
} catch (error) {
console.error('❌ Error seeding client degrees:', error);
throw error;
}
}
async function main() {
await seedClientDegrees();
await prisma.$disconnect();
}
main()
.catch((e) => {
console.error(e);
process.exit(1);
});