Blog · 2026-08-01

2025-11-12-my-stables-equestrian-app

--- title: "Building a premium equestrian management platform" slug: my-stables-equestrian-app category: "Project" date: 2025-11-12 standfirst: "A full SaaS equestrian management application built for stables, horse owners, and yard managers — mobile-first, built on Next.js and Supabase, with production-grade row-level security and a proper database architecture." tags: - Case Study - TypeScript - Next.js - SaaS published: false featured: false ---

This is the most technically ambitious project I've built to date — a full SaaS equestrian management application built for stables, horse owners, and yard managers who deserve software that actually matches their needs.

The equestrian sector is massively underserved by modern software. Most yard management tools are clunky, desktop-only, or outrageously expensive. My Stables App is built mobile-first from the ground up on Next.js App Router, TypeScript, Tailwind CSS, and Supabase — a stack that can genuinely scale.

The database architecture was the most complex part of this build. Supabase's Row Level Security policies are powerful but unforgiving. I hit an infinite recursion issue in the RLS policy chain early on — a common trap where a policy references a table that triggers another policy that references back. Debugging and resolving that taught me more about how Postgres evaluates policy chains than any documentation could.

The result is a hardened, verified security model with multiple SQL verification scripts to confirm policies are working correctly before any data touches production. The DATABASE_SCHEMA.md and REGISTRATION_TESTING\_GUIDE.md in the repository reflect how seriously I took the data design — this isn't a throwaway demo.

What it manages so far: horse profiles and health records, stabling and yard management, user accounts with role-based access control, and a full registration and onboarding flow. Deployed on Netlify.

What's next: feeding schedules, vet visit logging, competition tracking, and invoicing for livery clients. The foundation is solid — everything else is additive from here.

By Lee Day · leeday.uk · UK-wide support

Get in touch