# AUREN Guardian AI Platform
## Hardwired Data & Technical Specifications

**Version:** 1.0
**Date:** December 2025

---

# HARDWIRED DATA REQUIREMENTS

## 1. LEGISLATIVE DATABASE

### Required Complete Legislative Text

**UK GDPR & Data Protection Act 2018**
- All 99 Articles (child-relevant sections)
- All Recitals
- All Schedules
- ICO Guidance Documents (complete collection)
- Enforcement history and case law

**Children's Code (Age Appropriate Design Code)**
- All 15 Standards (complete text)
- ICO implementation guidance
- Platform compliance examples
- Enforcement actions

**Online Safety Act 2023**
- Complete Act (all parts, sections, schedules)
- Threshold Conditions Regulations 2025
- Ofcom Codes of Practice (as released)
- Implementation timeline
- Category definitions and thresholds

**KCSIE (Keeping Children Safe in Education)**
- KCSIE 2024 (complete statutory guidance)
- KCSIE 2025 (complete statutory guidance)
- Change comparison document
- DfE Generative AI guidance
- Filtering and monitoring standards

**Devolved Legislation**

SCOTLAND:
- Getting It Right for Every Child (GIRFEC) framework
- National Guidance for Child Protection in Scotland
- SHANARRI wellbeing indicators (complete)

WALES:
- Social Services and Well-being (Wales) Act 2014 (complete)
- Wales Safeguarding Procedures (complete)
- "More Than Just Words" Welsh language framework

NORTHERN IRELAND:
- Children (Northern Ireland) Order 1995 (complete)
- SBNI procedures and guidance

### Data Structure for Each Legislative Item

```json
{
  "id": "unique-identifier",
  "slug": "url-friendly-name",
  "title": "Official Title",
  "jurisdiction": ["UK" | "England" | "Scotland" | "Wales" | "Northern Ireland"],
  "type": ["Act" | "Statutory Guidance" | "Code of Practice" | "Regulation"],
  "status": ["Active" | "Pending" | "Repealed"],
  "effective_date": "YYYY-MM-DD",
  "last_amended": "YYYY-MM-DD",
  "source_url": "Official government source",
  "full_text": "Complete legislative text",
  "plain_english_summary": "Accessible summary for parents",
  "key_points": ["Bullet list of essentials"],
  "applies_to": ["Data controllers", "Schools", "Parents", etc.],
  "age_thresholds": [13, 16, 18],
  "ai_specific_provisions": true/false,
  "related_legislation": ["IDs of related laws"],
  "enforcement_authority": "ICO | Ofcom | Local authority",
  "penalties": {
    "max_fine_gbp": 17500000,
    "max_fine_percentage": 4,
    "other_penalties": ["Service restriction", "Criminal prosecution"]
  },
  "compliance_checklist": ["Item 1", "Item 2", ...],
  "case_law": [
    {
      "case_id": "ico-tiktok-2023",
      "date": "2023-04-04",
      "parties": "ICO vs TikTok",
      "outcome": "£12.7m fine",
      "summary": "Brief description",
      "implications": "What it means for others"
    }
  ],
  "last_verified": "YYYY-MM-DD",
  "version": 2
}
```

---

## 2. PLATFORM SAFETY DATABASE

### Required Platforms (Minimum 50)

**Social Media:**
- TikTok, Snapchat, Instagram, Facebook, WhatsApp, Telegram, Discord, X/Twitter, Threads, BeReal, Reddit

**Gaming:**
- Roblox, Minecraft, Fortnite, Among Us, FIFA/EA Sports, Call of Duty series, Grand Theft Auto series, League of Legends, Valorant

**AI Systems:**
- ChatGPT, Character.AI, Google Gemini, Microsoft Copilot, Claude, Snapchat My AI, Meta AI, Perplexity, Pi, Replika

**Messaging:**
- WhatsApp, Telegram, Signal, iMessage, Messenger

**Video/Streaming:**
- YouTube, YouTube Kids, Twitch, Netflix, Disney+, Amazon Prime

### Complete Data Required for Each Platform

