# Generated by Django 4.2.12 on 2024-10-09 12:30

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('alkatorapi', '0015_user_price'),
    ]

    operations = [
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=120)),
                ('last_name', models.CharField(max_length=120)),
                ('address', models.CharField(blank=True, max_length=255, null=True)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AlterField(
            model_name='user',
            name='alkator_class',
            field=models.IntegerField(choices=[(1, 'Jaro 2024 Sobkovice'), (2, 'Podzim 2024 Studené'), (3, 'Jaro 2025 Dolní Čermná')]),
        ),
        migrations.CreateModel(
            name='Racer',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=120)),
                ('last_name', models.CharField(max_length=120)),
                ('email', models.EmailField(blank=True, max_length=120, null=True)),
                ('team', models.CharField(blank=True, max_length=120, null=True)),
                ('phone', models.CharField(blank=True, max_length=120, null=True)),
                ('date_of_birth', models.DateField(blank=True, null=True)),
                ('duration', models.DurationField(blank=True, null=True)),
                ('starting_number', models.IntegerField(blank=True, null=True)),
                ('alkator_category', models.IntegerField(choices=[(1, 'Alkátor'), (2, 'Alkátor light'), (3, 'Nealkátor')], default=1)),
                ('alkator_class', models.IntegerField(choices=[(1, 'Jaro 2024 Sobkovice'), (2, 'Podzim 2024 Studené'), (3, 'Jaro 2025 Dolní Čermná')])),
                ('trans_id', models.CharField(blank=True, max_length=120, null=True)),
                ('price', models.IntegerField(default=690)),
                ('paid', models.BooleanField(default=False)),
                ('invoice_id', models.IntegerField(blank=True, null=True, unique=True)),
                ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='racers', to='alkatorapi.profile')),
            ],
        ),
    ]
