# Generated by Django 2.0.3 on 2019-04-15 20:12

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Driver',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(blank=True, default=None, max_length=30, null=True)),
                ('last_name', models.CharField(blank=True, default=None, max_length=30, null=True)),
                ('ref_time', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Kart',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, default=None, max_length=30, null=True)),
                ('autonomy', models.IntegerField()),
                ('comment', models.CharField(blank=True, default=None, max_length=256, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Params',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('autonomy', models.IntegerField()),
                ('default_relay', models.IntegerField()),
                ('stand_minimum_time', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Relay',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('relay_start', models.DateTimeField()),
                ('relay_end', models.DateTimeField(blank=True, default=None, null=True)),
                ('has_refuel', models.BooleanField(default=False)),
                ('pilot_chrono', models.IntegerField(blank=True, default=None, null=True)),
                ('relay_autonomy', models.IntegerField(blank=True, default=None, null=True)),
                ('comment', models.CharField(blank=True, default=None, max_length=256, null=True)),
                ('team_pilot', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='driver_running', to='timelaps.Driver')),
            ],
        ),
        migrations.AddField(
            model_name='driver',
            name='kart_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='timelaps.Kart'),
        ),
    ]