```json
{
  "id": "uuid",
  "slug": "platform-name",
  "name": "Official Platform Name",
  "type": "social_media | gaming | ai | messaging | video",
  "ownership": {
    "company": "Parent Company Name",
    "headquarters": "Country",
    "publicly_traded": true/false
  },
  "age_restrictions": {
    "minimum_age": 13,
    "age_verification_method": "self_declaration | email | ID | biometric | none",
    "age_verification_robustness": "strong | medium | weak | none",
    "enforcement_quality": "Description of how well age limits are enforced"
  },
  "user_statistics": {
    "global_users_millions": 1000,
    "uk_users_millions": 23,
    "child_users_uk_percentage": 25,
    "age_distribution": {"13-15": 30, "16-17": 20}
  },
  "safety_features": [
    {
      "feature_name": "Family Pairing",
      "availability": "All users 13-17",
      "setup_difficulty": "Medium (10 minutes)",
      "effectiveness": "Medium - Child can disable with notification",
      "features": ["Screen time limits", "Content filtering", "Direct message control"],
      "limitations": ["Child notification on setup", "Can be circumvented"],
      "setup_url": "/parent-portal/devices/tiktok/family-pairing",
      "last_verified": "2024-12-01"
    }
  ],
  "known_risks": [
    {
      "risk_type": "algorithmic_harm",
      "severity": "HIGH",
      "affected_ages": [13, 14, 15, 16, 17],
      "description": "Algorithm pushes harmful mental health content",
      "evidence": [
        {
          "source": "Amnesty International",
          "date": "2023-11",
          "finding": "Harmful content within 20 minutes for teens"
        }
      ],
      "mitigation": "Use with Family Pairing + content filtering + regular check-ins"
    }
  ],
  "regulatory_actions": [
    {
      "date": "2023-04-04",
      "authority": "ICO",
      "action_type": "Fine",
      "amount_gbp": 12700000,
      "reason": "Misuse of data from 1.4M UK children under 13",
      "outcome": "Paid + policy changes required",
      "changes_made": ["Age verification improved", "Data retention reduced"]
    }
  ],
  "parental_controls": {
    "available": true,
    "setup_time_minutes": 10,
    "features": {
      "screen_time_limits": true,
      "content_filtering": true,
      "direct_message_control": true,
      "location_tracking": false,
      "purchase_controls": true,
      "conversation_monitoring": false
    },
    "access_methods": ["In-app", "Separate parent app", "Web dashboard"],
    "child_awareness": "Child is notified when parental controls activated",
    "bypass_difficulty": "Medium - Tech-savvy teens can circumvent"
  },
  "data_privacy": {
    "data_collected": ["Name", "Age", "Location", "Viewing history", "Biometric (face)"],
    "data_retention_days": 90,
    "data_shared_with": ["Advertisers", "Third-party partners"],
    "data_used_for_ai_training": true,
    "user_can_delete": true,
    "deletion_method": "In-app settings → Account → Delete data",
    "gdpr_compliant": "Claimed but contested"
  },
  "content_moderation": {
    "methods": ["AI automated", "Human review", "User reporting"],
    "response_time": "Automated: instant, Human review: 24-48 hours",
    "effectiveness_rating": 6,
    "known_gaps": ["AI-generated content slips through", "Coded language not caught"]
  },
  "auren_safety_score": {
    "overall_score": 52,
    "breakdown": {
      "technical_safety": 15,
      "privacy_protection": 18,
      "child_development": 10,
      "governance": 9
    },
    "certification": "NOT RECOMMENDED (below 60)"
  },
  "auren_recommendations": {
    "ages_0_5": {
      "verdict": "NOT_RECOMMENDED",
      "reasoning": "No content suitable for this developmental stage"
    },
    "ages_5_11": {
      "verdict": "NOT_RECOMMENDED",
      "reasoning": "Below platform minimum age. Content not developmentally appropriate."
    },
    "ages_11_13": {
      "verdict": "NOT_RECOMMENDED",
      "reasoning": "Below Terms of Service age 13"
    },
    "ages_13_16": {
      "verdict": "CONDITIONAL",
      "conditions": [
        "Family Pairing enabled and verified weekly",
        "Parent educated on algorithmic harms",
        "Daily time limit maximum 1 hour",
        "Weekly conversation about content consumed",
        "Restricted Mode enabled"
      ],
      "reasoning": "High algorithmic risk but can be managed with robust parental involvement"
    }
  },
  "resources": {
    "setup_guide": "/parent-portal/platforms/tiktok/setup",
    "incident_response": "/parent-portal/crisis/platforms/tiktok",
    "platform_safety_center": "https://www.tiktok.com/safety",
    "platform_support": "https://support.tiktok.com"
  },
  "screenshots": {
    "ios": [
      {"version": "iOS 18", "feature": "Family Pairing", "url": "/assets/screenshots/tiktok-ios18-family-pairing.png"}
    ],
    "android": [
      {"version": "Android 15", "feature": "Family Pairing", "url": "/assets/screenshots/tiktok-android15-family-pairing.png"}
    ]
  },
  "last_updated": "2024-12-01",
  "update_frequency": "Monthly",
  "next_review": "2025-01-01"
}
```

