Skip to content

Data and platforms · 15 August 2026 · 4 min read

Modelling complicated deal structures in a database

How we modelled football-finance deals for SportsFi: strict tables for what every deal shares, and checked data for what makes each type different.

In this article
  1. The two tempting shortcuts
  2. The approach that works
  3. Why it pays off
  4. What we'd tell anyone modelling deals

When every deal is a little different, the temptation is to store each one as a free-form blob and sort it out later. The better answer is to model what every deal shares strictly and keep what makes each one different as checked data, so new kinds of deal arrive without a rebuild.

Deal-heavy products are a good place to learn this, because very little about a deal is standard. The parties change from one deal to the next. Money can move in one payment or in stages over several years. Two deals that look alike on the surface can carry quite different terms underneath, and the business keeps inventing new kinds as its market moves.

We met this head-on when SportsFi came to us needing a platform for secure contracts and deal execution in football transfers and financing. The platform now runs multi-million deals, and SportsFi has more than £500m of transaction value in its sales pipeline. The data model underneath is the decision that made that possible, and the one we'd most want to get right again.

The two tempting shortcuts

The first shortcut is a single generic deal table with a free-text or JSON column for "the details". It's quick to start and slow to live with. Six months in, nobody can say for certain which details a given kind of deal requires, reports turn into guesswork, and every screen has to defend itself against data in shapes nobody expected.

The second shortcut is the opposite: a separate set of tables for every kind of deal. It looks rigorous, but each new product then needs new tables, new screens and new code, and the parts that every deal shares slowly drift apart.

The approach that works

Separate what every deal has in common from what makes each kind of deal different.

The common shape belongs in ordinary, strictly structured tables. Whatever every screen, report and permission check relies on, such as who the parties are, what stage the deal has reached and which version of the agreement is current, should never be optional or free-form.

The differences belong in described data. Each kind of deal is defined by the terms it requires, and each kind of term carries its own rules for what a valid value looks like. When someone enters a value, the platform checks it against those rules before saving it. The values are flexible, but they're never free-form.

Storing flexible values as JSON is fine, as long as every value is checked on the way in. A payment schedule with a negative amount should be turned away at the door, instead of turning up in a report three months later.

Why it pays off

New kinds of deal stop being projects. When the business needs a product it didn't have at launch, adding it means describing its terms and their rules, not designing new tables and rewriting the screens around them. A clear list of required terms also keeps forms short: people are asked for what a deal actually needs, not for every field anyone ever added.

The structure also makes the platform easier to trust. When every term is versioned, you can see what a value was before, who proposed the change and which version of the agreement it was accepted in. And when the rules about who may see or take part in a deal sit next to the deal data, they're applied the same way everywhere, instead of being scattered across the interface.

What we'd tell anyone modelling deals

The same problem turns up wherever deals are bespoke: insurance policies, property transactions, lending and complex B2B contracts all have it, and the same habits carry across.

  • Find the shape every deal shares. Model it strictly. That's where your reports and permissions will live.

  • Turn the differences into described data. A list of required terms for each kind of deal, with rules for each term, beats both a free-form blob and a table per product.

  • Version the terms, not just the deal. Disputes and audits ask about a specific clause on a specific date.

  • Use the business's words. If the business calls something a drawdown, so should the database. It saves a translation layer in every conversation.

The data model is the most expensive decision to change once real deals depend on it. It's worth an extra week of thought before the first one goes in.

Technical Co-Founder · £2–5k + VAT a month

Senior technical judgement for the decisions that are expensive to change later, starting with the shape of your data, until you're ready to hire your own senior technical leader.

All articles

Read something that sounds like your problem?

A free 15-minute intro with our CEO. Bring the article, and he’ll tell you which service fits, if any. If a spreadsheet and two rules would do the job, we’ll say so.