Most engineering decisions can be revisited. A small number cannot, because data accumulates on top of them. When I began building Erudyt, a multi-tenant school management and analytics platform on FastAPI and PostgreSQL, I listed the decisions I would not be able to change cheaply and made them first.
UUID primary keys
Sequential integers are guessable, which weakens any endpoint that exposes an id, and they collide when records from separate tenants are merged. UUIDs cost more storage and larger indexes, which I accepted. Changing key type later means rewriting every foreign key that references it.Soft deletes
A student's results are a historical record. Soft deletion preserves that history, but it has costs: every query needs a filter, unique constraints must account for deleted rows, and data protection obligations mean you still need a deliberate, audited purge path. I designed that path rather than leaving it for later.Tenant isolation at the database
Application code will eventually contain a mistake, and in a multi-tenant system a mistake can expose one school's records to another. PostgreSQL row-level security enforces isolation at the data layer. The caveat is that a policy no one tests is only an intention, so isolation tests belong in the suite from the beginning.Owning authentication
I implemented JWT authentication in FastAPI to avoid vendor lock-in. This trades convenience for responsibility: hashing, token lifetime, rotation and revocation become my problem permanently. It suits a team prepared to carry that, and not one hoping to avoid it.
Why it matters beyond engineering
Zimbabwe's Cabinet approved a National AI Charter this week, built on transparency, inclusion and human-centred principles. Governance is arriving alongside adoption, and systems that hold children's records will increasingly be asked to explain how they work. Early structural decisions make that explanation straightforward.
The rule
Before the first table exists, list what you could not change in two years, and spend your slowest effort there. Move quickly on everything else.