### Screenshot Management System

**Requirements:**
- OS-specific screenshots (iOS 17, iOS 18, Android 14, Android 15, etc.)
- Feature-specific screenshots (setup steps, safety settings, parental controls)
- Automated version detection (flag when new OS/app version released)
- Community contribution system for new screenshots
- Quality standards (resolution, annotations, clarity)

---

## 3. THREAT INTELLIGENCE DATABASE

### Threat Categories & Update Protocols

**AI-Related Threats** (Daily monitoring):
- AI-generated CSAM
- Deepfake creation tools
- AI-powered grooming
- AI academic cheating tools
- AI companion dependency

**Platform-Specific Threats** (Weekly monitoring):
- Viral challenges (TikTok, YouTube)
- New grooming tactics (Snapchat, Discord)
- Gaming exploitation methods (Roblox, Minecraft)
- Messaging scams (WhatsApp, Telegram)

**Social Engineering** (Weekly monitoring):
- Sextortion campaigns
- Phishing targeting children
- Account takeover methods
- Impersonation scams

**Traditional Harms (Evolving)** (Monthly review):
- Cyberbullying techniques
- Self-harm content networks
- Eating disorder communities
- Extremist recruitment

### Threat Data Structure

```json
{
  "id": "uuid",
  "slug": "threat-name",
  "title": "Public-Facing Threat Name",
  "category": "ai_csam | deepfake | sextortion | challenge | grooming | etc.",
  "severity": "CRITICAL | HIGH | MEDIUM | LOW",
  "status": "ACTIVE | MONITORING | RESOLVED",
  "first_detected": "YYYY-MM-DD",
  "last_incident": "YYYY-MM-DD",
  "affected_platforms": ["TikTok", "Snapchat", "Instagram"],
  "affected_ages": [11, 12, 13, 14, 15, 16, 17],
  "affected_demographics": {
    "primary": ["Girls", "LGBTQ+ youth"],
    "secondary": ["All children"]
  },
  "geographic_spread": ["UK", "US", "Global"],
  "description": "Parent-accessible description of threat",
  "how_it_works": "Technical explanation in plain English",
  "prevalence": {
    "uk_incidents_known": 150,
    "uk_incidents_estimated": 5000,
    "global_incidents": 50000,
    "sources": ["IWF", "NSPCC", "Police data"]
  },
  "harms": [
    "Psychological trauma",
    "Sextortion/blackmail",
    "Reputation damage",
    "School disruption",
    "Legal consequences"
  ],
  "legal_status": "Illegal under Protection of Children Act 1978",
  "detection": {
    "parent_warning_signs": [
      "Child mentions altered images of classmates",
      "Sudden social media withdrawal",
      "Unexplained distress",
      "School incidents reported"
    ],
    "school_warning_signs": [
      "Multiple students reporting same issue",
      "Bullying involving images",
      "Social media sharing patterns"
    ],
    "technical_indicators": [
      "Specific app installations",
      "Search history patterns",
      "Communication changes"
    ]
  },
  "prevention": {
    "parent_actions": [
      "Privacy settings: Friends-only photo visibility",
      "Regular conversations about digital content manipulation",
      "School communication about prevention education"
    ],
    "school_actions": [
      "Digital literacy curriculum inclusion",
      "Assembly/awareness raising",
      "Clear reporting mechanisms",
      "Policy updates"
    ],
    "platform_actions": [
      "Report mechanisms",
      "Content takedown",
      "Account bans"
    ]
  },
  "response_protocol": {
    "immediate_actions": [
      "Do not share images further",
      "Screenshot evidence (without viewing if CSAM)",
      "Block perpetrator",
      "Report to platform",
      "Report to school",
      "Emotional support for victim"
    ],
    "short_term_actions": [
      "Report to CEOP if criminal",
      "Report to IWF if CSAM",
      "Legal advice if needed",
      "Counseling for victim",
      "Evidence preservation for police"
    ],
    "long_term_actions": [
      "Monitor for recurrence",
      "School policy updates",
      "Community education",
      "Victim ongoing support"
    ]
  },
  "resources": [
    {
      "title": "IWF Report on AI-Generated CSAM",
      "url": "https://www.iwf.org.uk/...",
      "type": "Research Report",
      "date": "2024-10"
    },
    {
      "title": "CEOP Deepfake Reporting Guide",
      "url": "https://www.ceop.police.uk/...",
      "type": "Official Guidance",
      "date": "2024-11"
    }
  ],
  "related_threats": ["threat-id-1", "threat-id-2"],
  "alert_history": [
    {
      "date": "2024-12-11",
      "channel": "Email, Homepage banner",
      "recipients": 15000,
      "effectiveness": "High engagement, 45% click-through"
    }
  ],
  "last_updated": "2024-12-15",
  "next_review": "2025-01-15"
}
```

