Mock Data Documentation
TamborraData includes comprehensive synthetic data for local development and testing. This guide explains the structure, contents, and how to work with the mock data.All mock data is completely fictional and generated for development purposes only. Names, schools, and statistics do not represent real individuals or data.
Overview
Themocked_data/ directory contains everything needed to run TamborraData locally:
Why Mock Data?
Local Development
Work without connection to production database
Testing
Consistent data for automated tests
Onboarding
New contributors can start immediately
Demonstration
Show functionality without exposing real data
Database Schema
File: tamborradata_schema.sql
This SQL file creates the complete database structure with all tables, views, and security policies.
Tables
1. statistics Table
Stores aggregated statistics by year and category.
| Column | Type | Description |
|---|---|---|
category | text | Statistic type (participation, top_names, top_schools, etc.) |
scope | text | Scope (general, boys, girls, comparison) |
year | text | Year or ‘global’ for aggregated data |
public_data | jsonb | Summary data for UI display |
full_data | jsonb | Expanded data for detail views |
public_data structure:
2. available_years Table
Lists years with available data.
| Year | Status |
|---|---|
| 2024 | ✅ Ready |
| 2025 | ✅ Ready |
| global | ✅ Ready (aggregated historical) |
3. participants Table
Individual participants in the Tamborrada.
4. sys_status Table
System status (for update mode).
id = 1.
The
sys_status table controls the “updating mode” banner. When is_updating = true, the site shows a maintenance message. See isUpdating system documentation for details.5. available_companies_view View
View for retrieving available schools.
Row Level Security (RLS)
All tables have Row Level Security enabled with read-only policies:Statistics Data
File: statistics.csv
Contains sample statistics for:
- 2024 (complete year)
- 2025 (complete year)
- global (historical aggregate)
Statistical Categories
Participation Statistics
Participation Statistics
Category:
Scopes:
participationScopes:
general, boys, girlsTracks total participants and gender breakdown.Example public_data:Top Names
Top Names
Category:
Scopes:
top_namesScopes:
general, boys, girlsMost popular participant names.Example structure:Top Schools
Top Schools
Category:
Scope:
top_schoolsScope:
generalSchools with most participants.Example structure:Year Comparison
Year Comparison
Category:
Scope:
comparisonScope:
generalHistorical trends and year-over-year comparisons.Used to generate line charts showing participation evolution.Participants Data
File: participants.csv
Contains 100 fictional participants distributed across 5 schools.
Distribution by School
| School | Participants |
|---|---|
| Compañia de prueba | 20 |
| Colegio San Ignacio | 20 |
| Instituto Santa Teresa | 20 |
| Escuela Arcoiris | 20 |
| Colegio Nueva Era | 20 |
Distribution by Year
| Year | Participants |
|---|---|
| 2018 | 10 |
| 2019 | 10 |
| 2020 | 10 |
| 2021 | 10 |
| 2022 | 10 |
| 2023 | 10 |
| 2024 | 10 |
| 2025 | 30 |
CSV Structure
Column Details
| Column | Example | Description |
|---|---|---|
id | 10000000-... | UUID primary key |
name | Pepito Garcia Lopez | Full fictional name |
school | Compañia de prueba | School/company name |
article_date | 2023/01/20 | Publication date |
year | 2023 | Participation year |
url_id | 10000000-... | UUID for URL generation |
created_at | 2025-11-25... | Timestamp |
Example Participants
Importing Mock Data
Follow these steps to import mock data into your Supabase database:Import participants
Go to Table Editor > participants > Insert > Import CSV
Select
Select
participants.csv and import.Import statistics
Go to Table Editor > statistics > Insert > Import CSV
Select
Select
statistics.csv and import.Working with Mock Data
Testing Participant Search
Use these known participants for testing the search functionality:Testing Statistics API
Automated Testing
Mock data is ideal for automated tests:Limitations
Data Simplification
Mock data is simpler than production:| Aspect | Mock Data | Production |
|---|---|---|
| Participants | 100 | ~5,000 |
| Schools | 5 | ~50 |
| Years | 2018-2025 | 2018-2025 |
| Names | Fictional | Real (anonymized) |
| Statistics | Basic | Complex |
| Sensitive Data | No | Yes (protected) |
Incomplete Statistics
Some categories have minimal data:- Top names: Only 10 names per category
- Top schools: Only 5 schools
- Comparisons: Only 3 years
Mock data is designed to demonstrate functionality, not to replicate the full complexity of production data.
Predictable IDs
UUIDs follow a pattern for easier debugging:Generating Additional Mock Data
If you need more synthetic data, you can generate it programmatically:Next Steps
Setup Guide
Return to local development setup
Configuration
Learn about environment variables
API Reference
Explore API endpoints
Architecture
Understand the system architecture