01Multi-sport club

C.P. Alburquerque

A bespoke system with a broader scope: members, QR passes, gate access, ticketing, metrics and reports.

Context
Developed at Intelidatia
Status
System delivered
Year
2026

What we built

From member records to the gate.

The club handled members, passes and entry by hand. We brought that work into a system designed for a phone on matchday.

  • Members and passes

    Each member’s record connects to their QR pass. Physical and digital card delivery are recorded separately.

  • Gate and ticketing

    A phone validates the card and records entry. Match tickets are managed in the same application.

  • The season in numbers

    Attendance, takings and period reports. Price changes leave the accounts of past matches intact.

System delivered

A dedicated system for the season, with physical and digital passes, ticketing and reports.

How we built it

The decisions behind the system.

The code is bound to the member, not to their number
Problem
Member numbers are kept contiguous: removing one renumbers those that follow. If the code depended on the number, every removal would invalidate other members’ passes.
Decision
The QR is bound to the member’s internal identifier. On deletion a function renumbers from highest to lowest within the same transaction, so the result is stable even when several members are removed at once.
Consequence
Renumbering invalidates no code: they still scan to the same member. In exchange, already printed passes with a higher number show the old one and have to be reprinted.
Verification
The migration that introduces renumbering records that limit alongside the deletion order that makes it stable.
Changing the price does not rewrite matches already played
Problem
Raising the general ticket price would make a match already played without its own price appear at the new one, and the season’s takings would stop adding up.
Decision
When a general price is saved, the previous one is first frozen into matches already played and only then is the new one stored, applying from that point on. All in a single atomic operation.
Consequence
The record is preserved. The function needs elevated privileges, because the policies on the matches table do not let someone holding only the settings permission write to it.
Verification
The threshold that decides when a match counts as played is recorded in the migration next to the code constant it depends on, so the two cannot drift apart.
The system is used standing up, at the gate
Problem
Access control does not happen in an office: it happens at the entrance to the ground, with a committee member holding a phone.
Decision
Navigation was solved for mobile from day one, with four tabs and a “More” sheet for the rest. Members, fees, gate and metrics were designed to work in portrait first.
Consequence
Nobody has to carry a laptop on matchday. Desktop offers the same thing at higher density for office work.
Verification
The four-tab mobile menu landed on the first day of development, alongside member registration and the scanner.
Printing a pass is not handing it over
Problem
Only whether a pass had been sent to print was stored. A printed pass can sit in a drawer for weeks, and the club had no way of knowing who was still missing theirs.
Decision
Delivery of the physical pass and of the digital one are recorded separately, storing the date rather than a yes or no.
Consequence
The club knows who was handed a pass and who was sent the digital one, without repeating deliveries or missing anyone. The date makes a whole season auditable.
Verification
Both columns are added re-appliably and without touching permissions: whoever manages members or passes was already the person handing them out.

Technologies used

  • Next.js 16
  • TypeScript
  • Tailwind CSS v4
  • Supabase
  • PostgreSQL with RLS
  • Resend
  • Vercel
Visit Intelidatia

Racing Club Cabañas

Football club
View project
Contact

Let’s stay in touch.

Have a project in mind or a professional opportunity? I’m interested in discussing software development, applied AI and potential collaborations with people and teams.