# Generated by Django 5.1.6 on 2025-03-05 18:55

import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Event',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('start', models.DateTimeField(blank=True, null=True, verbose_name='start')),
                ('end', models.DateTimeField(blank=True, null=True, verbose_name='end')),
                ('uid', models.UUIDField(blank=True, null=True, unique=True, verbose_name='UUID')),
                ('name', models.CharField(max_length=100, unique=True, verbose_name='Name')),
                ('description', models.TextField(blank=True, null=True, verbose_name='Description')),
                ('sub_description', models.TextField(blank=True, null=True, verbose_name='Sub Description')),
                ('longitude', models.FloatField(blank=True, null=True, verbose_name='Longitude')),
                ('latitude', models.FloatField(blank=True, null=True, verbose_name='Latitude')),
                ('bank_account_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='Bank account number')),
                ('bank_account_name', models.CharField(blank=True, max_length=100, null=True, verbose_name='Bank account name')),
                ('bank_account_bank_code', models.CharField(blank=True, max_length=10, null=True, verbose_name='Bank account bank code')),
                ('fee', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='Fee')),
                ('variable_symbol_prefix', models.CharField(blank=True, max_length=10, null=True, verbose_name='Variable symbol prefix')),
                ('registrations_require_confirmation', models.BooleanField(default=False, verbose_name='Require registration confirmation')),
                ('is_public', models.BooleanField(default=False, verbose_name='Is public')),
                ('is_actual', models.BooleanField(default=False, verbose_name='Is actual')),
                ('registrations_enabled', models.BooleanField(default=False, verbose_name='Registrations enabled')),
                ('color', models.CharField(blank=True, choices=[('red', 'Red'), ('pink', 'Pink'), ('purple', 'Purple'), ('deep-purple', 'Deep Purple'), ('indigo', 'Indigo'), ('blue', 'Blue'), ('light-blue', 'Light Blue'), ('cyan', 'Cyan'), ('aqua', 'Aqua'), ('teal', 'Teal'), ('green', 'Green'), ('light-green', 'Light Green'), ('lime', 'Lime'), ('sand', 'Sand'), ('khaki', 'Khaki'), ('yellow', 'Yellow'), ('amber', 'Amber'), ('orange', 'Orange'), ('deep-orange', 'Deep Orange'), ('blue-gray', 'Blue Gray'), ('brown', 'Brown'), ('light-gray', 'Light Gray'), ('gray', 'Gray'), ('dark-gray', 'Dark Gray'), ('pale-red', 'Pale Red'), ('pale-yellow', 'Pale Yellow'), ('pale-green', 'Pale Green'), ('pale-blue', 'Pale Blue')], default=('red', 'Red'), max_length=20, null=True, verbose_name='Color')),
            ],
            options={
                'verbose_name': 'Event',
                'verbose_name_plural': 'Events',
            },
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, unique=True, verbose_name='Name')),
                ('description', models.TextField(blank=True, null=True, verbose_name='Description')),
                ('length', models.IntegerField(blank=True, null=True, verbose_name='Length')),
                ('climb', models.IntegerField(blank=True, null=True, verbose_name='Climb')),
                ('gpx', models.FileField(blank=True, null=True, upload_to='gpx/', verbose_name='GPX')),
                ('event', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='categories', to='events.event', verbose_name='Event')),
            ],
            options={
                'verbose_name': 'Category',
                'verbose_name_plural': 'Categories',
            },
        ),
        migrations.CreateModel(
            name='Registration',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('uid', models.UUIDField(blank=True, null=True, verbose_name='UUID')),
                ('variable_symbol', models.CharField(blank=True, max_length=10, null=True, verbose_name='Variable symbol')),
                ('first_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='First name')),
                ('last_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='Last name')),
                ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='Email')),
                ('nick_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='Nick name')),
                ('phone', models.CharField(blank=True, max_length=20, null=True, verbose_name='Phone')),
                ('category', models.CharField(blank=True, max_length=30, null=True, verbose_name='Category')),
                ('text', models.TextField(blank=True, null=True, verbose_name='Text')),
                ('is_confirmed', models.BooleanField(default=False, verbose_name='Is confirmed')),
                ('is_paid', models.BooleanField(default=False, verbose_name='Is paid')),
                ('is_finished', models.BooleanField(default=False, verbose_name='Is finished')),
                ('is_presented', models.BooleanField(default=False, verbose_name='Is presented')),
                ('start_number', models.IntegerField(blank=True, null=True, verbose_name='Start number')),
                ('chip_id', models.CharField(blank=True, max_length=30, null=True, verbose_name='Chip ID')),
                ('event', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='events.event', verbose_name='Event')),
            ],
            options={
                'verbose_name': 'Registration',
                'verbose_name_plural': 'Registrations',
            },
        ),
        migrations.CreateModel(
            name='Lap',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('number', models.IntegerField(blank=True, null=True, verbose_name='Number')),
                ('start', models.DateTimeField(blank=True, null=True, verbose_name='Start')),
                ('end', models.DateTimeField(blank=True, null=True, verbose_name='End')),
                ('registration', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='laps', to='events.registration', verbose_name='Registration')),
            ],
            options={
                'verbose_name': 'Lap',
                'verbose_name_plural': 'Laps',
            },
        ),
        migrations.CreateModel(
            name='HTMLSection',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('identifier', models.CharField(max_length=100, verbose_name='Identifier')),
                ('menu', models.CharField(max_length=100, verbose_name='Menu')),
                ('html', models.TextField(blank=True, null=True, verbose_name='HTML')),
                ('order_index', models.IntegerField(default=0, verbose_name='Order index')),
                ('event', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='html_sections', to='events.event', verbose_name='Event')),
            ],
            options={
                'verbose_name': 'HTML Section',
                'verbose_name_plural': 'HTML Sections',
                'unique_together': {('event', 'identifier')},
            },
        ),
    ]