### Threat Monitoring Automation

**Sources to Monitor:**
- IWF monthly reports (automated scraping)
- NSPCC press releases (RSS)
- Ofcom research (API where available)
- CEOP bulletins (email parsing)
- Academic databases (arXiv, SSRN)
- News aggregators (BBC, Guardian, tech press APIs)
- Social media (Twitter/X API, Reddit monitoring)
- School incident reports (anonymized submissions)

**Alert Triggers:**
- New threat severity CRITICAL → Immediate homepage banner + email blast
- New threat severity HIGH → Homepage listing + weekly email digest
- Updated threat (new platforms/ages) → Update existing alerts
- Threat resolved → Notification + archive

---

## 4. SUPPORT SERVICES DATABASE

### Required UK Support Services (100+ entries)

**National Services:**
- CEOP, IWF, Report Remove, Childline, NSPCC, Samaritans, YoungMinds, The Mix, Papyrus, BEAT (eating disorders), Frank (drugs), Brook (sexual health)

**Regional Mental Health:**
- NHS England CAMHS by region (all trusts)
- NHS Scotland child mental health
- NHS Wales child mental health
- NHS Northern Ireland child mental health

**Local Authority Services:**
- Family Support Services (all 151 English local authorities)
- Social Work Services (Scotland, Wales, NI)
- Local Safeguarding Partnerships

**Education Support:**
- Educational psychology services (by region)
- School nursing (contact by area)

### Support Service Data Structure

```json
{
  "id": "uuid",
  "slug": "service-name",
  "name": "Official Service Name",
  "organization": "Parent Organization",
  "jurisdiction": "UK-wide | England | Scotland | Wales | Northern Ireland | Regional",
  "region": "North East | London | etc. (if regional)",
  "type": "law_enforcement | mental_health | helpline | counseling | legal | advocacy",
  "primary_purpose": "Brief description of what they do",
  "when_to_use": [
    "Suspected online grooming",
    "Child sexual abuse imagery",
    "Mental health crisis",
    "etc."
  ],
  "eligibility": {
    "age_range": [0, 18] or "Any age",
    "location": "UK-wide or specific regions",
    "other": "Specific eligibility criteria"
  },
  "contact": {
    "phone": "0800 1111",
    "phone_cost": "Free from landlines and mobiles",
    "email": "help@example.org",
    "website": "https://www.example.org",
    "report_url": "https://www.example.org/report",
    "chat": "Live chat available on website",
    "text": "Text 85258 for crisis support",
    "hours": "24/7 | Mon-Fri 9am-5pm | etc.",
    "languages": ["English", "Welsh", "Polish", "Urdu"]
  },
  "what_they_do": "Detailed explanation of their role and services",
  "what_to_prepare": [
    "Screenshots of concerning content",
    "Dates and times",
    "Platform names and usernames",
    "Child's description of events"
  ],
  "what_happens_next": "Explanation of their process after contact",
  "response_time": "Immediate | Within 24 hours | Within 5 days | etc.",
  "anonymity": "Can report anonymously | Name required | Flexible",
  "confidentiality": "Explanation of confidentiality limits",
  "will_they_contact_police": "Explanation of mandatory reporting",
  "accessibility": {
    "wheelchair_accessible": true,
    "bsl_interpreter": "Available on request",
    "hearing_loop": true,
    "easy_read_materials": true,
    "translation_services": ["Polish", "Urdu", "etc."]
  },
  "audience": {
    "for_children": true,
    "for_parents": true,
    "for_professionals": true
  },
  "related_services": ["service-id-1", "service-id-2"],
  "testimonials": [
    {
      "text": "Anonymized testimonial quote",
      "source": "Parent, age 40, London",
      "date": "2024-10"
    }
  ],
  "last_verified": "2024-12-01",
  "verification_frequency": "Quarterly",
  "next_verification": "2025-03-01"
}
```

