Architecture6 min read

Ecosystem Overview & Architecture

Understand how Schohrly pairs schema-isolated multi-tenant school portals with the public EduDiscover admissions marketplace.

Unified Two-Tier Platform Design

How isolated school operations sync cleanly with public family discovery.

Schohrly separates institutional operations from public school discovery while keeping both layers synchronized:

  1. 1Private Multi-Tenant ERP (`<school-slug>.schohrly.com`): Each onboarded institution operates inside its own dedicated web subdomain and PostgreSQL schema for students, staff, classes, exams, payroll, hostels, finance, and communications.
  1. 2Public EduDiscover Marketplace (`discovery.schohrly.com`): Families browse verified schools across cities and curricula, compare tuition ranges side by side on /compare, apply directly online on /apply/[slug], and sit scheduled entrance CBT exams.

When a school updates its profile, curriculum, scholarships, or open admission forms inside its dashboard, verified public metadata reflects in real time on EduDiscover.

note:Every school's student records, assessment scores, HR payroll, and accounting ledgers live in a dedicated PostgreSQL database schema—never shared with other institutions.

Schema-per-Tenant Data Isolation

Strict PostgreSQL schema boundaries across every school tenant.

Schohrly isolates data at the database schema level via django-tenants:

  • Dedicated Tenant Schemas: Each school gets an isolated PostgreSQL schema containing its own students, teachers, attendance logs, CBT question banks, fee structures, invoices, and audit trails.
  • Shared Public Schema: Stores subscription plans, global domain routing records, and public EduDiscover directory listings.
  • Custom Domain Support: Schools on eligible plans can map either <school-slug>.schohrly.com or an institutional custom domain while preserving strict tenant resolution.
LayerScopeManaged DataAccess Boundary
Public SchemaPlatform WideSubscription tiers, domain registry, public school directoryPublic endpoints & directory lookup
Tenant SchemaPer SchoolStudents, staff, grades, invoices, payroll, hostels, CBTAuthenticated users of that school only
Subdomain RouterPer RequestHost-based tenant resolution (<slug>.schohrly.com)Automatic isolation on API & UI

Primary, Secondary & Unified K-12 Support

Built to support primary schools, secondary colleges, and unified K-12 campuses.

During onboarding, institutions choose the school scope that matches their structure:

  • Primary Only (`primary_only`): Seeds Nursery/Reception and Primary 1–6 class structures.
  • Secondary Only (`secondary_only`): Seeds JSS 1–3 and SS 1–3 levels with department tracks.
  • Unified K-12 (`k12_combined`): Provisions both Early Years / Primary and Secondary divisions under a single campus dashboard and consolidated financial ledger.
Ecosystem Overview & Architecture | Schohrly Documentation