(05)Marketplaces
Dakhla
Event discovery & ticketing platform
Overview
An event marketplace and ticketing MVP for Pakistan: mobile-first discovery by city and category, checkout with disclosed fees in PKR, QR tickets, an organizer portal, a fast door scanner and a platform admin console, backed by a PostgreSQL schema that enforces the business rules itself.
Highlights
- 01PostgreSQL schema with 39 tables and 23 row-level security policies covering customers, organizers, finance, scanner staff and platform admins
- 02Oversell protection: inventory holds lock the ticket row before reserving quantity, inside a security-definer database function
- 03Atomic check-in: each scan locks the ticket, admits it once and logs every attempt, including duplicates and invalid codes
- 04Two-stage approval workflow: businesses and their events are reviewed separately, and only approved events can go on sale, enforced at the database layer
- 05Immutable ledger for payments and settlements, unique gateway and webhook IDs, and private storage for organizer verification documents
Private or internal system: no public link.
- Timeline
- Jul – Aug 2026
- Category
- Marketplaces
My role
Full-stack engineer
Designed and built the product end to end: the product surfaces, the PostgreSQL schema, row-level security and database functions, the approval workflow and the payment abstraction.
Owned
- Product
- Frontend
- Database & security
- Payments
- Architecture
Tech
- Frontend
- Next.js
- TypeScript
- Tailwind
- shadcn/ui
- Backend & APIs
- Drizzle ORM
- Zod
- Data & storage
- Supabase
- PostgreSQL
- Infrastructure & tooling
- Cloudflare Workers
- Vite