### Verification Protocol

**Quarterly Verification (Every 3 months):**
- Phone all numbers to confirm active
- Email all addresses to confirm receipt
- Check websites are live and content current
- Verify hours and services unchanged
- Update any changes immediately

**Immediate Update Triggers:**
- Service closure or merger
- Contact detail changes
- Service scope changes
- Regulatory changes affecting service

---

## 5. RESEARCH DATABASE

### Required Research Papers (200+ minimum)

**Categories:**
1. Developmental psychology & children's digital behavior
2. AI safety for children
3. Platform harms (social media, gaming)
4. Interventions & protective factors
5. Regulatory impact studies
6. Neuroscience of adolescent digital behavior

### Research Entry Structure

```json
{
  "id": "uuid",
  "slug": "author-year-short-title",
  "title": "Full Paper Title",
  "authors": ["Author A", "Author B"],
  "institution": "University/Organization",
  "publication_date": "YYYY-MM",
  "journal": "Journal Name",
  "doi": "10.xxxx/xxxxx",
  "url": "https://...",
  "study_type": "Empirical | Review | Meta-analysis | Theoretical | Policy analysis",
  "methodology": "RCT | Observational | Survey | Interview | Mixed methods",
  "sample": {
    "size": 120,
    "age_range": [13, 17],
    "location": "United Kingdom",
    "demographics": "Description"
  },
  "key_findings": [
    "Finding 1 with data",
    "Finding 2 with data",
    "Finding 3 with data"
  ],
  "relevance_to_auren": "How this research informs AUREN recommendations",
  "practical_implications": [
    "What parents should know",
    "What schools should do",
    "What policymakers should consider"
  ],
  "limitations": [
    "Small sample size",
    "US-based (may not generalize to UK)",
    "Short-term study"
  ],
  "quality_assessment": {
    "methodology_rating": 8,
    "sample_quality": 7,
    "generalizability": 6,
    "overall_rating": 7,
    "rated_by": "AUREN Research Committee",
    "rated_date": "2024-12-01"
  },
  "auren_applications": [
    "Parent Portal: Ages 11-16 section",
    "Educator Portal: Staff training module",
    "Legal Library: Evidence base"
  ],
  "full_text": {
    "available": true,
    "access": "Open access | Institutional subscription required",
    "stored_locally": true,
    "file_path": "/research-pdfs/author-2024.pdf"
  },
  "abstract": "Full abstract text",
  "plain_english_summary": "Accessible summary for parents",
  "citation_apa": "Author, A., & Author, B. (2024). Title. Journal, 10(2), 100-120. https://doi.org/...",
  "citation_harvard": "Author, A. and Author, B. (2024) 'Title', Journal, 10(2), pp. 100-120.",
  "related_research": ["research-id-1", "research-id-2"],
  "tags": ["ai_safety", "adolescent_development", "social_media", "mental_health"],
  "last_reviewed": "2024-11-15",
  "review_frequency": "Annual",
  "next_review": "2025-11-15"
}
```

---

