Biopharma Strategy Platform
An ISO 27001-certified strategy SaaS for enterprise pharma: a schema-driven clone engine and dependency-aware archive/restore.
- Role
- Originating engineer on two subsystems
- Period
- 2024 - present
- Ownership
- 1 of 3 core engineers
- Stack
- React · TypeScript · Node · GraphQL · Prisma · PostgreSQL · AWS
Problem
A pharma brand strategy is a graph of artifacts that teams finalize, reuse and revise for years. Two operations on it are easy to get wrong: starting a new strategy from a finished one, and removing something other artifacts depend on.
A hand-written copy drifts as soon as the schema changes. Deleting without knowing the dependents loses work that a regulated client cannot lose.
Constraints
The platform is ISO 27001 certified and in private beta with enterprise pharma clients, so destructive actions have to be reversible and admin and user actions have to be attributable. Three core engineers cover the whole product, so a subsystem cannot need a specialist to operate it.
Decisions
- The clone walks Prisma's DMMF, the generated data-model metadata, instead of hand-written per-model code.
- The archive cascades across the dependents so a restore brings the whole set back together.
Architecture
Clone engine: the schema's metadata drives the copy, so a new field or relation is cloned without anyone adding code for it.
Dependency subsystem: a registry describes which entities depend on which, exposed through its own GraphQL contract and resolver and rendered by a registry-driven modal. Finalized entities with dependents warn before an archive or a delete.
Elsewhere in the product I contributed to real-time collaboration over GraphQL subscriptions, OpenAI-backed generation features, and platform security work on ownership checks and JWT sessions.
Outcome
- Two subsystems originated from scratch and in the product: the clone engine and the Edge archive/restore isolation system.
- Destructive actions on finalized work warn first, then cascade and reverse as a set.
- Cloning survives schema change: the model metadata drives the copy, so new fields travel without new code.