Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/17Franco/CulturarteWeb/llms.txt

Use this file to discover all available pages before exploring further.

copia.sql is a full MySQL dump that provides a ready-to-use dataset for local development and testing. It is loaded automatically when the Docker MySQL container is created for the first time: the docker-compose.yml maps ./copia.sql into /docker-entrypoint-initdb.d/copia.sql, so MySQL executes it on container initialisation without any manual intervention.
Running copia.sql against an existing database will execute DROP TABLE IF EXISTS for every table before recreating it. All existing data will be permanently lost. Always make a backup before re-seeding.
Before re-seeding, export your current data with mysqldump:
mysqldump -u tecnologo -p Culturarte > backup_$(date +%F).sql

Categories Seeded

The seed inserts 21 category rows into the Categoria table — six root-level categories and fifteen subcategories.

Root categories

Category
Carnaval
Cine
Danza
Literatura
Música
Teatro

Subcategories

SubcategoryParent
HumoristasCarnaval
LubolosCarnaval
MurgaCarnaval
ParodistasCarnaval
RevistaCarnaval
Cine a PedalCine
Cine al Aire LibreCine
BalletDanza
FlamencoDanza
ConciertoMúsica
FestivalMúsica
ComediaTeatro
Teatro DramáticoTeatro
Teatro MusicalTeatro
Stand-upComedia
Stand-up is a child of Comedia, which is itself a child of Teatro, making it a third-level category. Literatura has no subcategories in the seed data.
The full INSERT statement from copia.sql:
INSERT INTO `Categoria` VALUES
  ('Carnaval',NULL),('Cine',NULL),('Danza',NULL),
  ('Literatura',NULL),('Música',NULL),('Teatro',NULL),
  ('Humoristas','Carnaval'),('Lubolos','Carnaval'),
  ('Murga','Carnaval'),('Parodistas','Carnaval'),('Revista','Carnaval'),
  ('Cine a Pedal','Cine'),('Cine al Aire Libre','Cine'),
  ('Stand-up','Comedia'),
  ('Ballet','Danza'),('Flamenco','Danza'),
  ('Concierto','Música'),('Festival','Música'),
  ('Comedia','Teatro'),('Teatro Dramático','Teatro'),('Teatro Musical','Teatro');

Sample Users

The seed populates 20 users in the Usuario table. Among them, 11 are registered as Colaborador and 9 as Proponente (roles are not mutually exclusive at the database level).

Collaborator nicknames

Nickname
chino
juanP
marcelot
Mengano
nicoJ
novick
Peregano
robinh
sergiop
Tiajaci
tonyp

Proposer nicknames

NicknameNameNotable work
cachilasWaldemar “Cachila” SilvaComparsa Cuareim 1080
diegopDiego ParodiEfecto Cine cycle
hectorgHéctor GuidoTeatro El Galpón
hrubinoHoracio RubinoMomosapiens (Carnaval)
juliobJulio BoccaBallet Nacional del Sodre
kairohKairo HerreraPilsen Rock festival
losBardoLos BardoBardo Científico science comedy
mbuscaMartín BuscagliaMusician / El Pimiento Indomable
tabarecTabaré CardozoMurga Agarrate Catalina

Sample Proposals

Eight cultural event proposals are seeded into the Propuesta table:
TitleCategoryVenueFunding TargetTicket PriceProposer
Cine en el BotanicoCine al Aire LibreJardin Botanico$150,000$200diegop
ReligiosamenteParodistasTeatro de Verano$300,000$300hrubino
El Pimiento IndomableConciertoTeatro Solís$400,000$400mbusca
Pilsen RockFestivalRural del Prado$900,000$1,000kairoh
Romeo y JulietaBalletAuditorio Nacional del Sodre$750,000$800juliob
Un día de JulioMurgaLandia$300,000$650tabarec
El Lazarillo de TormesTeatro DramáticoTeatro el Galpón$175,000$350hectorg
Bardo en la FINGStand-upAnfiteatro Edificio “José Luis Massera”$100,000$200losBardo

Sample Collaborations

The seed inserts 17 collaboration records into the Colaboracion table. The tipoRetorno column is a MySQL ENUM with two values:
  • EntradaGratis — free admission to the event.
  • PorcentajeGanancia — a percentage of the event’s profits.
IDDateColaboradorPropuestaMontoTipoRetorno
12017-05-20novickCine en el Botanico50,000PorcentajeGanancia
22017-05-24robinhCine en el Botánico50,000PorcentajeGanancia
32017-05-30nicoJCine en el Botánico50,000PorcentajeGanancia
42017-06-30marcelotReligiosamente200,000PorcentajeGanancia
52017-07-01TiajaciReligiosamente500EntradaGratis
62017-07-07MenganoReligiosamente600EntradaGratis
72017-07-10novickReligiosamente50,000PorcentajeGanancia
82017-07-15sergiopReligiosamente50,000PorcentajeGanancia
92017-08-01marcelotEl Pimiento Indomable200,000PorcentajeGanancia
102017-08-03sergiopEl Pimiento Indomable80,000PorcentajeGanancia
112017-08-05chinoPilsen Rock50,000EntradaGratis
122017-08-10novickPilsen Rock120,000PorcentajeGanancia
132017-08-15tonypPilsen Rock120,000EntradaGratis
142017-08-13sergiopRomeo y Julieta100,000PorcentajeGanancia
152017-08-14marcelotRomeo y Julieta200,000PorcentajeGanancia
162017-08-15tonypUn día de Julio30,000EntradaGratis
172017-08-17marcelotUn día de Julio150,000PorcentajeGanancia

Loading Seed Data Manually

To load copia.sql into a running MySQL instance outside of Docker:
mysql -u tecnologo -p Culturarte < copia.sql
You will be prompted for the password (tecnologo in the default Docker setup). To load it into the Dockerised database directly:
docker exec -i BaseDatosC mysql -u tecnologo -ptecnologo Culturarte < copia.sql

Docker Auto-Seed

The docker-compose.yml file configures auto-seeding via a volume mount into MySQL’s initialisation directory:
dbculturarteWeb:
  image: mysql:8.0.17
  container_name: BaseDatosC
  environment:
    MYSQL_DATABASE: Culturarte
    MYSQL_ROOT_PASSWORD: tecnologo
    MYSQL_PASSWORD: tecnologo
    MYSQL_USER: tecnologo
  volumes:
    - ./copia.sql:/docker-entrypoint-initdb.d/copia.sql
    - db_data:/var/lib/mysql
  ports:
    - "3307:3306"
When the BaseDatosC container starts for the first time and /var/lib/mysql is empty (i.e., the db_data named volume does not yet contain an initialised database), MySQL automatically executes every .sql file found in /docker-entrypoint-initdb.d/. Because copia.sql is mounted there, the full schema and seed dataset are created without any manual steps.
The auto-seed only runs on the first container creation. If the db_data volume already exists with an initialised database, MySQL skips the docker-entrypoint-initdb.d scripts entirely. To force a fresh seed, remove the volume first:
docker compose down -v
docker compose up -d

Build docs developers (and LLMs) love