‹ All templates
COMMERCE TEMPLATE

Event ticketing

Bring events to life with venues, ticket types, attendees, and bookings.

5 tables4 relationships4 SQL dialects
Use this template

A practical foundation, ready to adapt

This template models the core entities of a event ticketing system. It gives each entity an integer primary key and connects related records with explicit foreign keys. Open it in the designer to adjust names, add fields, and choose the rules that fit your application.

What’s included

venues

id (integer), name (varchar), address (text), capacity (integer).

events

id (integer), venue_id (integer), name (varchar), starts_at (timestamp).

attendees

id (integer), name (varchar), email (varchar).

ticket_types

id (integer), event_id (integer), name (varchar), price (decimal).

bookings

id (integer), attendee_id (integer), ticket_type_id (integer), quantity (integer).

Before you build

Review nullability, uniqueness, indexes, and deletion rules for your use case. This is a starting schema, not a complete application. It does not include application logic, authorization, or migrations. Monetary fields use decimal values; timestamps and authentication fields still need appropriate handling in your application.

Keep a JSON backup as you customize the project. Then select your SQL dialect, resolve any validation issues, and review the generated statements before running them.

Learn how relationships work or explore primary keys and constraints.