# TECHNICAL ARCHITECTURE

## 1. TECHNOLOGY STACK

**Frontend:**
```
Framework: Next.js 14.2+ (React 18+)
Styling: Tailwind CSS 3.4+
Components: Radix UI (headless, accessible)
Forms: React Hook Form + Zod
State: Zustand + TanStack Query
Animation: Framer Motion (minimal, purposeful)
Testing: Jest + React Testing Library + Playwright
```

**Backend:**
```
Runtime: Node.js 20 LTS
API: Next.js API Routes + tRPC
Database: PostgreSQL 15+
ORM: Prisma
Search: Meilisearch (lightweight) or Elasticsearch (if scale requires)
Cache: Redis 7+
Queue: BullMQ (for background jobs)
Storage: AWS S3 or Cloudflare R2
```

**AI/ML:**
```
LLM: Anthropic Claude 3.5 Sonnet (primary)
      OpenAI GPT-4 (fallback)
Vector DB: Pinecone or Qdrant
Embeddings: OpenAI text-embedding-3-small
Framework: LangChain
```

**Infrastructure:**
```
Hosting: Vercel (Next.js optimized)
CDN: Cloudflare (DDoS protection, caching, workers)
Monitoring: Sentry (errors) + Vercel Analytics (performance)
Uptime: Better Uptime or Uptime Robot
Logs: Better Stack (Logtail)
```

**Development:**
```
Version Control: Git + GitHub
CI/CD: GitHub Actions → Vercel
Code Quality: ESLint + Prettier + Husky
Documentation: Storybook (component library)
```

---

## 2. DATABASE SCHEMA (PostgreSQL)

[Due to length constraints, providing core tables structure]

```sql
-- Core legislative data
CREATE TABLE legislation (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    slug TEXT UNIQUE NOT NULL,
    title TEXT NOT NULL,
    jurisdiction TEXT[] NOT NULL,
    type TEXT NOT NULL,
    status TEXT NOT NULL,
    effective_date DATE,
    last_amended DATE,
    source_url TEXT,
    full_text TEXT NOT NULL,
    plain_english_summary TEXT,
    key_points TEXT[],
    applies_to TEXT[],
    ai_specific BOOLEAN DEFAULT FALSE,
    enforcement_authority TEXT,
    penalties JSONB,
    related_legislation UUID[],
    case_law JSONB[],
    compliance_checklist JSONB,
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW(),
    last_verified DATE NOT NULL
);

-- Platforms
CREATE TABLE platforms (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    slug TEXT UNIQUE NOT NULL,
    name TEXT NOT NULL,
    type TEXT NOT NULL,
    ownership JSONB NOT NULL,
    age_restrictions JSONB NOT NULL,
    user_statistics JSONB,
    safety_features JSONB[],
    known_risks JSONB[],
    regulatory_actions JSONB[],
    parental_controls JSONB,
    data_privacy JSONB,
    content_moderation JSONB,
    auren_safety_score JSONB,
    auren_recommendations JSONB NOT NULL,
    resources JSONB,
    screenshots JSONB,
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW(),
    last_updated DATE NOT NULL,
    update_frequency TEXT,
    next_review DATE
);

-- Threats
CREATE TABLE threats (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    slug TEXT UNIQUE NOT NULL,
    title TEXT NOT NULL,
    category TEXT NOT NULL,
    severity TEXT NOT NULL,
    status TEXT NOT NULL,
    first_detected DATE NOT NULL,
    last_incident DATE,
    affected_platforms TEXT[],
    affected_ages INT[],
    affected_demographics JSONB,
    geographic_spread TEXT[],
    description TEXT NOT NULL,
    how_it_works TEXT,
    prevalence JSONB,
    harms TEXT[],
    legal_status TEXT,
    detection JSONB NOT NULL,
    prevention JSONB NOT NULL,
    response_protocol JSONB NOT NULL,
    resources JSONB[],
    related_threats UUID[],
    alert_history JSONB[],
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW(),
    last_updated DATE NOT NULL,
    next_review DATE
);

-- Support services
CREATE TABLE support_services (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    slug TEXT UNIQUE NOT NULL,
    name TEXT NOT NULL,
    organization TEXT,
    jurisdiction TEXT NOT NULL,
    region TEXT,
    type TEXT NOT NULL,
    primary_purpose TEXT NOT NULL,
    when_to_use TEXT[] NOT NULL,
    eligibility JSONB,
    contact JSONB NOT NULL,
    what_they_do TEXT,
    what_to_prepare TEXT[],
    what_happens_next TEXT,
    response_time TEXT,
    anonymity TEXT,
    confidentiality TEXT,
    will_contact_police TEXT,
    accessibility JSONB,
    audience JSONB NOT NULL,
    related_services UUID[],
    testimonials JSONB[],
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW(),
    last_verified DATE NOT NULL,
    verification_frequency TEXT,
    next_verification DATE NOT NULL
);

-- Research papers
CREATE TABLE research (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    slug TEXT UNIQUE NOT NULL,
    title TEXT NOT NULL,
    authors TEXT[] NOT NULL,
    institution TEXT,
    publication_date DATE,
    journal TEXT,
    doi TEXT,
    url TEXT,
    study_type TEXT NOT NULL,
    methodology TEXT,
    sample JSONB,
    key_findings TEXT[] NOT NULL,
    relevance_to_auren TEXT NOT NULL,
    practical_implications TEXT[],
    limitations TEXT[],
    quality_assessment JSONB NOT NULL,
    auren_applications TEXT[],
    full_text JSONB,
    abstract TEXT,
    plain_english_summary TEXT,
    citation_apa TEXT NOT NULL,
    citation_harvard TEXT,
    related_research UUID[],
    tags TEXT[],
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW(),
    last_reviewed DATE NOT NULL,
    review_frequency TEXT,
    next_review DATE NOT NULL
);

-- Content (guides, checklists, videos)
CREATE TABLE content (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    slug TEXT UNIQUE NOT NULL,
    title TEXT NOT NULL,
    type TEXT NOT NULL,
    audience TEXT NOT NULL,
    age_group TEXT,
    category TEXT NOT NULL,
    summary TEXT,
    content TEXT NOT NULL,
    author TEXT,
    reviewed_by TEXT[],
    last_reviewed DATE,
    version INT DEFAULT 1,
    status TEXT DEFAULT 'published',
    views INT DEFAULT 0,
    downloads INT DEFAULT 0,
    helpful_votes INT DEFAULT 0,
    unhelpful_votes INT DEFAULT 0,
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW()
);

-- Indexes for performance
CREATE INDEX idx_legislation_slug ON legislation(slug);
CREATE INDEX idx_legislation_jurisdiction ON legislation USING GIN(jurisdiction);
CREATE INDEX idx_legislation_fulltext ON legislation USING GIN(to_tsvector('english', title || ' ' || full_text));

CREATE INDEX idx_platforms_type ON platforms(type);
CREATE INDEX idx_platforms_slug ON platforms(slug);

CREATE INDEX idx_threats_status ON threats(status);
CREATE INDEX idx_threats_severity ON threats(severity);
CREATE INDEX idx_threats_category ON threats(category);

CREATE INDEX idx_support_jurisdiction ON support_services(jurisdiction);
CREATE INDEX idx_support_type ON support_services(type);

CREATE INDEX idx_research_tags ON research USING GIN(tags);
CREATE INDEX idx_research_publication_date ON research(publication_date DESC);

CREATE INDEX idx_content_category ON content(category);
CREATE INDEX idx_content_audience ON content(audience);
CREATE INDEX idx_content_age_group ON content(age_group);
```

---

## 3. UPDATE & MAINTENANCE PROTOCOLS

**Daily:**
- Threat intelligence monitoring (automated)
- News aggregation for new threats
- Platform safety news
- Site uptime and performance

**Weekly:**
- Threat database updates
- Platform safety updates (if changes)
- Content analytics review
- User feedback review

**Monthly:**
- Platform database full review
- Screenshot updates (OS/app versions)
- Content freshness check
- SEO and accessibility audit

**Quarterly:**
- Legislative database verification
- Support services verification (all contacts)
- Research database additions
- Full site accessibility audit
- Security penetration testing

**Annually:**
- Complete content audit
- Research quality re-assessment
- Strategic review and planning
- Governance board review

